Question: Need some help with the following Java problems 1. Converting numbers to Roman Numerals (some of them, not all). Must use the switch statement for

Need some help with the following Java problems

1. Converting numbers to Roman Numerals (some of them, not all). Must use the switch statement for this exercise. Ask the user for his or her name and a number between 1 and 10. If the number entered by the user is not a valid number (between 1 and 10, inclusive), issue an error message and display the users name. If the number is valid, display the corresponding Roman numeral number and the users name. Hope you can perform a simple web search to find the conversion codes (I is 1, II is 2, etc.). The output should include the input number and the corresponding Roman numeral. For example, something like The Roman number for 1 is I. In addition, generate a random number between 1 and 10 and display the equivalent Roman numeral.

2. A company sells a product that retails at a given amount, say, $100. Discounts are given based on the number of items purchased according to the following table:

Quantity Discount Rate

Below 10 items 0

10 - 19 10%

20 - 39 15%

40 - 79 20%

80 - 99 25%

100 or more 30%

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!