2023 1 a Create a console based lottery game application named Lottery Generate three random numbers | Assignment Collections

Computer Science 2023 A+ Work

2023 1 a Create a console based lottery game application named Lottery Generate three random numbers | Assignment Collections

1.         a.

Create a console-based lottery game application named Lottery. Generate three random numbers, each between 1 and 4. Allow the user to guess three numbers. Compare each of the user’s guesses to the three random numbers and display a message that includes the user’s guess, the randomly determined three-digit number, and the amount of money the user has won as follows:

Matching Numbers                             Award ($)

Any one matching                                    10

Two matching                                          100

Three matching, not in order                1000

Three matching in exact order           10,000

No matches                                                  0

Make certain that your application accommodates repeating digits. For example, if a user guesses 1, 2, and 3, and the randomly generated digits are 1, 1, and 1, do not give the user credit for three correct guesses—just one.

1.  b.

Create a GUI application named LotteryGUI that lets the user play the Lottery game described in Exercise 9a.

2.         a.

In a “You Do It” section of this chapter, you created a tipping table for patrons to use when analyzing their restaurant bills. Now, create a modified program named TippingTable2 in which each of the following values is obtained from user input:

•           The lowest tipping percentage

•           The highest tipping percentage

•           The lowest possible restaurant bill

•           The highest restaurant bill

10.  b. Create a GUI application named TippingTable2GUI that creates a tipping table after the user clicks a button. Get the lowest and highest tipping percentages and the lowest and highest restaurant bills from TextBox entries. The application should look similar to Figure 5-28.

 

Figure 5-28:    Typical execution of TippingTable2GUI program

3.

Write a program named Commission that computes commissions for automobile salespeople based on the value of a car sold. Salespeople receive 5 percent of the sale price for any car sold for up to and including $15,000; 7 percent for any car over $15,000 up to and including $24,000; and 10 percent of the sale price of any car over $24,000. Write a program that allows a user to enter a car price. The output is the salesperson’s commission.

 

 

 

 

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational