Write down a program that processes the test data

Assignment Help Computer Engineering
Reference no: EM1336419

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: EM1336419

Questions Cloud

Why relational database was the best choice : create a relational database containing information about music performers, their recordings, and the composers of the music they recorded.
Why the file manager should grant such requests : why the file manager should grant such requests.
Communications and flow of information : Communications and Flow of Information - Explain in a narrative style the flow of information in your company
Explain the marketing mix- price : Explain The Marketing Mix- Price and Explain both situations as fully as possible including any effect on your opinion of or attitude towards the brand explaining why you bought the thing you thought was over-priced
Write down a program that processes the test data : Write down 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; ..
Divorce case : Harold Homes is a family law paralegal. His best friend, Isabel Ivory is getting a divorce. Isabel asks Harold to help her prepare the papers to file for divorce. Is it ethical for Harold to do this?
Scheduling company wide resources : Explain how outsourcing project work can help alleviate some of the common problems associated with multiproject resource scheduling
Suppose two computers in each scenario need to exchange : What could you speculate regarding the time required to perform the transfer in each scenario? Explain your reasoning and support it with estimated calculations.
Computing the portfolio risk : The covariance between the two stocks is -0.35. Find the portfolio risk if: the stocks are weighted equally in the portfolio.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Network cable planning

The company is very concerned with the network errors. State the advice you would provide regarding the design of the building and network cable planning which would help in order to decrease the network errors.

  Write down code to complete the conversion

You've just started a new semester and you've become friends with one of your classmates, Tomislav. Tomislav tells you he has just moved to United States from Europe and he's having a difficult time adjusting to the English units of measurement. In..

  The differences between 802.11b, 802.11a, 802.11g

Do you think standards are beneficial in the field of the wireless networking or do you feel they limit new technologies.

  Compute the dollar amount of money in a piggy bank

Write down a detailed set of instructions, in English, to calculate the dollar amount of money in a piggy bank that contains h half-dollars, q quarters, n nickels, d dimes and p pennies.

  Make a script that uses the following components

design a script that uses the following components: an array, sub procedure, explicit declaration, RUNAT=Server, and a function.

  What is the multicast

examine and discuss what the UDP does and its relationship to TCP - - - in what ways is it similar and different, and why (what applications) would we use UDP, and why can't a user program access IP directly.

  Show how to find out such a seating arrangement

Show how to find out such a seating arrangement and prove that no such seating plan is possible.

  What is the expected access time

Given a 64-byte cache block, a 512 KB fully associative cache (assume byte-addressable), and a 32 bit address reference, which bits could be used for tag, index, and offset.

  Define why a company or organization would migrate

define why a company or organization would migrate to a relational database architecture from a network or hierarchical architecture.

  Program in visual basic to calculate area of a triangle

Write down a program in the visual basic which determines the area of a triangle. If three sides a, b and c entered do not make a triangle transmit the message out to the screen that the data entered was invalid.

  Work out the matrix dimension n automatically

Write down a C++ program that uses class Matrix for dealing with the square matrices (n x n tables of integers). The class constructor has to create a dynamic nxn matrix for n passed as a parameter.

  Describe disparity between vulnerability, threat and control

Describe disparity between vulnerability, threat and control

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