Question: Homework 1 : You want to create a program to calculate area of any triangle. Write a C + + program to ask the user

Homework 1:
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.
C.Write a C++ program. use online tool and just copy the Share URL here.
Homework 2:
Exercise #1: Redo your homework 1 to complete the following:
a) Make sure cin is used for input.
b) Change to file input (input.txt) and file output (output.txt).
Exercise #2: 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
Test1, Test2, and Test3.
c) Finds the sum of the three tests and their average.
d) Prints the sum and average of the three tests.
Sample input/output: (The average is supposed to be actually 74.33, so why did we get 74? How to fix it to get an accurate average result?)
Enter three grades: 697381
The grades that you entered are:
Test3: 81
Test2: 73
Test1: 69
The sum of the grades is: 223
The average grade is: 74
Homework #2: Redo the above Exercise 2 to read the test info (a) from a file
test.txt. Then output the results (b) to a file grade.txt.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!