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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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