Write the program which processes test data

Assignment Help Programming Languages
Reference no: EM1370248

The history teacher at your school needs help in grading a True/False test. The students' IDs and test answers are stored in a file. The first entry in the file contains answers to the test in the form:

TFFTFFTTTTFFTFTFTFTT

Every other entry in the file is the student ID, followed by a blank, followed by the student's responses. For example, the entry

ABC54301 TFTFTFTT TFTFTFFTTFT

indicates that the student ID is ABC54301 and the answer to question 1 is True, the answer to question 2 is False, and so on. This student did not answer question 9. The exam has 20 questions, and the class has more than 20 students. Each correct answer is awarded two points, each wrong answer gets one point deducted, and no answer gets zero points. Write a program that processes the test data. The output should be the student's ID, followed by the answers, followed by the test score, followed by the test grade. Assume the following grade scale:

A 90% - 100%
B 80% - 89.99%
C 70% - 79.99%
D 60% - 69.99%
F 0 - 59.99%

Reference no: EM1370248

Questions Cloud

Caviar in a submerged city : Recently submerged kingdom of Atlantis is populated through identical rational air breathing individuals. The king has decided to give an award to the industry whose product yields kingdom most economic value.
Methods of internal rate of return : What is the machine's payback period? Compute net present value of machine if the cost of capital is 12%. Find out the expected internal rate of return for this machine?
Explain what kind of healthier alternatives do you recommend : Explain What kind of healthier alternatives do you recommend Saxonville to develop and Do you think that sampling demonstrations in supermarkets would also enhance perceived value for Saxonville?
Question on change management : How can a company use change management to minimize resistance and maximize the acceptance of change in business and technology?
Write the program which processes test data : Write the program which processes test data. Output must be student's ID, followed by answers, followed by test score, followed by test grade. Suppose the following grade scale.
Show the analysis of business management : How do you operate on a team and do you keep close tabs on your team? At what point can they earn your trust?
Organizations marginal costs and revenue : The economics student knows that profit maximizing manager will produce quantity where marginal revenue equals marginal cost
Estimating constant-growth model : Gentleman Gym just paid its annual dividend of $3 per share, and it is hugely expected that the dividend will raise by five percent per year indefinitely.
Explain at what level in the organization are approvals : Explain At what level in the organization are approvals for strategic move investment decisions made

Reviews

Write a Review

Programming Languages Questions & Answers

  Using the irvine32 library functions

Create 32 random points which have (x, y) co-ordinates

  Explain overriding method

Assuming the class B inherits from class A and method foo belongs to class A, what do we mean by overriding method foo in class B? We are coding another version of method foo in class B

  Write program to clear the screen and locate the cursor

Write a program that clears the screen, locates the cursor near the middle of the screen, prompts the user for two integers, adds the integers.

  Use a two dimensional array to solve problem

Use a two dimensional array to solve the following problem. A company has four salespeople ( 1 to 4) who sell five different products ( 1 to 5).

  Write function that takes array of positive integers

Write a function that takes an array of positive integers and the size of the array, and returns the average (type float) of the values.

  Writing class containing two instance variables

Write class named ParkingMeter containing: two instance variables named timeLeft and maxTime of type int. Value of timeLeft must be initialized to 0.

  Show how the tree might be type-checked

Attempt to derive proof tree for the judgment Show how the tree might be type-checked

  Write a code to locate and rank keywords

You are working on the custom Web application to design document library for client. Write code to locate and rank the keywords. You have been given sample document to use for testing.

  Program to simulate rolling one die

Write a program which simulates rolling one die using the following steps: Prompt the user for the number of sides on the die.

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Write a program using binary search approach

Write a program using binary search approach

  Design application that gets customer account data

Design an application that gets customer account data that includes an account number, customer name, and balance due.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd