Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

C++ image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

d. How were you expected to contribute to family life?

Answered: 1 week ago