Programming Assignment #2 - 100 Pts 1. (70 Points) Using ANY High-Level Language, write a program that includes/accomplishes the following: a. Display a menu to the user with the following options: i. 16-bit Binary value ii. 32-bit Hexadecimal value iii. Integer value iv. Quit b. If the user selects a 16-bit Binary value, prompt the user to enter the 16-bit Binary value, read/save the input, and output the corresponding Hexadecimal value and Integer value, with appropriate introductory text labels. Then display the menu again for a new selection. c. If the user selects a 32-bit Hexadecimal value, prompt the user to enter the 32-bit Hexadecimal value, read/save the input, and output the corresponding Binary and Integer values, with appropriate introductory text labels. Then display the menu again for a new selection. d. If the user selects an Integer value, prompt the user to enter the Integer value, read/save the input, and output the corresponding Binary and Hexadecimal values. Then display the menu again for a new selection. e. If the user selects Quit, display a farewell message and terminate the program.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

need to be done in java

Programming Assignment #2 - 100 Pts
1. (70 Points) Using ANY High-Level Language, write a program that includes/accomplishes the
following:
a. Display a menu to the user with the following options:
i. 16-bit Binary value
ii. 32-bit Hexadecimal value
iii. Integer value
iv. Quit
b. If the user selects a 16-bit Binary value, prompt the user to enter the 16-bit Binary value,
read/save the input, and output the corresponding Hexadecimal value and Integer value,
with appropriate introductory text labels. Then display the menu again for a new
selection.
c. If the user selects a 32-bit Hexadecimal value, prompt the user to enter the 32-bit
Hexadecimal value, read/save the input, and output the corresponding Binary and Integer
values, with appropriate introductory text labels. Then display the menu again for a new
selection.
d. If the user selects an Integer value, prompt the user to enter the Integer value, read/save
the input, and output the corresponding Binary and Hexadecimal values. Then display the
menu again for a new selection.
e. If the user selects Quit, display a farewell message and terminate the program.
Transcribed Image Text:Programming Assignment #2 - 100 Pts 1. (70 Points) Using ANY High-Level Language, write a program that includes/accomplishes the following: a. Display a menu to the user with the following options: i. 16-bit Binary value ii. 32-bit Hexadecimal value iii. Integer value iv. Quit b. If the user selects a 16-bit Binary value, prompt the user to enter the 16-bit Binary value, read/save the input, and output the corresponding Hexadecimal value and Integer value, with appropriate introductory text labels. Then display the menu again for a new selection. c. If the user selects a 32-bit Hexadecimal value, prompt the user to enter the 32-bit Hexadecimal value, read/save the input, and output the corresponding Binary and Integer values, with appropriate introductory text labels. Then display the menu again for a new selection. d. If the user selects an Integer value, prompt the user to enter the Integer value, read/save the input, and output the corresponding Binary and Hexadecimal values. Then display the menu again for a new selection. e. If the user selects Quit, display a farewell message and terminate the program.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,