Write a program that processes the test data.

Assignment Help Basic Computer Science
Reference no: EM13947943

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

TFFTFFTTTTFFTFTFTFTT

Every other entry in the file is the student's ID, followed by a blank, followed by the student's response. Fore example, the entry:

ABC54301 TFTFTFTT TFTFTFFTTFT

indicates that the student's 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 150 students. Each correct answer is awarded two points, each wrong answer gets -1 point, and no answer gets 0 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: 90% - 100% A; 80%-89.99% B; 70%-79.99% C; 60%-69.99% D; and 0%-59.99% F.

Reference no: EM13947943

Questions Cloud

Provide examples with your evaluation and use graphics : Provide examples with your evaluation and use graphics such as charts, when applicable.
Determine the best shipment of coal cars : The Southern Rail Company ships coal by rail from three coal mines to meet the demand requirements of four coal depots. The following table shows the distances from the mines to the various depots and the availabilities and requirements for coal
Burgers vector-dislocation line orientations for edge : 1. Cite the relative Burgers vector-dislocation line orientations for edge, screw, and mixed dislocations. 2. For an FCC single crystal, would you expect the surface energy for a (100) plane to be greater or less than that for a (111) plane? Why? (..
What was the fixed overhead budget variance for the month : During the month, the actual total variable manufacturing overhead was $48,970 and the actual total fixed manufacturing overhead was $43,000. The actual level of activity for the period was 8,300 MHs. What was the fixed overhead budget variance fo..
Write a program that processes the test data. : This student did not answer question 9. The exam has 20 questions, and the class has more than 150 students. Each correct answer is awarded two points, each wrong answer gets -1 point, and no answer gets 0 points.
Compute the number of molybdenum atoms : Molybdenum forms a substitutional solid solution with tungsten. Compute the number of molybdenum atoms per cubic centimeter for a molybdenum-tungsten alloy that contains 16.4 wt% Mo and 83.6 wt% W. The densities of pure molybdenum and tungsten are..
Is it good or bad for the global economy : Is it good or bad for the global economy? Discuss including the legal implications.
Create a dtd file that defines the format of the xml file : Expand the XML file a little bit by making sure that it is valid as well as well-formed.
Role of treaties on international tax transactions : Limitation on Benefits in the model. Next, examine how current U.S. multinational corporations can use provisions of treaties to lower taxes.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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