Develop logic for a program that accepts number of passenger

Assignment Help Computer Engineering
Reference no: EM131851815

Problem

The Mid America Bus Company charges fares to passengers based on the number of travel zones they cross. Additionally, discounts are provided for multiple passengers traveling together. Ticket fares are shown in the following table:

 

Zones crossed

Passengers

0

1

2

3

1

7.50

10.00

12.00

12.75

2

14.00

18.50

22.00

23.00

3

20.00

21.00

32.00

33.00

4

25.00

27.50

36.00

37.00

Develop the logic for a program that accepts the number of passengers and zones crossed as input. The output is the ticket charge.

 

Reference no: EM131851815

Questions Cloud

What is the probability that the coin selected from urn : One coin is selected at random from each urn. If exactly one of them is a dime, what is the probability that the coin selected from urn 1 is the dime?
Discuss about the development of a mobile application : Prepare two project outlines using Microsoft Project. Each outline shall consist of a task list and a Gantt chart showing task durations.
What is the probability of obtaining a heads : If we perform this experiment successively, what is the probability of obtaining a heads on the coin before a I or 2 on the die?
What is the probability that it is black : If a second ball is drawn at random from this urn, what is the probability that it is black?
Develop logic for a program that accepts number of passenger : Develop the logic for a program that accepts the number of passengers and zones crossed as input. The output is the ticket charge.
What is the probability that a ball drawn randomly : What is the probability that a ball drawn randomly from the third urn is blue?
Find the probability that the child is found : Suppose that an officer who is looking in the correct wing (east or west) finds the child, independently of the other officers, with probability 0.4.
Are these three events independent : Are these three events independent? Are they condi-tionally independent given that Kevin is prepared?
What is the probability that he has at least one : Adam announces that he has the king of diamonds, what is the probability that he has at least one more king? Compare parts (a) and (b) and

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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