1GFName the angle 4 different ways.1EL

3 answers
Question:

1
G
F
Name the angle 4 different ways.
1
EL

Answers

Answer & Explanation:

This program is written in C++ and it combines the step 1 and step 2 to create a menu driven program

Each line makes use of comments (as explanation)

Also, see attachment for program file

Program Starts Here

//Put Your Name Here; e.g. MrRoyal

//This program calculates the area of circle, triangle and square; depending on the user selection

//The next line include necessary header file

#include<iostream>

using namespace std;

int main()

{

//The next line defines variable pi as a constant with float datatype

const float pi = 3.14159;

// The next two lines declares all variables that'll be needed in the program

string choice;

float length, base, height, radius, area;

// The next four lines gives an instruction to the user on how to make selection

cout<<"Press 1 to calculate area of a square: "<<endl;

cout<<"Press 2 to calculate area of a circle: "<<endl;

cout<<"Press 3 to calculate area of a triangle: "<<endl;

cout<<"Press 4 to quit: "<<endl;

//This  next line prompts user for input

cout<<"Your choice: ";

//This next line gets user input and uses it to determine the next point of execution

cin>>choice;

if(choice == "1")  //If user input is 1, then the choice is area of square

{

 cout<<"Length: ";  //This line prompts user for length of the square

 cin>>length;  // This line gets the length of the square

 area = length * length;  //This line calculates the area

 cout<<"Area: "<<area;  //This line prints the calculated area

}

else if(choice == "2") //If user input is 2, then the choice is area of circle

{

 cout<<"Radius: ";  //This line prompts user for radius

 cin>>radius;  //This line gets radius of the circle

 area = pi * radius * radius;  // This line calculates the area

 cout<<"Area: "<<area;  //This line prints the calculated area

}

else if(choice == "3") //If user input is 2, then the choice is area of triangle

{

 cout<<"Base: "; //This line prompts user for base

 cin>>base;  //This line gets the base

 cout<<"Height: ";  //This line prompts user for height

 cin>>height;  //This line gets the height

 area = 0.5 * base * height;  //This line calculates the area

 cout<<"Area: "<<area;  //This line prints the calculated area

}

else if(choice == "4")  //If user input is 4, then the choice is to quit

{

 //Do nothing and quit

}

else  //Any other input is invalid

{

 cout<<"Invalid Option Selected";

}

return 0;

}

Angle 1
Angle BAC
Angle CAB
Angle A

They are BAC, CAB, ABC, and BCA

Similar Solved Works

3 answers

Which are true of beta radiation?Check all that apply.A. It has a mass of 0.0005 amus.B. It has no charge.c. It doesn't

Which are true of beta radiation? Check all that apply. A. It has a mass of 0.0005 amus. B. It has no charge. c. It doesn't change the mass number of the atom. D. It causes transmutation....
12 answers

Help me please because ion understand ​

Help me please because ion understand ​ [tex]Help me please because ion understand ​[/tex]...
2 answers

On july 8, jones inc. issued an $80,000, 6%, 120-day note payable to miller company. assume that the

On july 8, jones inc. issued an $80,000, 6%, 120-day note payable to miller company. assume that the fiscal year of jones ends july 31. using the 360-day year, what is the amount of interest expense recognized by jones in the current fiscal year?...
4 answers

I'm craving bakugo headcanons please give me some

I'm craving bakugo headcanons please give me some...
4 answers

Why was thomas paine's essay common sense significant to american independence? a. the

Why was thomas paine's essay common sense significant to american independence? a. the ideas in the essay inspired the continental congress to present king george iii with the olive branch petition. b. the essay divided the patriots into those who wanted a break from britain and those who wanted re...
4 answers

I don't understand help please ​

I don't understand help please ​ [tex]I don't understand help please ​[/tex]...
4 answers

Diethyl ether is produced from ethanol according to the following equation:2CH3CH2OH(l) → CH3CH2OCH2CH3(l) + H2O(l)Calculate

