Assignment 5
5.1
Write a program with a GUI (Graphical User Interface) for converting Fahrenheit to and from Celsius (C = (F-32)/1.8).
5.2
Here is a program with which the user can draw line segments on a panel. Add the following functionality to the program:
- Choose of color: the user can choose a different color for a line segment.
- Clean up: the user can clean up the panel by clicking on a button or select a menu item.
- Undo: the user can erase the previous line segment (hint: use an array or vector to memorize all the line segments).