K OMPUTER
SCHOOL OF COMPUTER SCIENCES
Semester I, Academic Session 2013/2014
CPT111 - Principles of Programming
Assignment 4
For the question below, you are to include the following details:
(i)
(ii)
(iii)
Problem analysis
Design (flow chart or pseudocode)
C++ program code
Solve the problem below:
1.
Create an educational arithmetic guessing game that will allow the player to choose the difficulty level of the game: easy, intermediate or advance level. Easy level will involve numbers between 0 and 10, the intermediate level between 10 and 99 and the advance level between 100 and 999. The arithmetic operators provide by the game is addition, subtraction, multiplication and division. The division will involve quotient and remainder. The user will get 5 points for correct answer and deduct 2 points for wrong answer. The player can decide when to quit the game and the system will provide the following information upon quitting.
Name : Player’s Name
Level of Difficulties : Easy/ Intermediate/Advance
Number of Attempts:
Number of correct scores :
Number of incorrect scores:
Total scores:
INSTRUCTIONS:
Please submit your typewritten/handwritten report by Friday 29 November 2013 by uploading it to ELearning before 12:00 midnight. Please make a cover page with the following information. You can choose to do the assignment with a partner within the same group.
Course:
Name:
Matric No:
Group Number:
The name of the file that you upload must follow this standard: CPT111YOUR NAME/MATRIC NUMBER/Group
Number
Course Policy:
•
All assignments MUST be submitted before/on the given date. Late submissions without prior approval from the lecturer will not be accepted. One grade will be deducted for each day, for students with approval.
•
If a student is found to misuse the amenities given, the permission will be taken away from the student.
•
Plagiarism/pirating and copying are serious academic offence. Students that are found to plagiarize/or copying will get an 'F' for the assignment/report or for the whole coursework grade and will be barred from taking the final examination. Please read your undergraduate Programme
Handbook.
You May Also Find These Documents Helpful
-
All work must be submitted by 11:55 p.m. on the posted due date in the course calendar. All times are Eastern Standard Time.…
- 1196 Words
- 6 Pages
Satisfactory Essays -
Each group must submit the assignment to the instructor at the beginning of class on the date the assignment…
- 1104 Words
- 5 Pages
Powerful Essays -
9. All assignments must be electronically (digital drop box) submitted by midnight on Sunday of the week due. If you have some circumstance which you anticipate may cause you to be tardy, please notify the instructor in advance to make alternate…
- 1016 Words
- 5 Pages
Powerful Essays -
Your company president tells you not to hire any gay or lesbian employees to work as part of his office staff because it would make him uncomfortable.…
- 1220 Words
- 5 Pages
Powerful Essays -
I confirm that I am currently meeting the pre requisites for E105 as set out in the pre registration information for students and have a valid agreement with the confirmers form. For this TMA I have only used materials drawn from the setting identified on my employers permission agreement form. In this TMA I have adhered to the E105 ethical guidance by receiving permission from my manager to discuss the setting, staff and pupils in a confidential manner. Not naming or changing the names of any individuals in such a way that maintains confidentiality.…
- 669 Words
- 2 Pages
Good Essays -
References: . Five points will be deducted for every page the assignment is short. If the assignment is 7 pages, 5 points will be deducted, 6 pages 10 points deducted, 5 pages 15 points deducted, and so on.…
- 436 Words
- 2 Pages
Satisfactory Essays -
• Late submission past 10 days results in an automatic 0% for coursework and the student will be barred from the final examination.…
- 861 Words
- 4 Pages
Powerful Essays -
We are highly grateful to almighty Allah who gave us the power to complete this report…
- 1434 Words
- 6 Pages
Powerful Essays -
|failing the course unless there are exceptional circumstances which must be explained to your tutor and agreed by the Curriculum Manager. |…
- 1030 Words
- 5 Pages
Powerful Essays -
4) Once you know HOW your program should solve the problem, and you know WHAT variables loops statements etc are needed for that program to work, it should be easy to write down your finished answer.…
- 783 Words
- 4 Pages
Good Essays -
* All the problems are connected. In other words, to solve the problem, you may need the information and/or answers given in other problems. All necessary information is basically given. Also please consult the supplementary material handed out to you.…
- 1182 Words
- 5 Pages
Good Essays -
6. Compilation of the Pascal Program (With Successful) Screen shot of the Whole Pascal Program…
- 2908 Words
- 19 Pages
Powerful Essays -
Any redistribution or reproduction of part or all of the content in any form is prohibited other than to print a…
- 803 Words
- 4 Pages
Satisfactory Essays -
WEEK-3 Data Abstraction Destructors • Destructors are functions without any type • The name of a destructor is the character '~' followed by class name – For example: ~clockType(); • A class can have only one destructor – The destructor has no parameters • Destructor automatically executes when the class object goes out of scope C++ Programming: Program Design Including Data Structures, Sixth Edition 2 Data Abstract, Classes, and Abstract Data Types • Abstraction – i.e., we want to know how to start the car and drive it • No concern about how the engine works C++ Programming: Program Design Including Data Structures, Sixth Edition 3 Data Abstract, Classes, and Abstract Data Types • Abstraction – Separating design details from usage Abstraction –…
- 916 Words
- 7 Pages
Satisfactory Essays -
* Students who have more than 20% of absences or equivalent to more than two absent will automatically get a grade of five (5.00)…
- 459 Words
- 2 Pages
Good Essays