Write a program that 1) clears the screen, 2) locates the cursor near the middle of the screen, 3) prompts the user for two integers, 4) adds the integers, and 5) displays their sum; all of the prompts and output line should be displays should be at the middle of the screen, line by line. Hint: Use the Gotoxy procedure from Irvine32.lib to locate the cursor on the screen; see PowerPoint slide #9 of Ch 5, in Module 6, and Section 5.4 in the text.

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter13: Programming For Web Forms: Creatings Forms For Orders And Pa
Section13.2: Visual Overview: Passing Data Between Forms
Problem 3QC
icon
Related questions
icon
Concept explainers
Question

Write a program that 1) clears the screen, 2) locates the cursor near the middle of the screen, 3) prompts the user for two integers, 4) adds the integers, and 5) displays their sum; all of the prompts and output line should be displays should be at the middle of the screen, line by line.

Hint: Use the Gotoxy procedure from Irvine32.lib to locate the cursor on the screen; see PowerPoint slide #9 of Ch 5, in Module 6, and Section 5.4 in the text.

Sample Output:

C. C:\WINDOWS\system32\cmd.exe
Press any key to continue
Enter first integer: 65531
Enter second integer: 1029
The sum is:
+66560
I
X
A
Transcribed Image Text:C. C:\WINDOWS\system32\cmd.exe Press any key to continue Enter first integer: 65531 Enter second integer: 1029 The sum is: +66560 I X A
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Operators
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
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage