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

  Write a program to enter any number of integers in array

Write a program which permits a user to enter any number of integers, which are then stored in the array. After user enters integers, perform the following operations on array.

  Design logic that continuously prompt user for numeric value

Design the logic for a program that continuously prompts a user for a numeric value until the user enters 0. The application passes the value in turn to a method that squares the number

  Write a vhdl code for soda vending machine

Write a VHDL code that implements the above soda machine. You have to turn in the following: A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

  Write application to use random-number to create sentences

Write an application that uses random-number generation to create sentences. Use four arrays of strings called article, noun, verb and preposition.

  Write program to enter numeric values-arithmetic operator

Write a program that lets the user enter 2 numeric values, and an arithmetic operator: +, -, * and /. Write a switch statement that displays the result.

  Write a program to read the data from csv file

Write a program that will read the data from the CSV file into an ArrayList of State objects where each State object stores information about all County objects for that state.

  Write program to accept name and score of all batsmen

Write a program to accept name and score of all batsmen of a team and print them in the given manner: INPUT:names[]={nam1,nam2,nam3,nam4,nam5,nam6} & scores[]={48,65,73,10,90,84}

  Write and implement generic set class with attributes

Write and implement the generic Set class with attributes you find essential and with the following methods. Set class has nonduplicate elements.

  Explain inheritance structures of galaga

Write a 3-page paper about inheritance structures of Galaga. Recognize the parent and child classes and describe what each class has for events and data.

  Design a website to allow calculation of areas

Design a website to permit calculation of areas. A radio button list can be used to allow the user select what type of area to be calculated. Once the selection is done, the input text boxes should be displayed with the proper labels.

  Function named quadratic that receives three parameters

Write the definition of a function named quadratic that receives three double parameters a , b , c . If the value of a is 0 then the function prints the message "no solution for a=0" and returns.

  Develop a program to input miles driven and gallons for tank

Develop a program in C++ that will input the miles driven and gallons used (both as integers) for each tankful. The program should calculate and display the miles per gallon obtained for each tankful.

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