Chapter 11 Exercise Set 2: ncurses Projects

Project: An ncurses digital clock

Research how to check the time on the system clock and also how to write a loop with a time delay in it.

Use the ncurses library to make a nice looking console digital clock that displays the current hour, minute and second and updates once per second.

Project: An ncurses fraction calculator

Create a fraction calculator using ncurses that allows users to enter two fractions and an operation (+, -, *, /) and then displays the fraction which results from applying the given operation to the two given fractions.

Project: An ncurses polynomial calculator

Create a polynomial calculator using ncurses that allows users to enter two polynomials and an operation (+, -, *) and then displays the polynomial which results from applying the given operation to the two given polynomials.

Projects: Robots

Create an implementation using ncurses of the robots video game from early unix systems. Use The Robots are Coming! as a resource for a both a description of the game and a discussion of the logic involved in implementing it.