Question: C++ 5) Write a program segment using WHILE loop condition that reads a positive number and writes the series of positive even numbers starting from
5) Write a program segment using WHILE loop condition that reads a positive number and writes the series of positive even numbers starting from that number until zero (including zero). The input/output should be the following (note the user input is in bold): Please enter a number: The positive even numbers are: 10 86420 10 6) Write program using WHILE loop condition. Ask the user to input the initial energy level. Each time a pushup being done the energy level goes down 2 units. Pushups can only be done when energy level is greater than or equal to 2. Show the output how many pushups were done. The input/output should be the following (note the user input is in bold) Please enter your level of energy (in number units): 10 You can perform 5 pushups 7) Write a Bank-CD program that given the principal amount of deposit, number of years the money would be deposited and interest rate, will calculate the CD mature amount. Given the input Year 3, Interest- .05, Principal 1000 Year Principal Interest IncomeTotal Value 1000.00 50.00 1050.00 52.50 1102.50 55.12 1050.00 1102.50 1157.62
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
