Java代写 | ITS63304 Object-Oriented Programming Project [RESIT]

Java基础编程关于If / else和循环以及函数和数组的使用

ITS63304 Object-Oriented Programming

Project [RESIT]

Cover Sheet

DUE DATE       :    25 August 2019 @ 11.59pm

WEIGHTAGE    :    60%

SEMESTER       :    March 2019

Problem 1(10 marks)

Topic: Variable, If/else and loop

You are working at ABC Sdn. Bhd as a marketing executive. Your salary consists of a base salary and a sale commission. The base salary is RM3500. The sale commission rate is shown in below.

 

Sales Amount                          Commission Rate

RM0.01–RM5000                     5 percent

RM5000.01–RM10000              8 percent

RM10000.01 and above            10 percent

 

The sale commission is a graduated rate. The rate for the first RM5000 is at 5%, the next RM5000 is at 8%, and the rest is at 10%. If the sales amount is 30000, the commission is RM5000 x 5% + RM5000 x 8% + RM20000 * 10% = RM2650.

 

Your goal is to earn RM45000 sale commission in a year. Write a program that finds the minimum sales you have to generate in order to make RM45000.

 

Problem 2(20 marks)

Topic: Method

Write a program that consists methods to calculate quizzes marks, to calculate assignments marks and to display an output as below example.

You are required to use array to store quizzes and assignment marks. A user need to enter all the following inputs:

  • Name
  • ID No
  • Subject Code
  • Subject Name
  • Total number of quiz
  • Total number of assignment
  • Marks for Mid-Term Test
  • Marks for Final Exam

The program will calculate total marks and grade based on these following formulas:

  • Total mark for quiz = ( total mark of all quizzes / ( total number of quiz * 5 ) ) * 10
  • Total mark for assignment = ( total mark of all assignment / ( total number of assignment * 10 ) ) * 20
  • Total mark = Total mark for quiz + Total mark for assignment + mid-term test + final exam
  • Grade :
Total mark Grade
<50 F
50<=mark <60 C
60<=mark <75 B
>75 A

 

 

Problem 3 (20 marks)

Topic: Array

 

Write a “Multiplication Table” program to display an output as below. User will enters an integer number as a selection number. The program will display a multiplication table based on the user input. The program will terminate when user enters ‘0’ as a selection.

## Welcome to Multiplication Table ##

         <enter 0 to exit>

  Enter selection number: 9

  Multiplication Table for 9

  9   18   27

  36   45   54

  63   72   81

  Enter selection number: 5

  Multiplication Table for 5

  5   10   15

  20   25   30

  35   40   45

  Enter selection number: 4

  Multiplication Table for 4

  4   8   12

  16   20   24

  28   32   36

  Enter selection number: 0

  Exit program..Thank you

-THE END-