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

  Expand or contract the number of phases

What is the Software/System Development Life Cycle (SDLC) and can we expand or contract the number of phases depending on the particular project?

  Discuss software testing as a career path in brief

discuss software testing as a career path in brief. The techniques for solving linear equations and linear inequalities are similar, yet different. Explain and give an example of both a linear equation and a linear inequality that demonstrates this..

  Bus collision avoidance protocol

Before effective Ethernet switching existed, some network designers are used an alternative bus collision avoidance protocol termed as the token bus protocol.

  Define the rule that is applied to place a class

The system development team at Wilson Company is working on developing a new customer order entry system. In the method on designing the new system, the team has identified the following class and its attributes.

  Monitoring of patient vital signs using mobile computing

Compare and contrast the monitoring of patient vital signs utilizing the mobile computing technology to in-patient visits to the doctor’s office or hospital.

  Evaluating the code

Which of the following best explains the situation after Line 1 has been executed? pCdoesnothaveatarget, and pCdoesnothaveaknownvalue. pCdoesnothaveatarget, butpCdoeshaveaknownvalue.

  Write down a driver program to test library

Write down a library Cylinder containing functions to compute the total surface area, lateral surface area, and volume of a right-circular cylinder.

  Create an application that declares objects of each kind

make a Building class and two subclasses, House, and School. The Building class contains fields for square footage and stories. The House class contains additional fields for number of bedrooms and baths.

  Define the differences among the computer forensic tools

Discuss some of the several backup tools available in the market. What are differences among the computer forensic tools?

  Explain two methods for categorical data conversion

explain two methods for categorical data conversion. List the advantages and disadvantages of this approach.

  Sql query to determine lowest, highest, average salary

Let's assume that we wanted to determine the lowest, highest, average and total number of the salaries by department in company. What SQL query would provide us this.

  Explain the actions you will take to correct

A user calls to report that she is unable to log on to email. You respond with a couple of quick questions. Because you know that no one else is using the network right now, you cannot find out whether the problem is unique to her machine or affec..

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