Write a program to calculate student final letter grades

Assignment Help Computer Engineering
Reference no: EM132105177

Problem : Suppose at the end of the semester, there is a file "scores.dat" recording scores each student has earned so far from closed lab assignments (CLA), open lab assignments (OLA), quizzes, exams, and final exam score. You can assume there are no more than 30 students. The final letter grade is decided according to the following table based on the total points they have earned:

Total Points

Final Letter Grade

Total Points

Final Letter Grade

>=90

A

>=70, but <73

C-

>=87, but <90

B+

>=67, but <70

D+

>=83, but <87

B

>=63, but <67

D

>=80, but <83

B-

>=60, but <63

D-

>=77, but <80

C+

<60

F

>=73, but <77

C



In this assignment, you are asked to write a program to calculate student final letter grades as well as the average and highest scores of CLA, OLA, quizzes, exams, and final exam scores. The final result should be printed to the screen (standard output).

Requirements:

At the beginning of the program, your program should give the user a prompt for the name of the data file which contains the records of student grades.

Define a class Student, which includes student id, scores for CLA, OLA, quizzes, exams, final scores, total points, and letter grade. All member data must be private. The class must provide a function to calculate the final letter grade.

Store all Student objects in an associative array (other similar data structures like map, hash map are also fine) so that we can lookup student final letter grade by C#.

Your program should allow users to perform two queries. For each query, the user inputs C#, and your program should print all information (including his/her final letter grade) of the student with the given C#. After two queries, your program print information of all students on the screen.

If the language doesn't support object-oriented programming or associative array, then use appropriate data structures.

If the language doesn't support file input, you can store them in your program.

Make sure that your program has the proper documentation (program heading, variable explanation, description/input/output for each user defined function, explanation for logically related statements, etc), and style for good program readability and modifiability. Refer to the back page for more details on program requirements your program should follow.

# CLA OLA Quiz Exam FinalExam
c1234501 10 20    10 30 30
c1234502 9 10 5 20 20
c1234503 10 17 8 27 27
c1234504 8 14 10 29 15
c1234505 7 18 3 24 27
c1234506 8 16 9 13 14
c1234507 6 11 5 27 26
c1234508 8 15 9 17 28
c1234509 5 19 8 28 29
c1234510 9 14 6 19 19
c1234511 2 6 4 17 19
c1234512 7 18 7 22 25
c1234513 4 10 9     11 19
c1234514 8 18 8 24 19
c1234515 7 13 7 20 20
c1234516 10 19 9 19 19
c1234517 8 10 9 19 24
c1234518 6 11 7 23 25
c1234519 4 8 4 19 20
c1234520 9 15 9 22 24
c1234521 10 13 10 20 30
c1234522 10 12 10 25 25

Reference no: EM132105177

Questions Cloud

Coordinating across schedules better : Any suggestions to me as a the project managers in regards to coordinating across schedules better?
Perspective for procurement management project : How to write the instructions for response procedure as buyer perspective for procurement management project?
Find the mflops figures for the processors : Assume that 40% of instructions executed on both P1 and P2 are floating-point instructions. Find the MFLOPS figures for the processors.
What is barcoding system in inventory management : What is barcoding system in inventory management in hospital means , what are the challenges and the benefits of the using this system in managing inventory
Write a program to calculate student final letter grades : Write a program to calculate student final letter grades as well as the average and highest scores of CLA, OLA, quizzes, exams.
Broken up into three sub-accounts : Since the inventory costs of a manufacturing firm are broken up into three sub-accounts
Benefits and challenges of virtual teams : What are the potential benefits and challenges of virtual teams and it will impact a project?
Managed for a team composed of members : How can Virtual Teams be managed for a team composed of members who are all co-located in project management?
Discuss the differences between the terms product scope : Discuss the differences between the terms "product scope" and "project scope" and explain how scope

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a recursive function for placing eight queens

Write a recursive function for placing eight queens on a chessboard. The eight queens should be placed so that no queen can capture another.

  Draw the system sequence diagram

Customer or Car Rental Representative clicks on search vehicle link. Step 2: The system displays combo box to select search to a vehicle

  Develop an expression for the slug-flow

With a low-Prandtl-number fluid, the temperature profile in a tube develops more rapidly than the velocity profile. Thus, as the Prandtl number approaches zero.

  How might bpr be used in your organization

What is Business Process Reengineering (BPR)? Discuss how BPR might be used and describe the 'theoretical' results.

  What is a declaration

What is a declaration? If same symbol is ued for both single characters and strings, how can you distinguish between single character and one-character string?

  Calculate and show the mortgage payment amount

Write down the program in Java (with a graphical user interface) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage, the term of the mortgage, and the interest rate of the mortgage. Allow th..

  What is microprocessor - motorola 68k assembly language

What is microprocessor - Motorola 68k assembly language? Implement your plan using a user vectored interrupt number 3. Use busy line from the printer to trigger the interrupt. The printer interrupt level is 2. Explain the extra hardware to make t..

  How that will affect the size of alu and internal registers

Draw a general model for the computer system showing how memory and CPU interact with each other.

  Object oriented analysis project report

OOA Project Report - Provide a short section that summarises your project report in such a way that readers can rapidly become acquainted

  Design a complete circuit using off-the-shelf ics

Design a complete circuit using off-the-shelf ICs to load an eight-bit data into a register, circulate it right five bits, and output in parallel.

  Write a method that will traverse a B-tree in postorder

Define postorder traversal of a B-tree recursively to mean first traversing all the subtrees of root. Write a method that will traverse a B-tree in postorder.

  Regulating the content of internet

Specify to what extent there should be regulation of the content on the Internet, if at all? State the factors and principles the federal government must take into account when considering the indecency regulation issues.

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