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 В >=63, but <67 D >=80, but <83 В- >=60, but <63 D- >=77, but <80 C+ <60 F >=73, but <77 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, respectively. The final result should be printed to the screen (standard output). Requirements: • You must use the language you picked from projectl. • 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. • Define a class Roster, which has an associative array (other similar data structures like map, hash map are also fine) to store all Student objects. Define appropriate methods in the class to calculate, update, and query individual student information as well as required statistic information of all students. • 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 as well as the average and highest scores of CLA, OLA, quizzes, exams, and final exam on the screen.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

code this in RUBY programming language

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
В
>=63, but <67
D
>=80, but <83
В-
>=60, but <63
D-
>=77, but <80
C+
<60
F
>=73, but <77
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, respectively. The final result
should be printed to the screen (standard output).
Requirements:
• You must use the language you picked from project1.
• 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.
• Define a class Roster, which has an associative array (other similar data structures like map, hash
map are also fine) to store all Student objects. Define appropriate methods in the class to calculate,
update, and query individual student information as well as required statistic information of all
students.
• 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 as well as the average and
highest scores of CLA, OLA, quizzes, exams, and final exam on the screen.
Transcribed Image Text: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 В >=63, but <67 D >=80, but <83 В- >=60, but <63 D- >=77, but <80 C+ <60 F >=73, but <77 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, respectively. The final result should be printed to the screen (standard output). Requirements: • You must use the language you picked from project1. • 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. • Define a class Roster, which has an associative array (other similar data structures like map, hash map are also fine) to store all Student objects. Define appropriate methods in the class to calculate, update, and query individual student information as well as required statistic information of all students. • 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 as well as the average and highest scores of CLA, OLA, quizzes, exams, and final exam on the screen.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY