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

  Program to use next character to create and return operator

Convert the string of digits into an integer. Otherwise, use the next character to create and return an operator.

  Write program to prints the question

Write a program that prints the question"do you want to continue?" and reads a user input. if the user input is"y", "yes", "ok", "sure", or "why not?".

  Identify entities of web site used for ordering a product

Identify a web site used for ordering a product or service and then identify the various entities. As an example when you go to Amazon.com and review products.

  Explain about lexical analyzer

Explain about Lexical Analyzer

  Design program to accepts account number

Design a program that accepts an account number, the account owner's first and last names, and a balance. Print the projected running total balance for each year for the next 20 years.

  Write program using getline command

How would you write a program using the getline command, prompting the user to enter their first and then their last name. Also, using a float variable to enter their weight in lbs and height in inches.

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Comparing running time of two algorithm

Which algorithm would you prefer on the basis of running time, suppose all other factors equal?

  Design logic for application to allow user to enter item

Design the logic for an application that allows a user to enter an ordered item continuously until a sentinel value is entered. After each item, display its price or the message.

  Program to display weekly payroll report

Write down a program to display a weekly payroll report.

  Program to create three identical list

Write a program to create three identical list, list1, list2, and list3, of 5000 elements. The program then sorts list1using quick sort, list 2 using insertion sort.

  Create an xml document that marks up nutrition facts

Create an XML document that marks up the nutrition facts for a package of Grandma White's cookies. A package of cookies has a serving size of 1 package.

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