C 19543307

  Write the program that reads two numbers from the keyboard. It then calculates and print the sum, product, difference of the two numbers including the two numbers entered. The program should prompt the user to continue or exit. If the user enters a (Y/y) then the program prompts the user to enter two numbers else the program exit. If the sum of the two numbers is an even number then multiply the sum by 2.5 and print the new result. If product of the two numbers is not an even number, then multiply the product by 2 and print the new result. The program must also print the two numbers entered. If difference of the two numbers (number 1 – number 2) is a negative number then add 10 to the difference of the numbers and print the new result.

 

2. Write a program that prints the number series from 1 to a user-specified limit in the form of a rectangle. Please see example below.

Please enter a number between 1 and 9: 6

 

Result:

1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6

3.

  Write a program that prompts the user to input two numbers, the multiplicand (which is the number to be multiplied or repeated), and the maximum multiplier (which is the number by which it is to be multiplied (repeat count).

The program should print the multiplication table of the multiplicand from 1 up to the multiplier. For example, if the user enters 10 (multiplier) and 5 multiplicand then the program should print as follows:

  1 x 5 = 5

  2 x 5 = 10

  3 x 5 = 15

  4 x 5 = 20

  5 x 5 = 25

  6 x 5 = 30

  7 x 5 = 35

  8 x 5 = 40

  9 x 5 = 45

10 x 5 = 50

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer