Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Choose 3 of 5 Problems to Solve Need Soon as possible Choose 3 of5 Problems to Solve (20 Point/Each) Problem l: Triangle Printing Program: Write

Choose 3 of 5 Problems to Solve
Need Soon as possible
image text in transcribed
Choose 3 of5 Problems to Solve (20 Point/Each) Problem l: Triangle Printing Program: Write an application that prints a right triangle with 1 to 8 rows. Prompt the user to enter an odd number in the range of 1 to 8 to specify the number of rows in the diamond. Add a validation loop to ensure the user does not enter an even number or a number outside the range of 1 to 8. Your program should then display a diamond of the appropriate size using asterisks(). Sample Output: Please enter a number between 1 and 8: g Invalid Number! Please enter a number between 1 and 8: 5 Problem 2: Grocery Checkout: Create a program which prompts the user for 4 pairs of values (Item Price, and Item Quantity), using a counter controlled loop. Keep running totals of the quantities, and the calculated values (price quantity), and display the total of all items, and the average price per item (totalPrice totalQuantity) Problem 3: Display a multiplication table of any row/column combination between 2 to 10. Prompt the user to enter two numbers (rows and columns) in the range of 2 to 10. Your program should then display the multiplication table using the inputted dimensions. Use two counter controlled loops, nested. Problem4: Yahtzee Roll Generate five (5) random numbers between 1 and 6, into 6 variables nl, through n6, and generate a list of the values. Determine if there is a pair of 6's within the set of values. Hint: int sixcounter-e; If (n1##6) ++sxCounter; Problem 5: Display a menu stating various languages, and asking the user for a value between 1 and 8. Generate a welcome message based upon the number received. Use the following table for your solution: 1. French: Bonjour2. Spanish: Hola 5. Japanese: Koanichiwa 6. German: Gutep Tag 7. Korean: SR 8. Arabic: Ablan Sample Output: 3. Russian: Privet 4. Italian: Ciao 1. French 2. Spanish 3. Russian 4. Italian 5. Japanese 6. German 7. Korean 8. Arabic Please select the language (1-8) in which you want to display a greeting: 3 Ciao! Submission Instructions Post to Blackboard, the 3 java programs named ProblemN.jara (where N is the number of the problem), with a text or Word file containing all output (4 files total), zipped into one zip file. Optionally, you can put all functionality into one java file and one output file, and rip it

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

3. I no longer feel able to cope with things.

Answered: 1 week ago