Parallel implementations-create a text-based program

Assignment Help JAVA Programming
Reference no: EM131636390

Assignment - Parallel Implementations

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 or Perl (you may choose either of these).

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.

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.

Program Specification

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.

Attachment:- parallel implementations.rar

Reference no: EM131636390

Questions Cloud

What are the four tiers of the web architecture : What are the four tiers of the web architecture? List programs for each of the four web tiers that our ubuntu10 VM has installed
How many students are not eligible to enroll : From the 83 students who want to enroll in CS 320, 32 have completed CS 120, 27 have completed CS 180, and 35 have completed CS 215.
Police ethics-legal proselytism and the social order : "Police Ethics, Legal Proselytism, and the Social Order: Paving the Path to Misconduct"
Discuss to what extent are cultural beliefs : To what extent are cultural beliefs, values and traditions impacting health education efforts? and what may enhance education efforts
Parallel implementations-create a text-based program : ITECH5403 Comparative Programming Languages - brief discussion document based on these programming features - The room number must be of a room that exists
Department has responsibility for all maintenance functions : How does lean maintenance differ from the traditional approach under which a maintenance department has the responsibility for all maintenance functions?
How many students own a bike and nothing else : A survey of 150 college students reveals that 83 own automobiles, 97 own bikes, 28 own motorcycles, 53 own a car and a bike, 14 own a car and a motorcycle.
Discuss key health literacy issues : Key health literacy issues for this person and the population group they belong
How many customers have money market savings accounts : Among a bank's 214 customers with checking or savings accounts, 189 have checking accounts, 73 have regular savings accounts, 114 have money market savings.

Reviews

len1636390

9/11/2017 2:25:44 AM

Assignment 2 – Parallel Implementations Student Name: Student ID: Requirement Weight Mark Implementation 1: Java - Functionality, - Adherence to the specification, - Robustness / input handling. 10 Implementation 2: Python - Functionality, - Adherence to the specification, - Robustness / input handling. 10 Implementation 3: Perl or Lisp - Functionality, - Adherence to the specification, - Robustness / input handling. 10 Documentation and discussion of the comparative ease of implementation (design / implement / debug) in each programming language, including how robustness issues were addressed. 10 Spelling and grammar 5 Assignment mark total / 45 Contribution to unit mark (out of 20%) %

len1636390

9/11/2017 2:22:00 AM

:parallel implementations of Java, Perl and Python programming languages please find attached documentations for more about assignment requirements and referencing should be In APA Style. 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.

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd