Discuss how to system and application programs differ from each other. Site an example that supports your explanation.
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.
Create a window (program) which will run as a standalone application. Your program must contain the following components:
A label
A button
A check box
A text field with a vertical scroll bar
in java language Design a wardrobe management system. The system should have the following classes: Dress: having information about dress code, color, material and brand of dress Dress collection: having two different collections (arrays) each for formal and casual dresses Wardrobe class having main() The system must support the addition and removal of different types (formal and casual) of dresses. Write code in java and submit working code files. Follow principles of abstraction and encapsulation.I used constructor for my form2 because in form 2 there no student name so i used constructor with parameters string name. i need to get the name print using clicking a button ,because that name is can used to class so can anyone send me the code to declare and to use any where in the method or in buttons
Create a program that reads the users name and year of birth from input(keyboard), then print out their name and age in decades(find out the meaning). Sample run 1: Sample run 2: Enter your name: Hausiku Enter your name: Johanna Enter your year of birth:1999 Enter your year of birth:2005 Output: Hello Hausiku, you have lived for 2 Output: Hello Johanna, you have lived for 1 decade(s) decade(s)
Create a program that when run with two numbers as CMD arguments, it prints out the difference and product separated by space[Hint: CMD arguments need to be converted to integers]: Sample run 1: Sample run 2: java lab02_task02 12 3 java lab02_task02 2 5 Output: 9 36 Output: -3 1