This assignment require the students to have the experience on C++ string, classes and constructors. There is 2 tasks involved in this assignment and it will carry 12 marks.
Task 1
This task to write a C++ program that allows the user to play the Hangman game. If you do not know the Hangman game, it is look like that.
Hey.. wait.. you don't need to have any graphic. It is just a small simple word-guessing C++ program that is similar in the concept. First, You need to create a text file that contain 20 words and corresponding prize amount. Then you will write a program that the user will select a number between 1 to 20. Based on number selection, your program extract the corresponding word and prize amount. Now let the user to get one alphabet at one time. If the alphabet is guessed correctly, it will display the alphabet in the word. Finally, if the user guess correctly for all the alphabet in the word, then he will get the prize. Similarly, if the user guess wrongly for more than 7 times, it is game over.
Task 2
This task is about writing a C++ program for small database for library. But instead of using all the databases, it is simply just a text file. The program will read, write and modify the contents in that text file. It will also allow for adding new records, updates, deletion, search and calculate some statistics and display. Very simple and yet it needs some of your time and efforts.
These programs are developed in window environment. Please make sure your program can run and execute accordingly. To develop C++ program, you may want to download the complier from Bloodshed Dev C++.
Task 2
This task is about writing a C++ program for small database for library. But instead of using all the databases, it is simply just a text file. The program will read, write and modify the contents in that text file. It will also allow for adding new records, updates, deletion, search and calculate some statistics and display. Very simple and yet it needs some of your time and efforts.
These programs are developed in window environment. Please make sure your program can run and execute accordingly. To develop C++ program, you may want to download the complier from Bloodshed Dev C++.
No comments:
Post a Comment