CCS11303: OBJECT ORIENTED PROGRAMMING Assignment, SUT, Malaysia To provide an in-depth understanding of java programming and for students to demonstrate effective java skills
University | Swinburne University of Technology (SUT) |
Subject | CCS11303: OBJECT ORIENTED PROGRAMMING |
Objective
To provide an in-depth understanding of java programming and for students to demonstrate effective java skills; and for students to be able to identify the problems along with strategies to be employed to solve the question. Chapter cover Chapter 2: Object Orientation
This assignment is to achieve CO:
CO2Â Â Â construct a Java program that requires the use of arrays to hold primitive data types and objects. (C6,PLO2)
 Question 1
Create an application named TestMethods whose main() method holds two
integer variables. Assign values to the variables. In turn, pass each value to methods named displayIt(), displayItTimesTwo(), and display ItPlus OneHundred(). Create each method to perform the task its name implies.
Question 2
Write an application that displays the result of dividing two numbers and displays any remainder. The main() method contains variables that hold the values. Perform the calculation and display the results in a separate method from the main() method.
Question 3
Write an application that calculates and displays the weekly salary for an employee who earns RM25 an hour, works 40 regular hours and 13 overtime hours, and earns time and one-half (wage * 1.5) for overtime hours worked. Create a separate method to do the calculation and return result to the main() method to be displayed.
Question 4
Create a class named Invoice containing fields for an item number, name, quantity, price , and total cost. Create constructor to pass value of the item name, quantity and price. Also include a displayLine() method that calculates the total cost for the item (As price times quantity) then displays the item number, name, quantity price, and total cost. Save the class as Invoice.java.
Create a class named TestInvoice whose main() method declares three invoice items. Provide values for each, and display them. Save the application as TestInvoice.java.
Question 5
Jaya Jusco (JJ) Sdn Bhd needs you to develop an application to calculate their customer JJ point’s reward. Define a class named Customer with the following variables declarations:
String CustName;
String CustAddress;
int pointRewards;
- Provide a default constructor and another constructor with three parameters. The constructor with parameters will assign the three values (String CustomerName, String CustomerAddress, int point). Define a public instance method named calculatePoint()to calculate the customer rewards if the point is greater than 300 points. The formula indicates that if the point is greater than 300 points, the system will add up extra 50 points.
Define another class named Testing to test the Customer class. Use the Scanner method to get the CustomerName, CustomerAddress and point values from the user. Declare class and create object Customer. Call the calculate Point( ) method to display the current customer points reward
Get Solution of this Assessment. Hire Experts to solve this assignment for you Before Deadline.
Get Help By Expert
Swinburne University's CCS11303: Object-Oriented Programming assignment becomes a breeze with Assignment Helper MY's online assignment help. Our expert programmers offer tailored solutions and comprehensive guidance to excel in OOP concepts. Boost your coding prowess and understanding of classes, inheritance, and polymorphism with our 24/7 support. Unleash your potential and conquer complex projects confidently.
Recent Solved Questions
- UGB363: You have recently joined the investment team as a financial analyst at Supergrowth Investment PLC: Strategic Corporate Finance Assignment, USM, Malaysia
- TEE103: (a) Solve the voltage v0 in Figure 8 by using mesh analysis: Circuit Theory I Assignment, WOU, Malaysia
- A manufacturer produces a rechargeable earphone at its plants located in Banting, Ipoh and Kulai. The unit transportation cost for shipments: Management Decision Science, Assignment, MMU, Malaysia
- Fundamentals of Finance Assignment, MUM, Malaysia PYG Berhad inventory is held on average for 50 days, account receivable is collected in 20 days, and account payable
- BBF305/03: Investment and Portfolio Management Assignment, WOU, Malaysia Evaluate the three mutual funds using Sharpe and Treynor measure and Given the risk-free rate is 5%
- BAMS1743: Jan-2024- Quantitative Methods, Assignment , TAR UMT, Malaysia
- Information Technology Assignment, OUM, Malaysia Information and Technology (IT) development and sophistication are viewed as significant phenomena that have a significant
- FIT3155: Advanced data structures and algorithms Report, MUM, Malaysia Write a program in C++ to demonstrate your ability to apply stack or queue data structures
- Mpu3223_v2: Entrepreneurship II Keusahawanan II May 2024 Semester, Assignment, OUM, Malaysia
- BBM208/05: Business Ethics Assignment, WOU, Malaysia Mr. Musk opened his California factory this week in defiance of local orders He has also criticized the response to the pandemic