Answer to Question #213359 in HTML/JavaScript Web Application for faszna

Question #213359

what do you wish to calculate:

area perimeter

enter values ______ submit<----button


the page allows the user calculate area or perimeter of a parallelogram. First user will select an option, then enters necessary parameters separated by comma. write a JavaScript function called shapeFormulas(0 to calculate and display area or perimeter in an alert.

the function should display an error if user does not follow the required input format.

Area : base x height

perimeter : 2 x (side1+side2)


example one

user select area

input:5,10

output: the area is : 50


example two

user select perimeter

input:5,10

output:the perimeter is:30


example three

user select Area

input: 2 3

output: Invalid parameters


1
Expert's answer
2021-07-05T18:07:44-0400
Dear faszna, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS