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.
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
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.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd7dcbfcd-ec40-4419-b8e9-2a693a942e70%2F6a524417-7609-42e3-87b7-6ad1548fabb1%2Fok9c6mn_processed.png&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,