Write a c++ program The above figure represents relationships between different struct variables as described in the following narrations: OnRoad is Company struct variable. Amy, Sammy, and Terry are...



Write a c++ program



The above figure represents relationships between different struct variables as described in the following narrations: OnRoad is Company struct variable. Amy, Sammy, and Terry are name variables of Driver structs. As depicted, Company struct has six components. The Driver struct has three components. In your program you need to create all structs variables, make appropriate dereferencing (pointer connection), and display drivers' names using OnRoad variable. Expected output is the following:


OnRoad's first driver is Amy.
OnRoad's second driver is Sammy.
OnRoad's third driver is Terry.


Requirements:


 - Driver structures should be created with "new" keyword.


 - Three Driver pointer types (of Company Struct) should be individual variables, not array.




OnRoad<br>Name<br>DL<br>СЕО<br>HoursPerWeek<br>Address<br>NumOfEmp<br>Driver<br>Name<br>Driver<br>DL<br>Driver<br>HoursPerWeek<br>Name<br>DL<br>HoursPerWeek<br>

Extracted text: OnRoad Name DL СЕО HoursPerWeek Address NumOfEmp Driver Name Driver DL Driver HoursPerWeek Name DL HoursPerWeek

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here