Diethyl ether is produced from ethanol according to the following equation: 2CH3CH2OH(l) → CH3CH2OCH2CH3(l) + H2O(l) Calculate the percent yield if 59.0 g of ethanol reacts to produce 18.0 g of ether....
3 answers

The first painter can finish a paint job in two hours. the second painter can finish the same job in 8 hours. how long will it

The first painter can finish a paint job in two hours. the second painter can finish the same job in 8 hours. how long will it take them to finish the job if they are working together?...
4 answers

Carmen begins her next painting on a rectangular canvas that is 82.7 cm long and has an area of 8.137.68 cm2 . will the

Carmen begins her next painting on a rectangular canvas that is 82.7 cm long and has an area of 8.137.68 cm2 . will the painting fit in a frame with an opening that is 82.7 cm long and 95 cm wide. explain...
3 answers

Which of the following breaks and forms bonds? physical change molecular change chemical change nuclear change

Which of the following breaks and forms bonds? physical change molecular change chemical change nuclear change...
4 answers

A sample of 36 was taken from a population, with the mean of the samplebeing 25 and the standard deviation of the samplebeing 3. What is the 95%confidence

A sample of 36 was taken from a population, with the mean of the sample being 25 and the standard deviation of the sample being 3. What is the 95% confidence interval for the mean of the population? A. (24, 26) B. (23.8, 26.2) C. (24.4, 25.6) D. (24.5, 25.5)...
6 answers

There were stories in the lines on his face what do the “lines on his face” symbolize?

There were stories in the lines on his face what do the “lines on his face” symbolize? the speaker’s secrets the father’s secrets shapiro’s secrets the mother’s secrets...
10 answers

So guys listen up This is the sentence: The water lilies have blossomed and spread to a green horizontal

So guys listen up This is the sentence: The water lilies have blossomed and spread to a green horizontal plane that is terra firma to PLODDING blackbirds, and tremulous ceiling to black leeches, crayfish, and carp. So you guys have to WRITE THE DEFINITION IN YOUR OWN WORDS OF HOW THE WORD IS USED IN...
4 answers

The equation that represents this relationship is y=??

The equation that represents this relationship is y=?? [tex]The equation that represents this relationship is y=??[/tex]...
4 answers

25 points triangle jkl is transformed by performing a 90 degree clockwise rotation about the origin and then a reflection

25 points triangle jkl is transformed by performing a 90 degree clockwise rotation about the origin and then a reflection over the y-axis, creating triangle j’’k’’l’’. which transformation will map j’’k’’l’’ back to jkl? a reflection over the y-axis and then a 90 degree cloc...
10 answers

Simplify the expression: x2 + x(x – 5) – x + 7 a. 2x2 – 6x + 7 b. x3 –5x + 7 c. 6x2 – x +

Simplify the expression: x2 + x(x – 5) – x + 7 a. 2x2 – 6x + 7 b. x3 –5x + 7 c. 6x2 – x + 7 d. –5x2 – x + 7...
4 answers

2ce+a3f=bd4 digits 1-9 only used once.

2ce+a3f=bd4 digits 1-9 only used once....
4 answers

A family will drive 603 miles to reach their vacation destination if they drive 376 miles the first day how many miles will they drive

a family will drive 603 miles to reach their vacation destination if they drive 376 miles the first day how many miles will they drive the second day...
3 answers

Answer asap which system of linear inequalities is represented by the graph? a. x - 5y is less than or equal to -5 and y is less

Answer asap which system of linear inequalities is represented by the graph? a. x - 5y is less than or equal to -5 and y is less than or equal -2x + 4 b. x + 5y is greater than or equal to 5 and y is less than or equal to 2x+4 c. x - 5y is less than or equal to -5 and y is less than or equal to -2x...
4 answers

PLEASE HELP Name and define the subatomic particles that are part of an atom. How do they differ from each other? How do these differences

PLEASE HELP Name and define the subatomic particles that are part of an atom. How do they differ from each other? How do these differences contribute to the properties of atoms and molecules?...

-- 0.012186--