1. Engineering
  2. Computer Science
  3. need help with this in java...

Question: need help with this in java...

Question details

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,000.

Need help with this in java

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution