1. Write a program to compute and display the perimeter (P) and the area (A) of an ellipse. The program will ask the integer values of major axis length (a) and minor axis length (b) as the inputs. Give the answers in 2 decimal numbers. a Area A = nab a2 + b2 Perimeter P = 2n 2 Which; a-> Major axis length, b-> Minor axis length, T = 3.14159

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 14PE
icon
Related questions
Question
Please I need the answer as soon as possible
1. Write a program to compute and display the perimeter (P) and the area (A) of an ellipse. The program
will ask the integer values of major axis length (a) and minor axis length (b) as the inputs. Give the
answers in 2 decimal numbers.
a
Area A = nab
a2 + b2
Perimeter P = 2n
Which;
a -> Major axis length,
b-> Minor axis length,
T = 3.14159
Transcribed Image Text:1. Write a program to compute and display the perimeter (P) and the area (A) of an ellipse. The program will ask the integer values of major axis length (a) and minor axis length (b) as the inputs. Give the answers in 2 decimal numbers. a Area A = nab a2 + b2 Perimeter P = 2n Which; a -> Major axis length, b-> Minor axis length, T = 3.14159
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Constants and Variables
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning