CISC105 - General Computer Science
Lab #5
Arrays
- Goals
This lab is an exercise to familiarize you with the C Language concept of Arrays.
You will need to perform the following:
- Create (edit), compile (debug), and execute a C program.
- Facilitate the concepts of Arrays.
- Create a script which includes the following for the program:
- Concatenation of the source code.
- Compilation of the source code.
- Execution of the completed bug-free program.
- Array Exercise
Create a program that performs the following:
- Accepts ten grades (integers) from the screen
- Sort the grades in descending order
- Displays the sorted grades to the screen
- Displays the average of the grades rounded to two decimal places
Please enter the following grades in the order shown:
77
89
90
56
67
66
98
81
73
85