Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a C++ program to read two negative numbers. Display two numbers. Find absolute value of each number using abs (input) function of math.h

image text in transcribed
1. Write a C++ program to read two negative numbers. Display two numbers. Find absolute value of each number using abs (input) function of math.h library. 3. Write a C++ program to read a diameter of a circle. Find perimeter and area of the circle. Perimeter Diameter *PI Area R2 * Pl or Area pow(R,2) * PI Radius Diameter/2 5. Write a C++ program to read three sides of a triangle. Display three sides. Use Pythagorean theory to find if the triangle is a right triangle. Display true if it is a right triangle; otherwise display false. Pythagorean theory: a2 b2 c2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions