Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

Acceptance of the key role of people in this process of adaptation.

Answered: 1 week ago

Question

preference for well defined job functions;

Answered: 1 week ago