Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help with this in java CSIS3101 Assignment 3 Due Date: 02/03/2018 Question 1: (50 points) Write a program in JAVA using nested loops that
Need help with this in java
CSIS3101 Assignment 3 Due Date: 02/03/2018 Question 1: (50 points) Write a program in JAVA using nested loops that asks the user to enter a value for the number of rows to display. It should then display that many rows of asterisks, with one asterisk in the first row, two in the second row, and so on. For each row, the asterisks are preceded by the number of exclamation marks(1) needed to make all the rows display a total number of characters equal to the number of rows. A sample run would look like this: Enter number of rows: 5 Question 2 (50 points) Write a program that takes in a wrinning lottery of a three-digit number, prompts the user to enter a three-digit number, and determines whether the user wins according to the following rule: If the user input matches the lottery in exact order, the award is $10,000. If all digits in the user input match all the digits in the lottery number, the award is $7,000. If two digits in the user input match two digits in the lottery number, the award is $4,000. . If one digit in the user input matches a digit in the lottery, the award is $1,000Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started