Section 17.5 Advanced Array Practice
More practice? Yes! I don’t have to remind you that practice makes perfect, right? Please pick and solve at least one of the following problems:
Subsection 17.5.1 Option 1
Activity 17.4.
Write a program that prompts the user to enter the weight of a letter and that tells the user the postage necessary to mail this letter with the US Postal Service.
Here is a sample output:
How much does your letter weigh (in ounces): 5.5
The postage is 203 cents.
Note: You can start with the code given below. Postage is calculated based on the next higher weight in the chart.
admin.....open in new window
When you are done, please paste your code into the code submission box below:
Subsection 17.5.2 Option 2
Activity 17.5.
Write a C-program that finds the largest integer stored in an array of integers. You can write your code so that the array values are entered by the user, or you may simply hardcore an integer array for test purposes as is done below.
admin.....open in new window
When you are done, please paste your code into the code submission box below:
Subsection 17.5.3 Option 3
Activity 17.6.
Write a C program that finds the average of integer numbers stored in an array. You may have the user enter the array values, or you can simply hard-code the array for testing purposes as is done below.
admin.....open in new window
When you are done, please paste your code into the code submission box below: