



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Labs for programming fundamentals
Typology: Exercises
1 / 5
This page cannot be seen from the preview
Don't miss anything!




Write a program to initialize 5 elements of arrays with initializer list (random numbers) in a list.
Input:
Output:
Write a program that reads numbers from an array and graph the information in the form of histogram. Each number will be printed, then bar consisting of asterisks (*) will be printed according to the given number.
Input:
Generate a 2 x 2 matrix using arrays. Also generate a 2 x 3 matrix in a separate program. The numbers inside a matrix can be random.
Input:
Output:
Initialize an array containing 25 numbers. Write a program to find total number of positive and negative numbers from the array.
Input:
Output: