Question: This is C++ Programming Problem 1 Write a program that prompts the user to enter a positive integer. Use a loop to compute the sum

This is C++ Programming

Problem 1

Write a program that prompts the user to enter a positive integer. Use a loop to compute the

sum of all integers between 1 and the number entered.

Problem 2

Write a program that computes the rise of ocean levels for the next x years where x is an integer larger than 2 entered by the user. Use #include to properly align the output match the formatting in the example below.

Problem 3

Write a program that simulates a checking account. Initially, the program prompts the user to open an account and deposit an initial balance of at least $20. Afterwards, the program repeatedly shows

a menu with the following options:

1.Depositingmoney

2.Withdrawing money

3.Viewing the current balance

0.Exit

Split your program using functions. Define the following prototypes and implement them below

the main:

// shows menu, prompts for and returns valid option

int promptOption();

//

prompts for amount

(>0)

to deposit and

adds it to the balance

void deposit(float &balance);

// prompts for amount

(>0)

to

withdraw

and

// subtracts

it

from

the balance

void withdraw(float &balance);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!