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

  Write a java program that reads a file containing data

Write a Java program that reads a file containing data about the changing popularity of various baby names over time and displays the data abput a particular name.

  What are some technologies and solutions

What are some technologies and solutions that can be used to reduce risk for the "Cloud" or "Cloud Data"

  Sentinel-controlled repetition to allow a user

The computeShippingCharges() method should use sentinel-controlled repetition to allow a user to enter shipping data until the user has indicated that he or she is done. The total shipping charges will be computed and returned as a double value.

  Execution by responding to a number of user initiated events

Demonstrate what you have learned in these first two chapters of VB by designing a user interface that controls the order of the tabs, set the initial properties of form controls, and then modifies properties during execution by responding to a..

  Descriptor describes a memory segment

The above segment descriptor describes a memory segment in terms of its start address, its size and whether it is ALLOCATED or FREE. This descriptor is part of a list (contains a pointer to next segment descriptor). Initially, there is only one se..

  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.

  Our model assumes that the arrival distribution of customers

In the McBurgers simulation, our model assumes that the arrival distribution of customers is the same throughout the entire day. Do you think this is a realistic assumption? If not, explain how you could modify the model to make it a better repres..

  Discuss and explain the emerging information needs

Discuss and explain the emerging information needs

  Estimate for risk management in accompanying data

Estimate for risk management as shown in accompanying data, which vulnerability must be evaluated for additional controls first? Which one should be evaluated last?

  Techniques in discovering requirements for a system

What are some of the techniques in discovering requirements for a system? Which ones work best? Which ones are the most economical?

  United nations high commissioner for refugees

According to the UNHCR (United Nations High Commissioner for Refugees), Turkey is the leading country hosting 2.5 millions of Syrian refugees. The European Union's executive arm confirmed in November 2015 that they will set up a 3 billion euro aid..

  Create a website registration form to obtain

Create a website registration form to obtain a user's first name, last name, and email address. In addition, include an optional survey question that asks the user's year in college (e.g., Freshman). Place the optional survey question in a details..

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