Write a code that asks the user for the properties if a triangle. Calculate the area. The area of a triangle is (1/2) *b*h. Please make it simple thank you! Test case 1&2 are example of result.

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 10RA
icon
Related questions
Question
Write a code that asks the user for the properties if a triangle. Calculate the area. The area of a triangle is (1/2) *b*h. Please make it simple thank you! Test case 1&2 are example of result.
Test Case 1
Enter base and height separated by a space \n
5 10 ENTER
Area: 25.0
\n
Test Case 2
Enter base and height separated by a space \n
60 30 ENTER
Area: 900.0 \n
Transcribed Image Text:Test Case 1 Enter base and height separated by a space \n 5 10 ENTER Area: 25.0 \n Test Case 2 Enter base and height separated by a space \n 60 30 ENTER Area: 900.0 \n
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Types of Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning