Calculate the cost of the total mileage for the trip

Assignment Help Basic Computer Science
Reference no: EM13884448

Task

Your task is to design, implement and test a program to calculate the cost of different types of student trips.

Non-Functional Specification

• The program should provide the user with an appropriate textual interface, providing instruction and help.

• The program should execute until the user decides to terminate it.

• The program should output results in a readable and meaningful format

• The cheapest option should always be suggested Functional specification:

• Calculate the cost of the total mileage for the trip (outward and inward bound)

• Include the hire cost of an appropriate sized vehicle

• Include the travel expenses for the appropriate number of accompanying tutors

• Calculate the total cost of food depending on the type of trip:
o Short day trip requires only lunch
o Long day trip requires lunch and dinner
o An overnight trip requires lunch, dinner and breakfast

• Any child requiring special dietary requirements is identified and additional cost incurred Known data values:

• Cost per mile = 40p

• Mini bus = £40 per day holds 12 children and one adult

• Coach = £60 per day holds 36 children and 3 tutors

• There should be 1 accompanying tutor for every group of 12 children

• Breakfast costs £1.50 per child

• Lunch costs £2.00 per child

• Dinner costs £3.50 per child

• Special dietary requirements are charged at an extra 8% per meal

• Accompanying tutors are charged an extra 20% for each meal (they are not charged extra for special diets)

Test data:

• 32 children on a short day trip 6 have special dietary requirements

• 10 children on an overnight stay 1 has special dietary requirements

Part 1: Pseudo-­-code and first stage formal design -:

• Any assumptions made

• A breakdown of the problem into key sub-­-problems,

• Pseudo-­-code solutions for those sub-­problems

• An initial high-level formal flow chart of how you intend your program to work.

Part 2: Your final working program and design documentation. This should include:

• Your source code (.cpp files only) zipped in a single file and submitted to the separate Moodle box

• A final formal report, submitted to Turnitin, that includes:

• A formal flow chart of your final design indicating any major changes from your initial design and your rational for them.

• A testing table that demonstrates your program development and the results of the given test data.

• Identifies any limitations you have placed on your program, or functionality in which it has not yet been successful.

• Details of any research undertaken and a relevant supporting bibliography

Part 3: Demonstration of your working program with test data.

Reference no: EM13884448

Questions Cloud

Determining the different fission reactions : U-235 undergoes many different fission reactions. For one such reaction, when U-235 is struck with a neutron, Ce-144 and Sr-90 are produced along with some neutrons and electrons.
Role of object oriented programming in modern programming : the role of Object Oriented programming in modern programming solutions
Discuss the role of computer programming in the it industry : discussing the role of computer programming in the IT industry
Release of a radioactive nuclide : Which do you think would be the greater health hazard: the release of a radioactive nuclide of Sr or a radioactive nuclide of Xe into the environment? Assume the amount of radioactivity is the same in each case.
Calculate the cost of the total mileage for the trip : Calculate the cost of the total mileage for the trip and implement and test a program to calculate the cost of different types of student trips.
Layer of dead skin on our bodies : Consider the following information: i. The layer of dead skin on our bodies is sufficient to protect us from most -particle radiation.
Write a java method that adds two fractions together : Write a Java method that adds two fractions together
Efficiency related to working with different number bases : Define the Efficiency related to working with different number bases
What is the large part of being a successful it professional : Using the right tool for the job is a large part of being a successful IT professional.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Virtualization

Virtualization

  Various types of database management systems

A ) Write 2-3 pages on Database Management Systems (DBMS) covering the following: Various types of database management systems Commercial RDBMS in the market today.

  Research a writing guide for forensics organization

Your manager has asked you to research and recommend a writing guide that examiners in your computer forensics organization will use for all official written reports.

  Both the discussion and in the assignment tool

Post your response to the following questions in both the discussion and in the assignment tool. Name your assignment in the following manner: LastName_4A

  Write a select statement that will display student details

Write a select statement that will display student id, student last name and the number of courses a student has been enrolled. You will need to join two table, use a COUNT aggregate and a GROUP BY clause in your SELECT statement.

  Print the contents of each record using the array

Write the pseudo code to Read a data file containing student names, ID number, and gender into an array.

  Why are timestamps used in the kerberos protocol

1. Why are timestamps used in the Kerberos protocol?

  Let the predicate

11. Let the predicate ">" be defined as follows: Let a and b be integers. "a > b" if and only if a = b + k where k is an integer > 0. Using only this definition, prove that ">" is transitive, i.e., if x, y, and z are integers and x > y and y >..

  We will compare the performance of a vector processor

In this problem, we will compare the performance of a vector processor with a hybrid system that contains a scalar processor and a GPU-based coprocessor.

  Draw a circuit using only two-input nand gates

Prove this by showing how you can implement the functions of an inverter, and AND gate, and an OR gate just using NAND gates. That is for each function draw a circuit using only two-input NAND gates that implements the operation.

  Discuss currently used tools and recommended measures to def

Web phishing, pharming and vishing are popular web based scams. Discuss currently used tools and recommended measures to defeat this kind of attacks efficiently? Specifically focus on solutions that can be implemented at the network infrastruc..

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