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 solutions to the indexing problem can you identify

Early file-sharing applications such as Napster were restricted in their scalability by the need. What other solutions to the indexing problem can you identify?

  What are the purposes of control flow testing

What are the purposes of Control Flow testing and who needs to conduct Control Flow testing?

  How do you think the tools will work in the future

How do you think these tools will work in the future? How will they impact major societal concerns like education, jobs, or the economy?

  Express the given functions in maxterm list form

Express the following in maxterm list form.

  Design a backup strategy that would provide secure

design a backup strategy that would provide secure storage of all their data, and a recovery plan that would allow

  Determine the new sample size to examine

Sample Size Determination. Jule Phillips is examining the internal control of Cowboy Company and has identified the mathematical verification of sales invoices.

  What protocol information would be in one packet

Will the protocol packet used to transfer the video be identical to the protocol packet used for data transmission? What protocol information would be in one packet and not the other?

  What do you mean by search engine optimization and how is

what is search engine optimization and how is it achieved? your response should be at least 200 words in

  Create a gui application that allows the user to enter

Create a GUI application that allows the user to enter the total sales for the month into a text field.

  Explain a mitigating strategy for the risks

Briefly identify and describe a mitigating strategy for the risks.

  How many local registers are in each register window set

A RISC processor has 152 total registers, with 12 designated as global registers. The 10 register windows each have 6 input registers and 6 output registers. How many local registers are in each register window set?

  Obtain a histogram of the image

Obtain a histogram of the image, and using the fact that the quantized image should be as good an approximation as possible for the original, design 1-, 2-, and 3-bit quantizers for this 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