Write a program to process the data in the file

Assignment Help C/C++ Programming
Reference no: EM132278644

Group Project

A multiple-choice examination consists of 20 questions. Each question has five choices, labeled A, B, C,D and E. All data for that exam is stored in a file exam.txt. The first line of data contains the correct answers to the twenty questions in the first 20 consecutive (one after the other) character positions. For Example:

BECDCBAADEBACBEDDBED

Each subsequent line in the file contains the answers for a single candidate. Data on a line consists of a candidate number (an integer), then by one or more spaces, followed by the twenty answers given by the candidate in the next 20 consecutive character positions. An X is used if a candidate did not answer a particular question. A sample line is as follows:

5555BECDCXACCAEDCBEDDACB
There can be an unlimited number of candidates. A line containing a "candidate number" 0 indicates the end of the data.

A student's final score is calculated by adding up the points awarded for all the questions. Points for a question are awarded as follows:
• Correct answer 4 points
• Wrong answer -1 point
• No answer 0 points

Write a C# program to process the data in the file exam.txt and print a report that shows:

1. Each candidate number and their final score (the total points obtained by the candidate).

2. The total number of candidates

3. The number of correct responses to each of the 20 questions.

Your program name should be you ID number and you must submit only the C#Code file.

A sample data file and the expected format for the output are given on the next page.

Attachment:- Project.rar

Reference no: EM132278644

Questions Cloud

Meeting performance expectations : One of your customer service and sales representatives is consistently not meeting performance expectations. You have decided to terminate the representative.
Ikea global supplier standards : IKEA's Global Supplier Standards. IKEA is trying to balance low costs with child labor. How would you advise IKEA on handling its challenge?
Computer system for managing ordering and buying process : The business has grown rapidly over the past year and the owner wants to install a new computer system for managing the ordering and buying process.
Synthesize strategies into work setting : Specific strategies that can be used by educational leaders to effect change within their schools are revealed in professional literature.
Write a program to process the data in the file : COMP1202 Group Project - Write a program to process the data in the file exam.txt and print a report - Each candidate number and their final score
Evaluating human resource practices : How can you help contribute to evaluating human resource practices?
Explain the basic goals of a member services department : Explain the basic goals of a member services department. What legal and regulatory issues might affect member services?
Define the five-step marketing research approach : Define the Five-Step Marketing Research Approach and discuss the importance of research in marketing.
Is there an issues with jean stereotypes : Is there an issues with Jean's stereotypes? If you are Jean's supervisor what can you do to help her adapt to the client population she is serving?

Reviews

len2278644

4/9/2019 11:01:03 PM

it is a c# program which grade a student answer.I have already wrote the program with array and list however I just knew I shouldn't have used array or list in this program.So the fist part which is used for student must be use if or while I guess.there must be minor change in the program

len2278644

4/9/2019 10:59:44 PM

The names and id numbers of all group members must be commented at the top of the program One member of each group must be responsible for uploading the “project submission document”containing the C# program code. Only the completed “project submission document” must be uploaded.

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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