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

  Implement to do a matrix-matrix product

Implement and check the time to do a matrix-matrix product of a 1000x500 matrix with a 500x800 matrix of floats sequentially and using 1,2,3,4, and 8 threads on dual and quad core processors.

  Create xml document to mark nutrition facts for cookies

Create an XML document that marks up the nutrition facts for a package of Grandma White's cookies. A package of cookies has a serving size of 1 package and the following nutritional value per serving.

  Distinguishing web pages or web servers for task

Distinguish between any Web pages or Web servers you would use for this task.

  Write program to take as input salesperson-s expected sales

Write program to take as input the salesperson's expected weekly sales and outputs the wages paid under each plan as well as announcing the best-paying plan.

  Write statement to determine whether array elements are full

Write the statements needed to determine whether any of the the array elements are null or refer to the empty String. Set the variable hasEmpty to true if any elements are null or empty-- otherwise set it to false.

  Create a new console application project

Create a new console application project and name it "Week1Lab_BirdN". Create the necessary member functions that will perform the required operations outlined in the lab summary above.

  Identify all the pure-strategy nash equilibria of game

Identify all of the pure-strategy Nash Equilibria of this game. Identify at least one mixed-strategy Nash Equilibrium, and show that it is a Nash Equilibrium.

  Design logic for a program contains housekeeping

Design the logic for a program that contains housekeeping,detail loop,and end-of-job modules,and that calculates the service of charge customers owe for writing a bad check.

  Write code for invoking method named sendtwo

Write the code for invoking a method named sendTwo. There are two arguments for this method: a double and an int.

  Explain relationship between xbrl and semantic web

How do HTML 5, RDF (Resource Description Framework), and OWL (Web Ontology Language) relate to the semantic web? Explain the relationship between XBRL and the semantic web.

  Write pseudocode-read in data file containing student name

Write a pseudocode to do the following Read in data file containing student names, ID number, and gender into an array.

  Probability line is executed in nth iteration of for loop

What is the probability that line is executed during the nth iteration of the for loop? What is the exact expected number of executions of line?

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