Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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++

image text in transcribed

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

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

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

Sidestep common tone and grammar problems

Answered: 1 week ago