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.
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
Write a program that simulates the movement of an elevator. Create class called button that abstracts a push button located in the elevator. Use an numerated type to represent its state either pressed or not pressed. Write functions to change the state,to retrieve the state. If button is pressed that is already in the pressed state, then display error message. Write a class called elevator that contains the data members: An array of button objects, An integer representing which floor the elevator is currently on, A constant integer representing the top floor for the elevator. Its value comes from the one formal argument in the elevator constructor function. Assume that the button floor is always number 1.Write a member function for the elevator class that allows the user to press any number of valid buttons. Assume that button number means that it is time to close the elevator doors. When this happens, the elevator must move to a floor that has a corresponding button pressed.
Create a two-dimensional array of type double to contain the three different SD Marks (JD521, PRG521, and IP521) for six different students. A single array of type String must be used to store the student names (Maxwell, Carl, Gerhard, Paul, James, and Cena).
Allow a user to enter in a number, ranging from 1 to 6, which will represent the student position in the table MCSD max and present the marks for each respecting module. The program can only stop when the user enter a number greater than 6.
Printout the student name including the JD521, PRG521, and IP521 max, the total of marks and the average of all marks. Use a condition statement to decide that the student has passed or not (Pass rate is 70).
Student name JD521 PRG521 IPG521
Maxwell 80 65 70
Carl 95 70 65
Gerhard 87 80 73
Paul 65 45 60
James 45 87 65
I used Netbeans to do my project
Student can Update, Add, Remove a issue
The added issue need to notify admin to send a reply ,notification either can be shown in database(mysql) with student name and nic , or send a notification to email but if send email is not good because student can modify update anytime so,i think its easy to use db because admin can look for messagers with name ,nic message. can anyone code for this requirement.
Thank you