Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

main function must be at first Sultan Qaboos University Department of Computer Science COMP2102 Problem Solving and Programming, Spring 2108 Homework Assignment 4 Due: Tuesday

image text in transcribed

image text in transcribed

main function must be at first

Sultan Qaboos University Department of Computer Science COMP2102 Problem Solving and Programming, Spring 2108 Homework Assignment 4 Due: Tuesday 01 May 2018, 11:55pm Submission: Name your program file HW4_ID.cpp, where ID is your student ID and submit it on Moodle by the above due date/time Write a C++ program that starts by reading student information from an input file student.txt organized as follows: each student has four fields of information on one line of the input file: name (at most 25 characters, terminated by a character), ID integer), cohort (integer), and three scores (each score is an integer between 0 and 100). The program must store this information in a sorted linked list of student records (structures). The list must be kept always sorted in increasing order of the ID. The program must calculate for each student a letter grade (and store it in the student record) based on the average of his/her 3 scores according to the following: Average of the 3 Scores Letter Grade 290 80 and

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago

Question

How are members held accountable for serving in the assigned roles?

Answered: 1 week ago