COIT11222 Programming Fundamentals For Parameterized Constructor
Answer:
In car Hire class we have three private members:
- customerName of type String
- licenseNumber of type String
- days_hired of type int
Then, we have a default constructor and a parameterized constructor. The parameterized con
structor initilaizes the instance variables of the class to the passed value.
We also have accessors and matadors of these private instance variables, so that these can be accessed from the other classes.
Then at last, we have method calculateHireRental. This method calculates the cost of the car hire. It takes into accounts the number of days; the car was hired and then makes the necessary calculations. It returns the rental for this trip.
Please note that all the variables in this class are private whereas all the methods are public and accessible to the outer classes.
Time taken to create the whole program:
It took me almost 12-14 hours to complete this assignment. I started on Sunday morning and the technical part was finished by evening. Then it took other two hours to finish the report part.
Any problems encountered:
Yes, i encountered a major problem while working on this assignment. All the work was completed, but the result in the text area was not printing properly. I was stuck here for around 1.5 hours. I tried various ways, so that the result gets printed in the given formatted order in an uniform way. I also went through various online portals for getting the solution to my problem. Then after googling around for some time, i found the issue. The issue was that text area is not monospaced. So i had to manually set the font of the text area to a monospaced one. After that it started working fine.
when the user clicks on Enter button without entering any input in the Customer Name text Field. Customer name is a required field and it can't be left empty. The user will have to enter some data in it to add a new Customer otherwise he will get this error
when the user clicks on Enter button without entering any input in the Customer License Number text Field. License Number is a required field and it can't be left empty. The user will have to enter some data in it to add a new Customer otherwise he will get this error.
The error when the user clicks on Enter button without entering any input in the Hired Days text Field. Hired days are a required field and it can't be left empty. The user will have to enter some data in it to add a new Customer otherwise he will get this error.
The application screen with all the valid data entered. The user has entered data in all the fields. So all the validations will pass successfully and the data will be saved to the array.
when the customer clicks on Enter button in figure 5. Now the data is successfully added to the array and it is being displayed in the text Area as output. The focus is again returned to the Customer Name text field, so that it is easy for the user to enter a new record.
This dialog is displayed to the user when the user clicks on the Exit button. This thank you message is displayed to the user and the application terminates.
Buy COIT11222 Programming Fundamentals For Parameterized Constructor Answers Online
Talk to our expert to get the help with COIT11222 Programming Fundamentals For Parameterized Constructor Answers to complete your assessment on time and boost your grades now
The main aim/motive of the management assignment help services is to get connect with a greater number of students, and effectively help, and support them in getting completing their assignments the students also get find this a wonderful opportunity where they could effectively learn more about their topics, as the experts also have the best team members with them in which all the members effectively support each other to get complete their diploma assignments. They complete the assessments of the students in an appropriate manner and deliver them back to the students before the due date of the assignment so that the students could timely submit this, and can score higher marks. The experts of the assignment help services at urgenthomework.com are so much skilled, capable, talented, and experienced in their field of programming homework help writing assignments, so, for this, they can effectively write the best economics assignment help services.