Assignment help

Need some homework help.
[code]
make sure that you include a comment at the top of your program with your name!

make sure you include the output at the bottom of your program!



Write a program that displays the following output (below)


Your program must do the calculation for the area and perimeter (variables are not necessary).





Use input-output manipulators to line up the numbers (setw)

all numbers should be rounded to 2 decimal places (there should be trailing zeros, i.e. 56.00 or 43.20)





Length-25, 4.2, 5, 7.3

Width-18, 7.49, 14.5, 12.6

Area

Perimeter
Have you attempted it?

Aceix.
Check out the <iostream> and <iomanip> headers, this exercise can be done in less than 15 minutes.

Goodluck!
I ban The person above me for thinking this takes 15 minutes

shit wrong thread
Example

Input: <textfile containing a list just like the one presented below – see sample input file>

(A,B,E) (this means A is the root, B is the left subtree, and E is the right subtree)
(B,C,null) (this means B is the root, C is the left subtree, and there is no right subtree)
(C,null,D)
(E,F,H)
(F,null,G)
(H,I,J)

Output:

Node L-Subtree R-Subtree
A B E
B C null
C null D
E F H
F null G
H I J

Root of the Tree: A

Preorder Traversal: A B C D E F G H I J
In order Traversal: C D B A F G E I H J
Post order Traversal: D C B G F I J H E A

using c++
how to program this??
Topic archived. No new replies allowed.