Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ programing Tasks 1) Create a function with the following signature: int PromptForInteger(const char *prompt, int lowerLimit, int upperLimit); The function must keep prompting the

c++ programing

Tasks

1) Create a function with the following signature:

int PromptForInteger(const char *prompt,

int lowerLimit,

int upperLimit);

The function must keep prompting the user to enter a value until they enter a value within range. The function must return the entered value.

2) Create a function that gets the following information from the user:

Their age

The month of their birth

The day of their birth

All three values must be entered as integers. You must use PromptForInteger to perform the input. The values must be returned to the caller.

3) Create a function that prints the date of someones 21st birthday given their age, and the month and day of their birth.

4) Create a main() that calls the functions from parts 2 and 3.

5) Create a Structure Chart for your program.

Submitting your lab

You must create a ZIP file of your project. You must create a PDF of your structure chart. If you use a Microsoft product (Word, PowerPoint, Visio) to create your structure chart, you should be able to export it as a PDF.

You must attach two files to your submission: the ZIP file of your project and the PDF of your structure chart.

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

More Books

Students also viewed these Databases questions

Question

1. How does Kiwi Experience maintain a continual customer focus?

Answered: 1 week ago