Learning Goal: I’m working on a programming discussion question and need support to help me learn.
This TMA covers the first 7 sessions of M251. It is required to do the following:
o Answer of the given questions
o A copy (not a snapshot) of the code of each class
o A complete snapshot of the output
o If part of the code does not work, try to explain your idea
o The header of each page should contain your name and your student ID
o The Word file you created
o A compressed file contains the folder of your Java project
Plagiarism Warning:
As per AOU rules and regulations, all students are required to submit their own TMA work and
avoid plagiarism. The AOU has implemented sophisticated techniques for plagiarism detection.
You must provide all references in case you use and quote another person’s work in your TMA.
You will be penalized for any act of plagiarism as per the AOU’s rules and regulations.
Declaration of No Plagiarism by Student (to be signed and submitted by student with TMA
work):
I hereby declare that this submitted TMA work is a result of my own efforts and I have not
plagiarized any other person’s work. I have provided all references of information that I have
used and quoted in my TMA work.
Name of Student:
Signature:
Date:
2
Overview:
A car rental company wants to make a simple application to keep track of cars and customers.
In this TMA, it is required to help the head of the company implement the required application.
Requirements:
After a quick meeting with the head of the company, you got the following information:
collection.
attributes from your choice).
from your choice).
classes for Date.
Moreover, you have been informed that the following operations happen frequently:
same car twice in the same day.
For cars, they should be sorted in ascending order (according to the plateNo)
Analysis:
Q1: What is the relation between Car and Transaction? Explain your answer.
Q2: Draw a simple class diagram showing only relationships between all classes.
Implementation:
After analysing the given requirements, implement the required application:
3
Hints:
and any other necessary method
should be ignored and the application should display an error message (e.g. renting the
same car twice in the same day, etc.)
o It has a collection to store the cars and another one to store the rent transactions
o It has static methods, one for each operation happens frequently
o For each adding or renting operation, a message should be displayed to the user to
explain the status of the operation (i.e. if it was successful or not)
Testing:
After implementing the required classes, design and implement a testing class to test them as
follows:
automatically inside the folder contains your Java project
Marks distribution:
Important notes on penalties:
related to the Word file).
achieved mark.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more
Recent Comments