Purpose: - Write a C program Generate some output with printf Use a variable Description: Write a c program that prints: Your name Your e-mail address Your High School Нопe town - Current college - Current year in school Your age in decimal Your age in octal Your age in hexadecimal on nine separate lines. Include a label before each piece of information you print. Treat your age as a single, stored numeric piece of data by placing it in a variable. Use conversion specifiers to produce the various bases for the one value in that variable. {See the textbook, or the Appendix to Polzin's notes for conversion specifier information.} *** Do not read any inputs, just produce the output. *** Ex: Name: John Doe E-mail: jdoeêmymail.com High School: Central Minnesota High Home town: Lake Wobegon, MN Current College: Normandale Community College Current year in school: High school senior Age: 17 Age in octal: 21 Age in hexadecimal: 11

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.6: A Case Study: Radar Speed Traps
Problem 5E: (Conversion) a. Design, write, compile, and run a C++ program to convert temperature in degrees...
icon
Related questions
Question
Purpose: - Write a c program
- Generate some output with printf
- Use a variable
Description:
Write a c program that prints:
- Your name
- Your e-mail address
- Your High School
- Нопе tow
- Current college
Current year in school
- Your age in decimal
- Your age in octal
- Your age in hexadecimal
on nine separate lines. Include a label before each piece
of information you print. Treat your age as a single,
stored numeric piece of data by placing it in a variable.
Use conversion specifiers to produce the various bases for
the one value in that variable.
{See the textbook, or the Appendix to Polzin's notes for
conversion specifier information.}
*** Do not read any inputs, just produce the output. ***
Ex:
Name: John Doe
E-mail: jdoeêmymail.com
High School: Central Minnesota High
Home town: Lake Wobegon, MN
Current College: Normandale Community College
Current year in school: High school senior
Age: 17
Age in octal: 21
Age in hexadecimal: 11
Transcribed Image Text:Purpose: - Write a c program - Generate some output with printf - Use a variable Description: Write a c program that prints: - Your name - Your e-mail address - Your High School - Нопе tow - Current college Current year in school - Your age in decimal - Your age in octal - Your age in hexadecimal on nine separate lines. Include a label before each piece of information you print. Treat your age as a single, stored numeric piece of data by placing it in a variable. Use conversion specifiers to produce the various bases for the one value in that variable. {See the textbook, or the Appendix to Polzin's notes for conversion specifier information.} *** Do not read any inputs, just produce the output. *** Ex: Name: John Doe E-mail: jdoeêmymail.com High School: Central Minnesota High Home town: Lake Wobegon, MN Current College: Normandale Community College Current year in school: High school senior Age: 17 Age in octal: 21 Age in hexadecimal: 11
Notes:
Nicely format and label your output.
-
Gradually develop your program in steps:
Write code to print your name only
Add additional output one line at a time
Print your age in base 10
Add additional numeric bases one at a time
Read and follow the Programming Guidelines posted on otto.
-
Programming -> Programming guidelines
*
Transcribed Image Text:Notes: Nicely format and label your output. - Gradually develop your program in steps: Write code to print your name only Add additional output one line at a time Print your age in base 10 Add additional numeric bases one at a time Read and follow the Programming Guidelines posted on otto. - Programming -> Programming guidelines *
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Concept of pointer parameter
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning