How many students took the exam

Assignment Help Computer Engineering
Reference no: EM131857369

Problem

The final exam in your psychology class is 30 multiple-choice questions. Your instructor says that if you write the program to grade the finals, you won't have to take it.

Input

The first data line contains the key to the exam. The correct answers are the first 30 characters; they are followed by an integer number that says how many students took the exam (call it N). The next N lines contain student answers in the first 30 character positions followed by the student's name in the next 10 character positions.

Output

For each student-the student's name; followed by the number of correct answers; followed by PASS if the number correct is 60 percent or better, or FAIL otherwise.

Reference no: EM131857369

Questions Cloud

Determine whether or not any two consecutive lines typed : Design and implement an Ada program to determine whether or not any two consecutive lines typed at the keyboard are anagrams of one another.
Best accounting management system : How does a company choose the best accounting management system for their company?
Project that has cash flows as shown in the table below : The company has a 12% required rate of return and expects a 3% rate of inflation for the following four years. What is the NPV of a project that has cash flows
How much more money do you estimate you will spend : As a manager of a software development project, you need to give senior management a report on the status of the project.
How many students took the exam : The correct answers are the first 30 characters; they are followed by an integer number that says how many students took the exam (call it N).
How much interest is earned on this investment : You inherit $50,000 and decide to invest it for 40 days compounded daily at 6% annual interest.
Discuss the concept of the balanced scorecard : Discuss the concept of the balanced scorecard. What are its key benefits and advantages?
Determine postal cost of parcel by searching weight fields : You can then determine the postal cost of each parcel by searching the Weight fields and then using the Cost field.
Certificate of deposit that pays compounded interest : Find the future value of a $18,000 Certificate of Deposit that pays compounded interest every three months at the rate of 7% per year.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What is non-persistent http connection

What is  non-persistent HTTP connection

  How would you characterize the page-fault rate

Consider a system that uses pure demand paging. Once the working set for a process is loaded into memory, how would you characterize the page-fault rate?

  Explain how erp systems mitigate risk

Using scholarly material, explain how Enterprise Resource Planning (ERP) Systems mitigate risk and assist in organizational decision making.

  Use ezcountour to create a contour map of z

Generate a combination surface and contour plot of Z, using ezsurfc.

  Analyze the solution before testing and debugging

Design the solution before coding. Analyze the solution before testing and debugging. Build a prototype during testing.

  The difference between a rectangular array and a polar array

What is the difference between a rectangular array and a polar array. What inputs are required to execute each command in AutoCAD

  The comma-separated values csv file format is a delimited

the comma-separated values csv file format is a delimited data format commonly used as a portable representation of

  What is the system bus and what are its main components

What is the system bus? What are its main components? What is a bus master? What is the advantage of having devices other than the CPU be bus masters?

  Delete an existing product from the database in php

In the PHP scripts you create, refer to the DSN datasource as flamingo. though its not in your own folder or directory, it has been set up as a SYSTEM DSN, so your PHP script would have access to it.

  Examine your thoughts on the effects of indexes

Discuss the thoughts on the effects of indexes, data types, filegroups, and transaction logs on space considerations. Which of those database constructs do you feel are most important to manage when it comes to database size considerations.

  Test a class that prints william on the screen

Write down compile, and test a class that prints William Nichols, 777 Mockingbird Lane, Detroit MI 48222 on three separate lines on the sceen. Sace as Address.java

  Make a class for services offered by a hair-styling salon

make a class for services offered by a hair-styling salon. Data fields include a String to hold the service description (for example, "Cut", Shampoo", or "Manicure"), a double to hold the price, and an integer to hold the average number of minutes..

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