Suoritettu

java project

Write a Java application that simulates a test. The test contains at least five questions about first

three lectures of this course. Each question should be a multiple-choice question with 4 options.

Design a Test class. Use programmer-defined methods to implement your solution.

Display the questions using methods of JOptionPane class. Use a loop to show al the questions.

For each question:

- If the user finds the right answer, display a random congratulatory message (“Excellent!”,

“Good!”, “Keep up the good work!”, or “Nice work!”).

Java Programming COMP 305

- If the user responds incorrectly, display an appropriate message and the correct answer (“No.

Please try again”, “Wrong. Try once more”, “Don't give up!”, “No. Keep trying”).

- Use random-number generation to choose a number from 1 to 4 that will be used to select an

appropriate response to each answer.

- Use a switch statement to issue the responses, as in the following code:

switch ( [url removed, login to view]( 4 ) )

{

case 0:

return( "Very good!" );

……

}

At the end of the test display the number of correct and incorrect answers, and the percentage of

the correct answers.

Your main class will simply create a Test object and start the test by calling doTest method.

(5 marks)

Exercise 2:

Design a Lotto class with one array instance variable to hold three random integer values (from 1

to 9). Include a constructor that randomly populates the array for a lotto object. Also, include a

method in the class to return the array.

Use this class to simulate a simple lotto game in which the user chooses a number between 3

and 27. The user runs the lotto up to 5 times and each time the sum of lotto numbers is calculated.

If the number chosen by the user matches the sum, the user wins and the game ends. If the

number does not match the sum within five rolls, the computer wins.

Use methods of JOptionPane class to interact with the user.

(3 marks)

Exercise 3:

Write a Java class that implements a set of three overloaded static methods. The methods should

have different set of parameters and perform similar functionalities. Call the methods within main

method and display the results.

Taidot: Java

Näytä lisää: mini java project, java projects for students, java project topics, java projects for beginners, java projects github, java projects for engineering students, projects in java for final year students, core java projects, java project edu searchbyname, convert java project maven build, pwm generator java project, sample java project, simple java project code, java project management pdf, configure java project using serverxml tomcat, gis java project, java project school registar, prefuse java project active, java project linked list assignemnt solution, java project simple

Tietoa työnantajasta:
( 0 arvostelua ) Canada

Projektin tunnus: #16306308

Myönnetty käyttäjälle:

asfaqeazam

Hello Sir I understood your project needs properly and I am very professional at this. I am a java expert and can work very efficiently with your problems. Regards

$15 CAD 1 päivässä
(1 arvostelu)
0.2
Irtza46

I have worked on many projects on several different freelancing sites and also on several local projects. I have good knowledge related to what you want. And I'll make sure you won't be disappointed.

$10 CAD 1 päivässä
(0 Arvostelua)
0.0

18 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

$24 CAD 1 päivässä
(170 arvostelua)
6.9
iridescent2x15

Hi i am software engineer and have completed many java projects. Feel free to share more details in chat. Thank you

$25 CAD 1 päivässä
(43 arvostelua)
5.6
$25 CAD 1 päivässä
(81 arvostelua)
5.3
paulprabhakarand

Hi, This is Paul Devanesan has done [login to view URL] from IIT Madras worked for several TOP MNCs and then started my own development office in India. I am a certified Java Professional, till now I developed and delivered severa Lisää

$30 CAD 1 päivässä
(12 arvostelua)
4.9
$25 CAD 1 päivässä
(36 arvostelua)
4.9
Sheraz18

I am a software engineer having 4 year experience of java with excellent gui. i can make your project better then anyone could. you can check my portfolio as well. your satisfaction would be my top priority. i am sure Lisää

$25 CAD 0 päivässä
(13 arvostelua)
4.3
$30 CAD 1 päivässä
(11 arvostelua)
3.6
skfaroo123

Hi I am very interested in your project. I have strong experiences in java field. I am looking forward to discussing your project. Best Regards.

$25 CAD 1 päivässä
(3 arvostelua)
3.0
Jaybu

Hi there! I am experienced with Java (see my profile for recent feedbacks) and can finish your project within one day. You will also receive free support after the project for the code I write.

$25 CAD 1 päivässä
(12 arvostelua)
3.1
NaumanTariq94

Hello sir. I have good java expertise and i would like to work on your project. Feel free to conatct me. Thanks

$25 CAD 1 päivässä
(5 arvostelua)
2.9
WebGreenSoft

Dear Employer, I am ready to work on your required task and can also give 100% satisfaction. Looking forward to an opportunity to work with you. Warm Regards: WebGreenSoft

$30 CAD 1 päivässä
(7 arvostelua)
2.7
asusbxik

Hi, I have 2 year experience with Java, so I think this can help me successfully complete your task. I will be glad to help you. Thanks.

$30 CAD 1 päivässä
(2 arvostelua)
1.1
$20 CAD 2 päivässä
(0 arvostelua)
0.0
isaacmwendwa107

The project exercises employ the concept of object orientation with Java. I have learnt Java as an object oriented language, thus will be able to come up with the correct solutions to the exercises. Relevant Skills an Lisää

$30 CAD 2 päivässä
(0 arvostelua)
0.0
$30 CAD 1 päivässä
(0 arvostelua)
0.0
ramezalmawi

I'am one of the best candidates because i did a lot of excellent work in my first semester as a computer scientist also got high grades on exercices like this.

$25 CAD 1 päivässä
(0 arvostelua)
0.0