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.

3.Ask the user for 3 numbers and then use them to compute 2 separate but similar-looking equations. Here are the 2 equations you will compute: a + 1 * b + 2 - c (a + 1) * (b + 2) - c

4.Ask the user for a temperature in Celsius, and then convert it to Fahrenheit. Ask the user for a temperature in Fahrenheit, and then convert it to Celsius. Use variables of type double. Here are the 2 equations youll need: C = (F 32.0) * (5.0 / 9.0) F = (C * 9.0) / 5.0 + 32.0

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