back
Structures Programming Problem
Write a program that includes the following:

  1. Define a structure called scores that includes three members: worst, average, and best. Each member should be of type double.
  2. Declare a variable of type scores.
  3. Initialize the members of the variable as follows:
    worst=74.5
    average=82.34
    best=91.6
  4. Declare a second variable of the same type. Prompt the user for the values of three members.
  5. Display the values of the three members of the second variable.