Do a C++ program using nested loops to create the following report:Prompt the user for number of rows and columns and create a table with the number of rows and columns that was given by the end user and repeat this process by asking the user if the user wants to continue. If the user says Y or y you’ll clear the screen and start all over again and if the user enters N or n you’ll stop the loop and output the “Thank you” note.
Write the definition of a class Counter containing:
Write a rock paper scissors game
Calculate the median and mode for the following data set:
Data Set = 2, 9, 10, 4, 8, 4, 12
Calculate the mean for the following data set:
Data Set = 2, 9, 10, 4, 8, 4, 12
Create a class Armstrong and include startnumber and endnumber as data member and aslo include member function findArmstrongNumbers() to find all the Armstrong numbers between startnumber and endnumber. If sum of cubes of each digit of the number is equal to the number itself, then the number is called an Armstrong number.
Define a class TEST with the following description:
Private Members
TestCode of type integer Description of type string NoCandidate of type integer CenterReqd (number of centers required) of type integer A member function CALCNTR() to calculate and return the number of centers as (NoCandidates/100+1)
Public Members
SCHEDULE() A function SCHEDULE() to allow user to enter values for TestCode, Description, NoCandidate & call function CALCNTR() to calculate the number of Centres. DISPTEST() A function DISPTEST() to allow user to view the content of all the data members
Declare a class Fixed_Deposit with member variables are principal, rate and time, and member functions are MaturityAmount() to calculate the compound interest and maturity amount, and display() to print the total maturity amount(principal+compound interest).
Write a C++ Program to sort array of integers. Get the user input and display it in the sorted order.
Display students details in the following format using manipulats
Rollno Name Marks average
------ --- ---- -------
1 Ram 490 98.17
2 Kala 450 96.23