Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ computer language 1. Ask the user for their initials and save them off to separate char variables, one for first name initial, the other

C++ computer language

1. Ask the user for their initials and save them off to separate char variables, one for first name initial, the other for last name initial. Then, ask the user for their age, and save it in an integer. Make sure that all of your input is validated so that only numeric data can be saved off to the age. Multiply the age by 365 to get the days that theyve been alive (we dont care about leap years, theyre worthless). Finally, display everything back to the user.

2. Make an array of integers of size 5. Then, ask the user to fill out each slot of the array with a number. Make sure to do input validation for each round of input. Once done, display the inputs back to the user. Again, make sure the user cant pull any shenanigans and enter character data.

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

Contemporary Issues In Database Design And Information Systems Development

Authors: Keng Siau

1st Edition

1599042894, 978-1599042893

More Books

Students also viewed these Databases questions