Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C Program. Intentation and relevant comments should be included. thanks. Q2: (Geometry Triangle Calculations) (34 points) Ask the user for three points (e.g. (eei, yyi),

image text in transcribed

image text in transcribed

C Program. Intentation and relevant comments should be included. thanks.

Q2: (Geometry Triangle Calculations) (34 points) Ask the user for three points (e.g. (eei, yyi), (ee2, yy2), (ee3, yy3)). Write two functions "area()" and "perimeter()" that calculate the area and perimeter when the three points are given. All numbers and return values should be of type double. Use the following formulas to calculate area and perimeter: Design your own appropriate prompts and output layout. You can use the following calculator (External Link) https://www.triangle-calculator.com/what vc to validate that your formulas are working correctly Q3: (Perfect Numbers) (34 points10 Bonus) An integer number is said to be a perfect number if its factors, including 1 (but not the number itself), sum to the number. For example, 6 is a perfect number because 6 = 1 2 + 3write a function perfect) that determines whether parameter number is a perfect number. Use this function in a program that determines and prints all the perfect numbers between 1 and 10,000. Bonus (10 points). Print the factors of each perfect number to confirm that the number is indeed perfect

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions