Ben rents a trailer to move his furniture to his new house. The basic cost is R250 per day plus a specific amount that must be entered by him per kilometre travelled. He also has to enter the distance travelled in kilometres.
If Ben travels less than 60 kilometres, an additional surcharge of 3% is payable on the amount due for distance. However, if he uses the trailer for more than 350 kilometres, he receives a discount of 9% on the amount due for distance (Pretorius & Erasmus, 2012:65).
Write a program to calculate and display the amount due.
Hint: use object oriented programming concepts to develop your program.
Ben rents a trailer to move his furniture to his new house. The basic cost is R250 per day plus a specific amount that must be entered by him per kilometre travelled. He also has to enter the distance travelled in kilometres.
If Ben travels less than 60 kilometres, an additional surcharge of 3% is payable on the amount due for distance. However, if he uses the trailer for more than 350 kilometres, he receives a discount of 9% on the amount due for distance (Pretorius & Erasmus, 2012:65).
Write a program to calculate and display the amount due.
Hint: use object oriented programming concepts to develop your program
The user must also have the ability to update specific details of the product. For example, the user must first enter the product code and then confirm whether to update the following product details:
•Update the product warranty.
•Update the product price.
•Update the product stock level
Write a program which takes as input a huge array of numbers. This array is
split into n sub-arrays and n threads apply a bubble sort on each of the n sub-
arrays. Lastly, another thread merges the n sorted sub-arrays into one with
the same size as the original array. Of course, the resulting array should be
sorted.
Define a class named Person that contains the data fields for the first name and last name. Include only a non-default constructor that that initializes the data fields and a method that displays all the information about a Person. b) Define another class named Movie that stores a title, year of production and a director information. Director should be a Person member-object (i.e. use the Person class). Include a non-default constructor and a function to display Movie information. c) Write a program that creates two Movie objects, and displays information about the Movie objects. Save the file as Cinema.jav
Use methods and a loop of your choice to develop a program that can display multiples of 10 until 150 on a single line. For example, the output should be like: 10, 20, 30, 40,…….150.