Answered You can hire a professional tutor to get the answer.

QUESTION

Declare an enumeration type consisting of the nine planets in their order by distance from the Sun (Mercury first, Pluto last).

string"EARTH"

"Error"

5.Declare a struct type, Time that represents an amount of time consisting of minutes and seconds.

6.What statements that assign the time 6 minutes and 54 seconds to a variable, someTime, of type Time, as declared in Exercise 5.

7.structSongCategory.

8. statements to declare a variable called mySong of type Song, and assign it a set of values. For the playing time, use the variable someTime declared in Exercise 6. Make up values for the other fields. Assume that the enumeration type Category includes any song category that you wish to use.

9.What statement to output the playing time from mySong, as declared in Exercise 8, in the format mm: ss.

10.What declaration of a union type called Temporal that can hold a time represented as string, as an integer, or as a value of type Time, as declared in Exercise 5.

11.What declaration of a variable called shift of type Temporal, as declared in Exercise 10, and the statements that assigns the value of someTime, as declared in Exercise 6, to shift.

12.Declared a pointer variable intPointer and initialize it to point to the an int variable named someInt. Write two assignment statements, the first of which stores the value 451 directly into someInt, and the second of which indirectly stores 451 into the variable pointed to by intPointer.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question