subject

This is the assignment

Write a program that:

stores your name in one variable called name
stores your age in another variable called age
prints a one-line greeting that includes your name and your age.
Your program should output something like this:

Hi! My name is Arthur and I am 62 years old.
Hint: Do not get user input for the values of name and age but instead simply save these values inside your program as static variables, or variables that do not change value.

What should my code be?

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 23:30, artursino
Me2540 week 5 assignment what do i want to know?
Answers: 1
image
Computers and Technology, 22.06.2019 17:30, kallee10
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
image
Computers and Technology, 23.06.2019 15:00, puppylove899
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a. an advanced knowledge of physics and math b. an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 1
image
Computers and Technology, 24.06.2019 00:20, talyku843
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
You know the right answer?
This is the assignment

Write a program that:

stores your name in one variabl...

Questions in other subjects: