Question
Q1. Program Description : The program should: Ask a user to enter some digit (integer) between 1 and 9 Multiply it by 9 Write the
Q1. Program Description: The program should:
Ask a user to enter some digit (integer) between 1 and 9
Multiply it by 9
Write the output to the screen
Multiply that new number by 12345679 (note the absence of the number 8)
Write that output to the screen.
As shown below, the program should print out the entire multiplication as though you had done it by hand.
Presents the output of two different input other than 5 in the Word doc.
-------------------Sample Screen Output:----------------------
Enter a number from 1 to 9: 5
5
X 9
----------------
45
X 12345679
---------------------
555555555 (To look like this, the last number must be an int.)
Note: Your alignment does not need to be perfect, but should roughly approximate what you see above.
---------------------------------------------------------------------
Q2. Program Description: Write a program that prompts the reader for two integers and then prints:
The sum
The difference (This should be number1 minus number2.)
The product
The average (This should be a double number. with decimal point)
Presents the output of two different input sets in the Word doc.
--------------Sample Screen Output:------------------
Enter number 1: 13
Enter number 2: 20
Original numbers are 13 and 20.
Sum = 33
Difference = -7
Product = 260
Average = 16.5
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started