Question
Complete the Lotto.java lab we stated in the class. The purpose is to create a java class for GA Lottery Authority so that they can
Complete the Lotto.java lab we stated in the class.
The purpose is to create a java class for "GA" Lottery Authority so that they can run the java application to generate a ticket.
(sample) Data fields:
(lotto) type ticketNumber idNumber location timeAndDate
Methods:
at leastt 2 Constructors Lotto() pickN() generateN() getPurchaseDateTime() checkAwardAmount()
(optional) print the whole ticket in a single method
#2 Design and code a JavaAccount.java class.
Data fields:
customerName AccountNumber balance interestRate and other additional information you may want to store in the JavaAccount.
Methods:
a Constructor JavaAccount() deposit() withdraw() checkBalance() setInterestRate() checkInteretRate()
Step 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