calculate the total amount of money paid in by (n)number of student using flochart
Create a program that will accept number of passengers and distance from point of origin to destination. Calculate the expense of the passenger if the fare is P20.00 per kilometer. The image is the sample output. Attach the screenshot of your code.
Passenger count: 5
Distance: 2
Total fare is : (peso sign) 200.00
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).