The user has asked you to create them an application that prompts them for two numbers and presents them with the answers to several math questions using the two numbers. Instructions Write an application that asks the user to enter two integers and displays “The two numbers you entered are: “, followed by the two numbers on the screen.  Next, determine the sum, difference (result of first number minus the second number), product, and quotient (result of first number divided by the second number), and modulus (remainder of the first number divided by the second number) and print these values to the screen. Finally, determine the larger of the two integers, and print to the screen “The larger of the two numbers is: “, followed by the larger integer.   If the two numbers are equal, print “The two numbers are equal.”

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter5: Looping
Section: Chapter Questions
Problem 1GZ
icon
Related questions
Question

The user has asked you to create them an application that prompts them for two numbers and presents them with the answers to several math questions using the two numbers.

Instructions

Write an application that asks the user to enter two integers and displays “The two numbers you entered are: “, followed by the two numbers on the screen. 

Next, determine the sum, difference (result of first number minus the second number), product, and quotient (result of first number divided by the second number), and modulus (remainder of the first number divided by the second number) and print these values to the screen.

Finally, determine the larger of the two integers, and print to the screen “The larger of the two numbers is: “, followed by the larger integer.   If the two numbers are equal, print “The two numbers are equal.”

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
Mathematical functions
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT