Question: Programming in C language CNIT 105 In Lab09 Due: By the end of your lab session OBJECTIVES: struct in C Data Structure Declare a structure

Programming in C language  Programming in C language CNIT 105 In Lab09 Due: By the

CNIT 105 In Lab09 Due: By the end of your lab session OBJECTIVES: struct in C Data Structure Declare a structure with global scope with 2 members to store low and high temperatures. typedef struct int low.tome LowHight Temp: main) function: 1. Declare an array of struct of size 30. Name it gpril, 2. Write a loop to partially fill this array with low and high for days in April: a. b. c. Prompt the user to enter the low and high temperatures. Read them into two variables. If both low and high were equal to 0, i. Stop the data entry- break; Store the low and high in the array of struct. d. 3. After the loop, display the number of entries into the array 4. Write another loop to display the partially filled array to the screen in a tabular format with column headers. EACNIT10S test test De In_Lab09 Solution By: Shaocheng Luo Enter low and high teaperatures, enter 0.0 to end data entry: 36 6o Enter low and high temperatures, enter . 0 to end data entry: 38 56 Enter low and high temperatures Enter low and high teeperatures, enter .0 to end data entry: Number of days entered 3 enter o .o to end dat a entry: 42 69 Low High 36 60 38 56 42 69

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!