Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Suppose that you have the following definitions: (8) struct timeType struct tour

ID: 3910536 • Letter: S

Question

Suppose that you have the following definitions: (8) struct timeType struct tourType int hr double min; int sec; atring cityNamei int distance timeType travelTime; 1i )i a. Declare the variable destination of type tourType. b. Write C+ +statements to store the following data in destination cityName-Chicago, distance-550 miles, travelTime-9 hours and 30 minutes. z Write the definition of a function to output that data stored in a d. Write the definition of a value-returning function that inputs data e. Write the definition of a voia function with a reference parameter variable of type tourType. into a variable of type tourType. of type tourType to input data in a variable of type tourType

Explanation / Answer

1. tourType destination; 2. destination.cityName = "Chicago"; destination.distance = 550; timeType time; time.hr = 9; time.min = 30; time.sec = 0; destination.travelTime = time; 3. void printTourType1(tourType destination){ cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote