Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

AMERICAN UNIVERSITY OF SCIENCE & TECHNOLOGY

FACULTY OF ENGINEERING & COMPUTER SCIENCE

CSI205L – Programming I Lab


Section R

Spring Term 2023-2024


Lab Work 11

Problem 1:
Write a program to store in an array A of 100 cells N random numbers in the range 1
to 20. The program should prompt the user to choose from the following menu:
(Write a function to solve each listed task)
1. Output each number in the array and its square root value.
2. Find the maximum and minimum values stored in A.
3. Find the percentage of even integers in A.
4. Exit.

Problem 2:
Write a C++ program to read a line of input terminated by ‘#’ into an array L of 100
cells. The program should do the following:
• Capitalize all vowels in L.
• Change the case of all letters in L from capital to small and vice versa. Then
output L.

Problem 3:
Write a C++ program to input and store the sales of 10 employees in the last 3
months. The program should output the following information: (Write a function to
solve each listed task)
1. The total sales of each employee.
2. Average sales per each month.
3. The highest sales value in the 3 months for all employees.
4. The minimum sales per employee.

You might also like