Write a html files function that computes a taxi fare

Assignment Help Computer Engineering
Reference no: EM132200483

Write a HTML and JavaScript files function that computes a taxi fare. In some cities, taxi fares are calculated based on start and end zones plus a per-minute charge.

In this city, there are three zones (1, 2, and 3) and a graduated scale for time.

Thus, your function should receive three parameters: the starting zone, the ending zone, and the time of the ride.

It should return the total fare for the ride. Use the following table for your calculations:

Start zone

End zone

Base charge

1

1

$5.00

1

2

$7.00

1

3

$8.00

2

1

$7.00

2

2

$5.00

2

3

$9.00

3

1

$8.00

3

2

$9.00

3

3

$5.00

Time is more than

But is not over

Charge

0 minutes

4 minutes

$0.75 per minute

4 minutes

10 minutes

$3.00 plus $0.50 per minute over 4 minutes

10 minutes

20 minutes

$6.00 plus $0.40 per minute over 10 minutes

20 minutes

No limit

$10.00 plus $0.30 per minute over 20 minutes

Reference no: EM132200483

Questions Cloud

A program that allows the user to input a list of words : Write a Java program that allows the user to input a list of words, separated by whitespace.
Creates and returns a new copy of the received array : Write a Java method that Receives an array of integers of any length and Creates and returns a new copy of the received array.
Write a java application that meets the given specifications : Write a Java application that meets the following specifications. Make sure to give the classes and methods the exact names shown in this prompt.
Write an inheritance hierarchy of three-dimensional shapes : Test your classes in a program that asks the user which shape they'd like to create, and what dimensions they'd like to give it.
Write a html files function that computes a taxi fare : Write a HTML and JavaScript files function that computes a taxi fare.
Write down the intermediate words that are constructed : Write down the intermediate words that are constructed after each iteration when the letters in the word "munich" are alphabetically ordered.
Draw a parse tree for the sentence aaababab : Write a grammar for the language consisting of strings built only of the letters a and b. Draw a parse tree for the sentence aaababab.
Write a java application to to ask the user to input : Write a Java application to to ask the user to input an even number between -100 to 100.
Write a program that simulates the selection of ball team : Write a GUI-based program that simulates the selection of ball team. You will retrieve the data from a text file containing 10 lines.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What is the difference between the two methodologies

Discuss what is the difference between the two methodologies, and what are the advantages and disadvantages (or limitation) of each?

  Which is the higher value card

Which is the higher value card? Are they the same suit? How many bits are required to encode above problem. Try to minimize number of bits.

  Explain what is fritzing

Explain what is Fritzing and what are the benefits and possible challenges of modelling (diagramming) an Arduino application using Fritzing

  Plan a program that asks for the student''s name

Your English instructor, realizing you are a programmer, asks you to write down a Grade Book program for his class to help him compute final grades. plan a program that asks for the student's name and four test grades. Display the student's name, ..

  Compare the isochronous to other connections

How does the isochronous connection compare to the asynchronous and synchronous connections? Compare the applications and efficiencies of all three.

  Dscribing the it governance structure and

describing the it governance structure and decision-making processes in the air force.nbspnbspinclude a discussion on

  How program to document the program internally

It will be necessary for you to access Service Request: SR-kf-008, Tax Calculator from the Virtual Organizations portal. Complete Change Request #1. Insert comments in the program to document the program internally. Attach a design flow chart to a..

  What type of security and protection is required

You have recently accepted a position as a network administrator supporting the computer network at Camp David the US Presidential retreat in Thurmont.

  How many possible games of tic-tac-toe are there

Show the whole game tree starting from an empty board down to depth 2 (i.e., one X and one O on the board), taking symmetry into account.

  Discuss the concepts of convolving finite-duration signals

The impulse response of an LTI continuous-time system is such that h(t) = 0 for t = T1 and for t = T2 Show that if x(t) = 0 for t = T3 and for t = T4 then y(t).

  Create an manages a 2d array of ints

Creates an manages a 2d array of ints. It has a constructor that takes a 2d array as a parameter and assigns it to the instance variable.

  Create an algorithm for telling if l and m store the same

Create an algorithm for telling if L and M store the same sequence of elements (but perhaps with different starting points).

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