6. ??Write a program that asks the user for an ending value. Ask the user for a number. Use a for loop to calcul
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →6. Write a program that asks the user for an ending value. Ask the user for a number. Use a for loop to calculate and display the following.
Index and the value of the number
During each iteration of the loop the value of the number should double and add 1. Example if number is 2, the next value should be 5. The next value after that should be 11, and next would be 23.
SAVE AS midtermprogram6.cpp
——————————————-
7. Membership Fees IncreaseA country club, which currently charges $2,500 per year for membership, has announced it will increase its membership fee by 4 percent each year for the next 6 years. Write a program that uses a loop to display the projected rates for the next 6 years.
SAVE AS midtermprogram7.cpp
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds