subject

In this exercise you will expand your timeInput. cpp, which only dealswith lecture times, so that you can have more information about each lecture, and print a schedule to the student. More specifically, you should keep your Timestructure from timeInput. cppand create a new Coursestructure consistedof the following variables:. 1. name, type string, which stores the name of the course 2. credits, type int, which stores the number of credits for the course 3. majorRequirement, type bool, whfch tells if the course is a requirement for your major 4. avgGrade, type double, which gives the average grade (in percentage) that past students received in the course 5. days, type string, which stores the days that lectures are held 6. startTime, type Time (from exercise 1), which is the start time of the lecture 7. endTime, type Time (from exercise 1), which is the end time of the lecture Your program should read the course information from a text file called "in. txt". This file should contain the following pieces of information on the lines specified below: Line 1: Course number: How many courses the user wants to sign up for. Line 2: Name of the course Line 3: Credits Line 4: Is the course a major requirement? (1-yes, 0-no) Line 5: Average grade for the course Line 6: Lecture days Line 7: Start time of the lecture Line 8: End time of the lecture Line 9-15: Repeat same information for additional course, if it exists. In order to receive full credit for this part of the lab, you MUST create the two In order to read the avgGrade, you will need to convert from strings to floats. The Note: structures, Time and Course, consisted of the proper variables. function you can use to do so is atof, which takes in an array of characters as a parameter (again, NOT a string). To convert a string to an array of characters, use the function cstr().

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
Eye injuries usually occur as a result of all of the following things, except: a) proper machine operation b) battery explosion c) falling or flying debris d) electric welding arc
Answers: 2
question
Computers and Technology, 22.06.2019 08:30
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet.what cloud model is linda using
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
You know the right answer?
In this exercise you will expand your timeInput. cpp, which only dealswith lecture times, so that yo...
Questions
question
Mathematics, 08.05.2021 01:00
question
Mathematics, 08.05.2021 01:00
Questions on the website: 13722367