Lab 02 - Java Programing
6/25/2020 Lab 02
https://tarleton.instructure.com/courses/11432/assignments/194807?module_item_id=538978 1/2
Lab 02
Due Monday by 11:59pm Points 100 Submitting a file upload File Types zip and 7z Available until Aug 6 at 11:59pm
Submit Assignment
Internet Service Provider
This assignment supports the following lesson objectives from Chapter 2 and Chapter 3:
Write Java programs to perform simple calculations. Use variables to store data. Write a program with assignment statements and assignment expressions. Use constants to store permanent data. Write expressions that declare Java primitive data types and String objects. Use Java operators to write numeric expressions. Use the Scanner class to obtain input from the console or JOptionPane class for dialog box input/output. Debug logic errors. Use boolean values true and false. Apply relational operators (<, <=, ==, !=, >, >=) and logic operators (!, &&, ||, ^) to write boolean expressions. Use appropriate decision structures. Format output using the DecimalFormat class.
Assignment Overview
This programming exercise covers the material in Chapter 2 and Chapter 3 and allows the student to independently create a program that uses constants, elementary data types, and numeric operators to calculate a discount using percentages as well as requires the student to use Boolean variables, relational operators, appropriate decision structures, and output formatting.
Deliverables
Place the following information in comment statements at the top of the application code (as shown in the NetBeans® Tutorial): A zipped/compressed file of your
6/25/2020 Lab 02
https://tarleton.instructure.com/courses/11432/assignments/194807?module_item_id=538978 2/2
NetBeans project folder including working source code of the Java program. Name 9-digit ID number Due Date Date Submitted Brief description of application
Activity Details
Perform the following tasks:
Step 1: Create a new project, and name it 5390_LastNameFirstInitial_LabXX (e.g., 5390_SharpJ_Lab02). Step 2: Write the Java source code necessary to build a solution for the attached problem statement: 5390_Lab02_Problem_Statement Step 3: Build, compile, and execute your code. Be sure to test the solution using a set of input data that demonstrates that your solution is correct. Step 4: Save and submit your assignment. Submit the zipped/compressed NetBeans® Project folder file using the link for Lab 02 under Assessments in the Chapter 3 Module.
Video Demonstration(s):
See videos located under the Videos page in the Chapter 2 Module.
See videos located under the Videos page in the Chapter 3 Module.
Attachment(s):
5390_Lab02_Problem_Statement.pdf