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

  Design implement application displays button-label on screen

Design an implement an application that displays a button and a label on a screen. Every time the button is pushed, the label will display a random number.

  Program to prompt a user for hourly pay rate

Create program called "calculatePay" which will prompt user for their hourly pay rate.

  Pseudocode for linear search by using clrs3e style

Write pseudocode for linear search by using CLRS3e style used in, which scans through the sequence, looking for v.

  Specific changes made for different countries-sites directed

Why were these specific changes made for different countries at whom the sites were directed? Is there anything else you would consider changing.

  Calculating hit ratio for program having loops

Calculate hit ratio for program that loops 10 times from locations 0 - 64.

  Machine language used by sim virtual computer simulator

Write a program in machine language used by the SIM virtual computer simulator package to calculate the sum of the four numbers stored in memory addresses A1, A2, A3 and A4.

  Create class templates for administrative employess

Create classes or class templates for the following: Administrative Employess are paid a salary, but they also receive a bonus at regular intervals during the year.

  Advantages of turning the atm switches into lsr

Under these conditions, what are the advantages, if any, of turning the ATMswitches into LSRs, as opposed to using an overlay network?

  Program to prompts user for integer and print prime number

Give a program which will compile in VS 2010. Write a program to prompts user for integer and then prints out all prime numbers up to that integer.

  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.

  Reducing the average memory access time

Suppose that increasing the line size to 128 bytes increases the H to 0.97. Does this reduce the average memory access time?

  Wysiwyg editors can be used to learn html

What about fact that WYSIWYG editors can be utilized to learn HTML? As you can usually jump back and forth from their own image.

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