Question: 17.( struct Color 5 pts) Consider the foliowing structure declarations when answering the questions below. int red int green; int blue: struct Pixel color c1or

 17.( struct Color 5 pts) Consider the foliowing structure declarations when

17.( struct Color 5 pts) Consider the foliowing structure declarations when answering the questions below. int red int green; int blue: struct Pixel color c1or int intensity a) Write a statement that declares the identifier purple as a variable of Data Type Color. b) Write an output statement that will output the value of green of the variable purple. c) Write a statement that declares the identfhier dot as a variable of Data Type Pixel d) Write a statement that assians a valve of 50 to the intensity member of dot e) Write an outout statement that willoutput the value of blue of the color member of dot 18.(5 pts) Write the type declaration for a struct Data Type named Appointment containing the following members: a string variable representing the name of the appointment A Date variable indicating the date of the appointment where Date is a structure data type already declared . A Time variable indicating the time of the appointment where Time is a structure data type already declared

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!