Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Homework 1 : You want to create a program to calculate area of any triangle. Write a C + + program to ask the user
Homework :
You want to create a program to calculate area of any triangle.
Write a C program to ask the user to enter the base and height of a triangle.
A Write the Pseudocode Algorithm for this program in the space below.
B Draw a flowchart for this program in the space below.
You may insert Flowchart Shapes in MS Words here, lime sample below.
CWrite a C program. use online tool and just copy the Share URL here.
Homework :
Exercise #: Redo your homework to complete the following:
a Make sure cin is used for input.
b Change to file input inputtxt and file output outputtxt
Exercise #: Write a program to do:
a Prompts the user to input three test grades. Each grade is an integer number.
b Prints the three grades one per line in reverse order of input and labeled as
Test Test and Test
c Finds the sum of the three tests and their average.
d Prints the sum and average of the three tests.
Sample inputoutput: The average is supposed to be actually so why did we get How to fix it to get an accurate average result?
Enter three grades:
The grades that you entered are:
Test:
Test:
Test:
The sum of the grades is:
The average grade is:
Homework #: Redo the above Exercise to read the test info a from a file
testtxt Then output the results b to a file gradetxt
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started