Develop logic to accept number of passengers-zones as input

Assignment Help Programming Languages
Reference no: EM1357150

The mid american 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: EM1357150

Questions Cloud

Calculate dividend declared amounts : If the firm's preferred stock is NON CUMULATIVE and the 20X8 dividend declared amounts to a total of $20,000, how much will go to PREFERRED stock holders?
Journal entries and schedule : During the past year, a company completed the following transactions related to the acquisition of property and the construction thereon of a new factory:
Describe the roles of the government and the fed reserve : Describe the roles of the government and the Fed Reserve individually in closing a recessionary gap
Show global financial meltdowns : Capitalism at End - With the geopolitics in the news in the last couple years due to the global financial meltdowns
Develop logic to accept number of passengers-zones as input : Develop the logic for a program that accepts the number of passengers and zones crossed as input. the output is the ticket charge.
Administration of jails and prisons : How have the courts affected inmate population and the administration of jails and prisons? Is cynicism common in corrections?
Explain if the central bank prints an additional : Explain If the Central Bank prints an additional $200 and uses this new currency to buy government bonds from the public (open market purchase)
Show servant leadership tools : Do you think managers have a responsibility to use servant leadership tools and elements to get know employees well enough to uncover and utilize talents
Profit by trading the stock : Apex, Inc is a biotechnology company that is about to announce the results of its clinical trials of a potential new cancer drug, If the trials successful, Apex stock will be worth $70 each share.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

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

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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