Sale!

WIX1002 Lab 5 Arrays solution

$30.00 $25.50

Category:

Description

5/5 - (3 votes)

Fundamentals of Programming
1. Write a program to randomly generate N student scores (0-100). The program will
prompt the user to enter N students and store the score in an array. Then, the program
will display a list of score, the highest score, the lowest score and the average score.
2. Write a program that generates 10 non-duplicate random integers within the range
from 0 to 20.
3. Write a program that randomly generate the seven day work hours (1-8 hours) for N
employee. Then, display the work hours in seven days and the total hours for each
employee.
4. Write a program that rotates 90 degrees clockwise a 3 by 3 matrix.
5. Write a program that generates 20 random integers within the range from 0 to 100.
Sort the array in descending order. Then, accepts an integer input from the user. Then,
search the array using this number. Compare the performance of linear search and
binary search.
6. Write a program that used to create Pascal Triangle in the square matrix. The program
will accept an integer from the users and use the integer to create the Pascal Triangle.
2 WIX1002