|
Structures Programming Problem
Write a program that includes the following:
- Define a structure called scores that includes three members: worst, average, and best. Each member should be of type double.
- Declare a variable of type scores.
- Initialize the members of the variable as follows:
worst=74.5
average=82.34
best=91.6
- Declare a second variable of the same type. Prompt the user for the values of three members.
- Display the values of the three members of the second variable.
|