Lab05

.docx

School

Wayne State University *

*We aren’t endorsed by this school

Course

3020

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

4

Uploaded by MateMandrill3698 on coursehero.com

CSC 3020 Java Programming Lab 05 25 points Due 10/12/2023 In Class All assignments must be submitted by the Canvas. No email or hard copy is accepted. You must follow the following format: 1. include only the source file for each problem. 2. Submit your file to the Canvas. You must submit your assignment on time; otherwise, you will receive zero. In addition, you cannot submit your file more than one time . 3. There will be several folders on the Canvas. You need to upload your file(s) using the correct folder on the Canvas. 4. Name each file: “ AccessID _Lab05_ Q1 ”.txt 5. To upload your file(s): 1. In Course Navigation, click the Assignments link. 2. Click the title of the Lab. 3. Click the Submit Lab button. 4. Add File . ... 5. Add Another File . ... 6. Submit Assignment. ... 7. View Submission . It is your responsibility to make sure that each file is uploaded correctly. If you uploaded a wrong file, you receive zero; files will not be accepted after due date even if you have a prove that the file is created before the due date. Your program should be free of syntax errors (i.e. it must compile). If it does not, you will receive a zero. Solution to this assignment will not be posted on Canvas; however, any question can be discussed in the class upon request of a student. Each solution text file MUST have the following flower box comment along with labels. I would copy this into your code.: /******************************************************************** Name: Access ID: Date: mm/dd/yyyy *******************************************************************/
CSC 3020 Java Programming Lab 05 25 points Due 10/12/2023 In Class Write a java program that simulates a Banking Application System (25 pts). Coding Style You must use appropriate variable names that are descriptive of the variable contents, method function, etc. You must use single-letter variables for for loops. You must name variables, method names, and classes using standards presented in class (i.e. camel case, or init capped). When prompting for data, make sure there are no errors in response. Respond appropriately and then re prompt. Each method MUST have a flower pot comment which also includes a description of what the method does. The Fan class Design a class named Fan to represent a fan. The class contains: Three constants named SLOW, MEDIUM, and FAST with the values 1, 2, and 3 to denote the fan speed. The Fan class A private int data field named speed that specifies the speed of the fan (the default is SLOW). A private Boolean data field named on that specifies whether the fan is on (the default is false ). A private double data field named radius that specifies the radius of the fan (the default is 5). A string data field named color that specifies the color of the fan (the default is blue). The accessor and mutator methods for all four data fields. A no-arg constructor that creates a default fan. A method named toString() that returns a string description for the fan. o If the fan is on, the method returns the fan speed, color, and radius in one combined string .
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help