Get 30% Off + $20 Signup Bonus ! Limited Time, Hurry !
Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!
Students Who Viewed This Also Studied
ITECH5403 Comparative Programming Languages
Question:
Assignment Overview
You are tasked with creating a text-based program for storing data on Hotel Room Bookings – however, as this is a comparative languages course, you will be creating the same application in the following three programming languages:
• Java,
• Python, and
• Lisp
As you implement the application in each language you should keep notes on:
– The features of the languages used,
– Which features you found useful, and
– Any issues or complications which arose due to the complexity or lack of any language features.
Assessment Specification
A brief discussion document based on these programming features for each individual language accompanying each implementation is required. Finally, a comparative overview of the languages highlighting how they were suitable or not suitable for the creating this type of application is also required.
It is recommended that the first version of the application you write is in the programming language which is most familiar to you. This will help you to have a working ‘template’ for storing room bookings which you can then translate into the other programming languages.
When the program first launches, there is a menu which allows the user to select one of the following five options:
1.) Add a guest
2.) Add a room
3.) Add a booking
4.) View bookings
5.) Quit.
The functionality of these options is as follows:
1.) When users add a guest they provide a name which is stored in some manner of array or list. Guests are assigned a unique ID value where the first guest added is assigned the ID value 1, the second guest added is assigned the ID value 2 and so on.
2.) When users add a room they provide a room number and a room capacity (i.e. how many people can stay in the room at any one time) which is stored in some manner of array or list. Rooms have a property which indicates if they are booked or not for any given date – please see the Room Booking Dates section below for some guidance on the easiest way to implement this.
3.) When users add a booking they provide a guest ID, room number, the number of guests staying and finally a check-in date and check-out date. To successfully create a room booking:
• The guest ID must be a guest which is registered on the system,
• The room number must be of a room that exists,
• The room must be able to accommodate the number of people in the booking (i.e. if the room capacity is for 2 people and the booking has 4 people staying then the booking must be refused), and finally
• The room must be available on the dates requested.
4.) When users views bookings they have the option to:
a. View guest bookings, or
b. View room bookings. If the user opts to show guest bookings then they are prompted to enter the guest ID
– and then any bookings made by that guest are displayed including:
– The guest’s name,
– Which room number they booked & number of guests staying, and
– The check-in and check-out dates. If the user opts to show room bookings then they are prompted to enter a room number
– and then any bookings for that room within the current year are displayed,
Including:
– The guest’s name,
– The number of guests staying, and
– The check-in and check-out dates.
5.) When a user chooses to Quit the program terminates with a goodbye message. Each implementation of your project (in each of the three languages you choose) should aim to closely match the setup and structure of the program as shown in the example output on the following pages.
You may wish create separate Guest, Room and potentially Booking classes as part of your implementations, but you do not have to. You may also wish to add code to pre-create a number of guests, rooms and bookings on each run of your code to avoid the need to type in these details over and over when testing your program. If you do so, please comment out these pre-defined entries before submitting your assignment.
Room Booking Dates
Dates can be a complex subject to do correctly in programming because we often want to calculate how many days are between dates, and there are issues like date formats (dd/mm/yy? mm/dd/yyyy?) to consider as well as leap years where February has 29 days instead of the usual 28 and so on. Some programming languages come with built-in classes to work with dates – and you may use them if you wish. In fact, you are encouraged to use them as they are precisely what you would use when working in the real world, so experience in them now will increase your programming knowledge!
However, to keep things simple, our room booking system will only allow bookings within the current year, and the easiest way to do that is to store dates as the number of the day between 1 and 365. So, day 18 would be the 18th of January (which has 31 days), day 32 would be the 1st of February, and so on. As such, one way to keep track of whether a room is booked or not for a current day would be for each room to have an array of 365 boolean values which are all set to false (i.e. room is not booked for that particular day) when the room is first created.
Then, because users don’t like entering dates as values between 1 and 365, we could have four utility methods:
– int dateToDayNumber(int month, int day),
– int dayNumberToMonth(int dayNumber),
– int dayNumberToDayOfMonth(int dayNumber), and
– bool setBooked(int startDayNumber, int endDayNumber).
Example code for the first tree of these methods, written in a Java-like syntax, is provided on the following page:
– you should write the setBooked method yourself. The above setBooked method signature assumes you are running the method on a Room object
– if you are not, then you will also have to pass in the room number so you know which room’s booked array to modify!
The setBooked method should check if the room is booked for each day between the start and end dates (inclusive) to ensure the room is available. If the room is not available on a day the method returns false, but if the room is available between the start and end dates then it should be set to booked for each day requested and the method should return true to indicate success. Bookings are not required to have booking ID values assigned to them, but you may add them if you wish as they may be useful to later functionality.
ITECH5403 Comparative Programming Languages
Answer in Detail
Solved by qualified expert
Get Access to This Answer
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.
Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.
Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.
Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.
33 More Pages to Come in This Document. Get access to the complete answer.
If there is any brand in the world that strongly believes in on-time delivery of assignment help services then it is our company. MyAssignmenthelp.com comprises of highly qualified writers who can complete any academic assignment help material prior to the deadline. Students from various countries like US, UK and Australia seek online assignment help from us due to our punctuality. Our 3000+ team of expert assignment writers ensure timely delivery of assignment help material, without compromising on content quality. Our positive brand image encourages students to avail a number of our services. Custom essay help, homework help or dissertation writing services are to name a few. You can stay connected with us through 24×7 online chat support facility.
More ITECH5403 ITECH5403 Comparative Programming Languages: Questions & Answers
COSC380 Machine Learning
Question 1:Given the exponential probability density function normalized over the half-interval[0,∞):P(x|λ) =1λe−x/λ,find the value ofλthat maximizes the likelihood function forNi.i.d. data points{x1,…,xN}. Simplify your expression and show all working, givi …
View Answer
Management
Assignment on GrameenPhone introduce into new market (Nepal) Assignment will be included list given below: Product strategy Segmentation and positioning strategy Pricing strategy Distribution strategy Promotions strategy Problem identification & solutions, future management control and measureme …
View Answer
U30819 Software Engineering Theory And Practice
Tasks:
Part 1 Details:Your group must first choose a project title and prepare a proposal to specify the project aim and objectives. An important part of the proposal is to ensure feasibility of the project given the specified project timescales therefore some research into the chosen project top …
View Answer
Comp1410 Introduction to Algorithms and Programming II
Thebinomial coefficient(nm)(pronounced “nchoosem”) counts the number of ways ofchoosing an (unordered) subset ofkelements from a set ofnelements. These numbers maybe defined for integersnandmwith 0≤m≤nby the relationships(n0)=(nn)=1and(nm)=(n−1m)+(n−1m−1)for 0
View Answer
Content Removal Request
If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.
Choose Our Best Expert to Help You
Haidil Jiang
PhD in Law with Specialization in Civil Law and Aviation Law
1047 – Completed Orders
Hire Me
Liam Horan
Pursuing PhD in Mathematics with specialization in Probability and Statistics
470 – Completed Orders
Hire Me
Davian Downs
I have acquired my academic degrees from the University of Cambridge.
350 – Completed Orders
Hire Me
Still in Two Minds? The Proof is in Numbers!
38983 Genuine Reviews With a Rating of 4.9/5.
Assignment
Assignment: 1 Page, Deadline:
2 days
Thanks I got good grade which is good enough for me to pass the course Thanks again
User ID: 7***41 Canada
Psychology
Assignment: 9 Pages, Deadline:
9 days
great assignment and thanks to the team as they have done what i have asked them thanks again
User ID: 2***88 Fairfield, Australia
Assignment
Essay: 2.8 Pages, Deadline:
1 day
Soo, good. relly satisfied. thank you so much. I received it earlier than my due date time, and the writer did a really great job.
User ID: 6***39 Fairfield, United States
Economics
Home Work: 2 Pages, Deadline:
1 day
Wonderful guys.. I got a A+ Thanks for going the extra mile to ensure there were no plagirarism.
User ID: 8***17 Kingston, Jamaica
Assignment
Assignment: 2 Pages, Deadline:
3 days
It’s good article, and I hope another time focus about the grammar. But finally it is great article
User ID: 1***67 Westlake, United States
Biology
Programming: 2.4 Pages, Deadline:
4 days
Good service; assignment was competed as per requirements and within the due date/time. Would use again. Prompt feedback response etc.
User ID: 2***50 Kitchener, Canada
Project Management
Assignment: 36 Pages, Deadline:
3 days
the work done by expert on Consultancy project was very good I have perused 60 marks in overall consultancy project.
User ID: 1***25 Leicester, Great Britain
Supply Chain
Home Work: 1 Page, Deadline:
13 days
Live support chat is always available . I received all assignments on given time .According to my previous corsework was given a score 80 out of 100. …
User ID: 8***97 Erbil, Albania
Criminal Law
Home Work: 8 Pages, Deadline:
5 days
first of all i would to say you id a great job by trying to make it look like its easy
User ID: 6***92 Brisbane, Australia
Management
Essay: 4 Pages, Deadline:
4 days
Great write up. Lecturer commented that it is good and great analysis has been carried out.
User ID: 8***83 Brisbane, Malaysia
Assignment
Essay: 8 Pages, Deadline:
4 days
Many mistakes in this essay. I can email you copy in which my tutor give to much bad comments and highlights the mistakes
User ID: 7***60 Sydney, Australia
Management
Essay: 1.2 Pages, Deadline:
1 day
The essay was well-written and on-time delivered. Pretty impressed with professionalism
User ID: 8***78 Sydney, Singapore
Assignment
Essay: 2 Pages, Deadline:
2 days
I’m pleased with the way and manner how my assignment was answered, I am very satisfied with it and thanks for doing a great job.
User ID: 7***58 Sydney, Australia
Finance
Course Work: 4.8 Pages, Deadline:
13 days
this assignment was very well done. scored a solid 85 which is ok. Would recommend to anyone.
User ID: 5***64 Sydney, Saint LUCIA
Management
Assignment: 12 Pages, Deadline:
17 days
More attention to the details of the assignment is required. There was an attachment in detail to this effect.
User ID: 8***09 Accra, Ghana
Statistics
Programming: 3 Pages, Deadline:
4 days
I just wanted to thank the expert for this assignment. It was a great job and what I really asked for. All requirements are fulfilled. Thumbs up
User ID: 8***68 Accra, Canada
Statistics
Assignment: 1 Page, Deadline:
6 days
this was great work from the agents. its exactly where i would have ranged. thank you so much and keep up the good work…cls
User ID: 8***78 Accra, United States
Assignment
Home Work: 10.8 Pages, Deadline:
3 days
it was really good assignment. writer give me assignment on time and there work was good
User ID: 8***11 Accra, Canada
Finance
Home Work: 1 Page, Deadline:
1 day
Thanks a lot for the help as usual for the wonderful help, appreciate it, thanks.
User ID: 5***22 Jurong west, Singapore
Management
Programming: 15 Pages, Deadline:
7 days
Moving forward I only want this writer Great paper, happy what what was written. got good marks highly recommend . thank you
User ID: 1***73 Jurong west, United States
Assignment
Assignment: 1 Page, Deadline:
2 days
Thanks I got good grade which is good enough for me to pass the course Thanks again
User ID: 7***41 Canada
Psychology
Assignment: 9 Pages, Deadline:
9 days
great assignment and thanks to the team as they have done what i have asked them thanks again
User ID: 2***88 Fairfield, Australia
Assignment
Essay: 2.8 Pages, Deadline:
1 day
Soo, good. relly satisfied. thank you so much. I received it earlier than my due date time, and the writer did a really great job.
User ID: 6***39 Fairfield, United States
Economics
Home Work: 2 Pages, Deadline:
1 day
Wonderful guys.. I got a A+ Thanks for going the extra mile to ensure there were no plagirarism.
User ID: 8***17 Kingston, Jamaica
Assignment
Assignment: 2 Pages, Deadline:
3 days
It’s good article, and I hope another time focus about the grammar. But finally it is great article
User ID: 1***67 Westlake, United States
Biology
Programming: 2.4 Pages, Deadline:
4 days
Good service; assignment was competed as per requirements and within the due date/time. Would use again. Prompt feedback response etc.
User ID: 2***50 Kitchener, Canada
Project Management
Assignment: 36 Pages, Deadline:
3 days
the work done by expert on Consultancy project was very good I have perused 60 marks in overall consultancy project.
User ID: 1***25 Leicester, Great Britain
Supply Chain
Home Work: 1 Page, Deadline:
13 days
Live support chat is always available . I received all assignments on given time .According to my previous corsework was given a score 80 out of 100. …
User ID: 8***97 Erbil, Albania
Criminal Law
Home Work: 8 Pages, Deadline:
5 days
first of all i would to say you id a great job by trying to make it look like its easy
User ID: 6***92 Brisbane, Australia
Management
Essay: 4 Pages, Deadline:
4 days
Great write up. Lecturer commented that it is good and great analysis has been carried out.
User ID: 8***83 Brisbane, Malaysia
Assignment
Essay: 8 Pages, Deadline:
4 days
Many mistakes in this essay. I can email you copy in which my tutor give to much bad comments and highlights the mistakes
User ID: 7***60 Sydney, Australia
Management
Essay: 1.2 Pages, Deadline:
1 day
The essay was well-written and on-time delivered. Pretty impressed with professionalism
User ID: 8***78 Sydney, Singapore
Assignment
Essay: 2 Pages, Deadline:
2 days
I’m pleased with the way and manner how my assignment was answered, I am very satisfied with it and thanks for doing a great job.
User ID: 7***58 Sydney, Australia
Finance
Course Work: 4.8 Pages, Deadline:
13 days
this assignment was very well done. scored a solid 85 which is ok. Would recommend to anyone.
User ID: 5***64 Sydney, Saint LUCIA
Management
Assignment: 12 Pages, Deadline:
17 days
More attention to the details of the assignment is required. There was an attachment in detail to this effect.
User ID: 8***09 Accra, Ghana
Statistics
Programming: 3 Pages, Deadline:
4 days
I just wanted to thank the expert for this assignment. It was a great job and what I really asked for. All requirements are fulfilled. Thumbs up
User ID: 8***68 Accra, Canada
Statistics
Assignment: 1 Page, Deadline:
6 days
this was great work from the agents. its exactly where i would have ranged. thank you so much and keep up the good work…cls
User ID: 8***78 Accra, United States
Assignment
Home Work: 10.8 Pages, Deadline:
3 days
it was really good assignment. writer give me assignment on time and there work was good
User ID: 8***11 Accra, Canada
Finance
Home Work: 1 Page, Deadline:
1 day
Thanks a lot for the help as usual for the wonderful help, appreciate it, thanks.
User ID: 5***22 Jurong west, Singapore
Management
Programming: 15 Pages, Deadline:
7 days
Moving forward I only want this writer Great paper, happy what what was written. got good marks highly recommend . thank you
User ID: 1***73 Jurong west, United States
Have any Query?
The post ITECH5403 Comparative Programming Languages:Text Based Program appeared first on My Blog.