Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started