This is going to be the longest, and hardest one I've done so far! Let's do this!

Begin this 1 week project by starting with the basics - Pseudocode!


1. Enter pub class main, import two scanners, one for string, one for float, doubles, ints

2. Display prompt messages and instructions

3. Scan for a, if more than 90 ask again

4. Automatically set b = 90*

5. If a > 0, then ask for AC automatically, b/c you don’t need input of c

6. If user inputs AC, then set c = 90 - a;

7. Use sin(angle c) but b/c java outputs radians, convert to degrees by multiplying my pi /180 to find AB;

8. Use the Pythagorean theorem to find BC, AC^2-AB^2.

9. Usually this outputs messy num, just multiply by 100 then divide by 100 to round.

10.Paste all info at end

11. If user doesn’t have AC, instead ask for AB.

12. If user inputs AB, then use same function as last loop, but instead cosine.

13. Paste all info

14. If user doesn’t have AB, then ask for BC

15. User must input BC, or direct to else loop stating the inputs were not sufficient

16. After user inputs BC, use cosine function and convert rad to deg inside cos function

17. Round all num to nearest hundredth and paste

 18. Now move to if user doesn’t enter a, so else if loop

19. Ask for c, and if c > 0, use similar function as last loop only using (90 - theta) 

//Will not show the process, otherwise this pseudocode will be over 50 steps

20. Now, if c is not entered, ask for AC

21. If AC entered, Prompt user to give AB, if given, then use tan function and sin inverse

22. If AB not given, then ask for BC, use similar function as before, but not same

23. If user doesn’t have AC, prompt for AB and BC, and use tan and cos inverse.

24. Create else statement that shows that if user doesn’t have these 2 inputs, then it is invalid

25. Ask to run again with scanner, if no, exit loop (while definition) if yes repeat while loop.



WOO! I did it! Now onto the ACTUAL coding piece!