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 21:40
Develop a function to create a document in the mongodb database “city” in the collection “inspections.” be sure it can handle error conditions gracefully. a. input -> argument to function will be set of key/value pairs in the data type acceptable to the mongodb driver insert api call b. return -> true if successful insert else false (require a screenshot)
Answers: 2
question
Computers and Technology, 23.06.2019 06:40
What are the three uses of a screw?
Answers: 2
question
Computers and Technology, 24.06.2019 02:10
Consider the usual algorithm to convert an infix expression to a postfix expression. suppose that you have read 10 input characters during a conversion and that the stack now contains these symbols: (5 points) | | | + | | ( | bottom |_*_| now, suppose that you read and process the 11th symbol of the input. draw the stack for the case where the 11th symbol is
Answers: 2
question
Computers and Technology, 25.06.2019 04:30
He 98 pointsss how has computers changed over the years? how can they be used now? give details and such!
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
History, 16.10.2020 20:01
question
Mathematics, 16.10.2020 20:01
question
Social Studies, 16.10.2020 20:01
question
Mathematics, 16.10.2020 20:01
question
Chemistry, 16.10.2020 20:01
question
Mathematics, 16.10.2020 20:01
Questions on the website: 13722363