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

  Design a dns namespace

Design a DNS namespace

  Write a c++ code that includes the following operations

Write a C++ code that includes the following operations: z=x * y z=z + 5.0 x, y, and z are floating point variables. A function (subroutine) named GetData should be declared to get data (x and y) from keyboard. The call by reference mechanism shou..

  Security layers-protecting the system

Analyze the seven security domains of a typical IT infrastructure and determine which two of the seven you would implement first for a nationwide bank. Explain your rationale for your choice.

  Create a document with two vertical frames

create a document with two vertical frames. create a series of links in the left frame. each button should represent a country and the right frame point to a source for that countries stats.

  Consider a system needed to store information

Consider a system needed to store information about computers in a computer lab at a university, such as the features and location of each computer. Ascertain the domain classes that might be included within the domain model. Discuss whether or not y..

  Explain discrete logarithm problem relative to g

Prove that the hardness of the CDH problem relative to G implies the hardness of the discrete logarithm problem relative to G.

  Assignment on university database

A prestigious university has recently implemented a consolidation strategy that will require it to centralize their student records. In order to move forward, the local university will need to develop a data model that will retain student records ..

  Recursive relationship between research methods and data

recursive relationship between research methods and data collection techniques

  Describe how will tsp work

How will TSP work? Transit planners require to ask questions like: First step is to assess requirement for TSP There are a variety of methods for conducting Needs Assessment.

  Components-protocols to support management of certificates

A Public Key Infrastructure (PKI) is a collection of components and protocols to support the management of certificates that bind a user name to a public key.

  Customer driven analytics to make managerial decisions

Demonstrate your understanding and knowledge gained about session's material. Complete with a short discussion (one paragraph) for each question on a Word document and upload through the courseware.

  Explain an increase in spending on items related to hardware

Amend the Riordan IT budget, according to the following requirements- An increase in spending on items related to hardware, software, and outside IT support services by 4 percent

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