Question: Solve using C++ Drill 1. Start a program called Test output.cpp. Declare an integer birth ,year and assign it the year you were born. Output
Solve using C++

Drill 1. Start a program called Test output.cpp. Declare an integer birth ,year and assign it the year you were born. Output your birth year in decimal, hexadecimal, and octal form. 3. Label cach value with the name of the base used. 4. Did you line up your output in columns using the tab character? If not, do it. 5. Now output your age. 6. Was there a problem? What happened? Fix your output to decimal. Go back to 2 and cause your output to show the base for each output 8. Tiry reading as octal, hexadecimal, ctc. Run this code with the input 1234 1234 1234 1234 Explain the results. defaultfloat, then fixed, then scientific forms. Which output form pre- 9. Write some code to print the number 1234567.89 three times, first using sents the user with the most accurate representation? Explain why. 10. Make a simple table including last name, first name, telephone number. and email address for yourself and at least five of your friends. Experi ment with different field widths until you are satisfied that the table is well presented
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
