Please help me with my C++ Programming Language Laboratory
Task:
I am doing the task using Code Blocks or an online compiler.
Compiler:
Little Drops thiyagaraaj.com, C++ PROGRAMMING CONCEPTS, Single Dimensional Array Example Program in C++ Programming, PROGRAMMING ESSENTIALS
LABORATORY 4
ONE-DIMENSIONAL ARRAYS
Ex. 1
Declare and assign values to a 10-element array. Print the array.
Ex. 2
Write a program to take single letters from users and put them into an array. Print the array.
Ex. 3
Declare a 10-element array. Read values from the user and put them into the array.
Ex. 4
Generate an array of random numbers. Ask the user for the size of the array. Count the sum of all values from the array.
Ex. 5
Generate an array of random numbers and write a loop that finds the minimum element in the array.
Ex. 6
Write a program to take floating-point values from the user and write them into an array. Raise every element of the array to the 2nd power. Print the output.
Ex. 7
Write the sequence into an array: 5 10 15 20.
8 X3
Generate an array of random integer numbers. The range is 10. The user decides the size of the array. Count how many 5s you have.