subject

Declare a structure with a type name: Car containing:

- reportingMark a string of 5 or less upper case characters
- carNumber an int
- kind could be box tank flat or other
- loaded a bool
- destination a string with a destination or the word NONE

Note: A destination is required if the car is loaded. If it is not loaded the destination may be either a destination or the word NONE.

Create the following functions:
main * Uses new to obtain space for the data structure * Calls the other two functions * Deletes the space obtained using new
input * Read all the data from the user * After all the data has been read, put all this data into the structure
output * Print the data in a neat format

Put the main function first. Use the function names and field names specified above. Arrange the functions in the order listed above. Test your program with the following data: reportingMark SP, carNumber 34567, kind box, loaded true, destination Salt Lake City

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:30
Write a function named printfloatrepresentation(float number) that will print the floating point representation of a number using the format given below. (sign bit) exponent in binary (assumed bit).significandfor example if the number passed an argument is 71 yourprogram should print (0) 10000101 (1).00011100000000000000000similarly if the number passed to the function as argument is -71 the program should print (1) 10000101 (1).00011100000000000000000
Answers: 3
question
Computers and Technology, 23.06.2019 15:20
What does a bonus object do? a. subtracts lives b. keeps track of a player's health c. gives a player an advantage d. makes text appear
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe and
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
Read these lines from beowulf.often scyld scefing seized mead-benches from enemytroops, from many a clan, he terrified warriors, even thoughfirst he was found a waif, best explains why the author includes this information in theexposition? a. to emphasize that a hero must learn to be fierceb. to remember the famous story of a popular heroc. to express sadness about losing the old heroesd. to see whether people still respect the old heroes
Answers: 1
You know the right answer?
Declare a structure with a type name: Car containing:

- reportingMark a string of 5 or l...
Questions
question
English, 16.04.2020 23:17
question
Mathematics, 16.04.2020 23:17
Questions on the website: 13722360