Document Sample

Introduction to Computers Projects 2011-2012 ت توا ا آ Introduction to Computers Projects FirstYear (First Semester) 2011-2012 1|Page Introduction to Computers Projects 2011-2012 ت توا ا آ Table of contents 1. Team members…………………………………………..3 2. Guidelines………………………………………………...4 3. Project I: Conversion Tool………...……………………5 4. Project II: Geometric Calculation Tool …………….....7 5. Project III: Election Results Calculation Program……9 6. Project IV: The Master Mind Game…………………..11 Appendix I: - Registration Steps………………………....13 2|Page Introduction to Computers Projects 2011-2012 ت توا ا آ I. Team Members Dr. DoaaAbdelKareem Hegazy Teaching Assistants Serial Name E-Mail 1 Wael Hamdy Wael_khalifa@yahoo.com 2 Heba Khaled heba.khaled@cis.asu.edu.eg 3 Dina Reda fcisintro2011@gmail.com 4 Noha Ali noha_sabour@hotmail.com 5 Mona Essam i_mona_s@yahoo.com 6 Eslam Gamal Eslam_Gamal@cis.asu.edu.eg 7 Agwad Hammad agwad.hammad@hotmail.com 8 Hafez Moawed hafez.moawad@gmail.com 9 Aya Salah aya.salah@live.com 10 Sarah Ebrahim sara_mohamed11@cis.asu.edu.eg 3|Page Introduction to Computers Projects 2011-2012 ت توا ا آ II. Guidelines 1. Project objective:- This project aims to improve theoretical, technical and practical skills of students in Introduction to Computers course. 2. Registration:- a. Registration Form URL:- https://docs.google.com/spreadsheet/viewform?formkey=dGxXRkFERGdpOEdEeFMyc m1Id0cwaHc6MQ b. Registration Deadline: - 17/12/2011. c. For late Registration: - the group will lose (3) marks initially and it will be the responsibility of the team to make sure that hisregistration is done. d. Max. No of students in Group: - (2) students. e. Each group should select one of the projects mentioned below. f. For any questions regarding registration contact T.A. Eslam Gamal. 3. Bonus:- There will be some additional marks as a bonus for:- a. Good code organization. b. Good interface (colors and animations). c. Code comments. 4. Project Delivery:- a. Delivery date: - Practical Exam day. b. The examiner will test each required function in your project. c. There will be some oral questions during delivery. 5. Notes:- a. The best (5) projects will take an honor certificate signed and stamped with faculty slogan. b. Before beginning system implementation; you should design your solution well. c. Try to test your implementation partially; do not test it once in the end. d. For any technical questions regarding projects contact any T.A. through mail. e. (Important) Any cheating or copying the two projects will take zero. f. Each team member must participate and understand all the project. 4|Page Introduction to Computers Projects 2011-2012 ت توا ا آ Project I: Conversion Tool Project Description:- • This project converts from one unit to another unit. • This tool will be used in length, weight, time,money and currency conversions. • The program must be run continuously till the user quits from it. • The user should have a two level menu: Level 1: to select the conversion type (length – weight – time -…) Then Level 2: to select the conversion itself from for example from km to cm. • The user can make many selections as he wants. Sample Run:- To Quit press 4 Welcome In Conversion Tool --------------------------------- For Length Conversion Press 1 For Weight Conversion Press 2 For Time Conversion Press 3 Your Choice: 2 // the user will enter this To Convert from kg to g Press 1 To Convert from g to kg Press 2 Your Choice: 1 // the user will enter this Please enter your value (kg): 23 // the user will enter this Your value in g = 23,000 g //the program will calculate this To continue on this conversion press 1 To continue on weight conversion press 2 To return to the main menu press 3 To Quit press 4 Note: you are free to use colors, animations, symbols instead to numbers as choices and so on… 5|Page Introduction to Computers Projects 2011-2012 ت توا ا آ System Required Functions:- 1-ForLength:- a. From Km to m and cm. b. From m to cm. c. From cm to m. d. From cm to km and m. 2- ForWeight:- a. From Kg to g. b. From g to kg. 3- ForTime:- a. From Hour to Minutes and Seconds. b. From Minutes to Seconds. c. From Seconds to Minutes. d. From Seconds to Hours and Minutes. 4- ForMoney:- a. From Pounds to Piaster. b. From Piaster to Pound. 5- ForCurrency:- a. From Pounds to Dollar. b. From Dollar to Pounds. c. From Pounds to Euro. d. From Euro to Pounds. e. From Euro to Dollar. f. From Dollar to Euro. 6- Advanced Function:- After the user select to quit from the program. Your tool should generate a. Summary report of the count of all the user operations on the two levels. For example: The user makes: 1- Convert from kg to g: 3 times. 2- Convert from g to kg: 2 times. 3- Convert from Hours to minutes and seconds: 2 times. 4- Total weight Conversions: 5 times. 5- Total time Conversions: 2 times. b. The top calculation done on the two levels. In the above example Top Conversion process: From kg to g. Top Conversion Done in: Weight. 6|Page Introduction to Computers Projects 2011-2012 ت توا ا آ Project II: Geometric Calculation Tool Project Description:- • This project calculates the perimeter, area and volume of geometric shapes. • This tool will be used for triangle, square, rectangle, circle, cylinder and cube. • The program must be run continuously till the user quits from it. • The user should have a two level menu: Level 1: to select the geometric shape (triangle – square – circle -…) Then Level 2: to select the required calculation for example Area of circle. • The user can make many selections as he wants. Sample Run:- Welcome In To Quit press 4 Geometric Calculation Tool --------------------------------- For Triangle Press 1 For Square Press 2 For Circle Press 3 Your Choice: 2 // the user will enter this To calculate perimeter Press 1 To calculate area Press 2 Both Press 3 Your Choice: 1 // the user will enter this Please enter Length of the square: 10 // the user will enter this The perimeter of the square = 40//the program will calculate this To continue on this calculation press 1 To continue on squarecalculation press 2 To return to the main menu press 3 To Quit press 4 Note: you are free to use colors, animations, symbols instead to numbers as choices and so on… 7|Page Introduction to Computers Projects 2011-2012 ت توا ا آ System Required Functions:- 1-For Triangle:- a. Calculate perimeter. b. Calculate Area. c. Both.// when the user selects both the program calculates perimeter and area. 2- ForSquare:- a. Calculate perimeter. b. Calculate Area. c. Both.// when the user selects both the program calculates perimeter and area. 3- ForRectangle:- a. Calculate perimeter. b. Calculate Area. c. Both.// when the user selects both the program calculates perimeter and area. 4- ForCircle:- a. Calculate perimeter. b. Calculate Area. c. Both. // when the user selects both the program calculates perimeter and area. 5- ForCylinder:- a. Calculate Area. b. Calculate Volume. c. Both.// when the user selects both the program calculates area and volume. 6- ForCube:- a. Calculate Area. b. Calculate Volume. c. Both. // when the user selects both the program calculates area and volume. 7- Advanced Function:- After the user select to quit from the program. Your tool should generate a. Summary report of the count of all the user operations on the two levels. For example: The user makes: 1- Square perimeter: 3 times. 2- Square area: 2 times. 3- Cylinder Volume: 2 times. 4- Total Square operations: 5 times. 5- Total cylinder operations: 2 times. b. The top calculation done on the two levels. In the above example Top Calculation: Square perimeter. Top Geometry Calculation: Square. 8|Page Introduction to Computers Projects 2011-2012 ت توا ا آ Project III: Election Results Calculation Program Project Description:- This project calculates the results of the Egyptian Parliamentary elections with Lists system ( م ا ا تا .)ا For simplicity no. of lists will be constant and equal 5. User Inputs: 1- No. of Lists=5.( ) د ا ا 2- No. of candidates in each list and this number will be constant between all lists. ( ا ا وه ر ) دا 3- Total no. of allowed voters. ( ا ) دا 4- Total no. of actual voters.( ا أد ا ا ) دا 5- Total no. of valid votes. ( ات ا ) دا 6- Total no. of valid votes for each list. ( ات ا ) دا Outputs: A- Results: 1- Required votes for each location. ( ات ا ) دا =Total no. of valid votes / no. of candidates. 2- How many locations will each list win? ( آ ا ) دا = Total no. of valid votes for each list / required votes for each location. 3- If there are fractions after that calculate the remaining locations according to fractions را ا ا ا إ و دآ ر B- Statistical reports: 1- Percentage of actual voters. 2- Percentage of validvotes. 3- Percentage of non validvotes. 4- Percentage of valid votes for each list. 5- Sort lists DESC (from largest to smallest) according to valid votes for each list. Example: 1- No. of Lists=5. 2- No. of candidates in each list and this number will be constant between all lists = 10. 3- Total no. of allowed voters = 1,000,000. 4- Total no. of actual voters = 1,00,000. 5- Total no. of valid votes = 10,000. 9|Page Introduction to Computers Projects 2011-2012 ت توا ا آ 6- Total no. of valid votes for each list. List 1: 4200 List2: 2300 List3 : 1800 List 4: 1000 List 5: 700 Output: A- Results: 1- Required votes for each location. =10,000 / 10 = 1000. 2- How many locations will each list win? List 1: 4200/1000 = 4 List2: 2300 /1000 = 2 List3 : 1800 /1000 = 1 List 4: 1000 /1000 = 1 List 5: 700/1000 = 0 3- If there are fractions after that calculate the remaining locations according to fractions را ا ا ا إ و دآ ر List 1: 200 List2: 300 List3 : 800 List 4: 0 List 5: 700 Sort DESC List 3: 800 will take another location. List 5: 700 will take another location. Then the final locations: List 1: 4 List2: 2 List3 : 2 List 4: 1 List 5: 1 Then output the statistical reports. 10 | P a g e Introduction to Computers Projects 2011-2012 ت توا ا آ Project IV:The MasterMind Game (team members :3) This is the famous MasterMind game. The computer generates at random a 4-digit-number every time you play (the 4 digits must be distinct). Your job – as a player – is to know this number. It's not a guessing game. The computer will help you. Every time you have to enter a 4-digit- number (also they must be distinct), the computer outputs for you + and - signs. The + sign means you have a digit in its place. The - sign means you have a digit, but not in its place. For example, if the secret number were 6397, and you entered 6237, the computer tells you: You have two + signs and 1 - sign. This is because you have two digits in the correct place (here the 6 and the 7) and a digit in a wrong place (the 3). The computer continues to accept numbers from you till you achieve ++++, which means you have guessed the number correctly. Of course you can enter 4 digits that don't even exist in the correct number. The computer also should respond with a suitable message. Note that the computer must prevent the user from entering any 4-digit-number that contains duplications. If the user enters more than 4 digits, just ignore the rest. You're not expected to handle any other errors... just these two. But of course handling other erroneous inputs is a bonus. Another feature is that if the user enters -1, you are to respond with a message like this: "Enter your password: " and take the password, of course in the form of asterisks - not visible characters. If the user enters the correct password, output the final number directly. This feature is used for testing the program. Follow the sample execution EXACTLY. In this sample, the random number is 6397. The N represents negative and the P represents positive. If you have Ns and Ps, you must output the Ps then the Ns. For example, having 2 Ns and 1 P, the output is PNN. Note that the counter in the end counts the number of trials excluding erroneous inputs and password requests. Of course the comments in the sample are not to be printed; this is just for explaining the strange cases to you. SAMPLE EXECUTION ************************************ * Welcome to the MASTER MIND Game! * ************************************ Random Number Generated. Enter a 4-digit number: 12349 // Here the 9 was ignored, because it was the fifth digit. N Enter a 4-digit number: 1334 Error! The 4 digits must be distinct. Enter a 4-digit number: 5678 NN 11 | P a g e Introduction to Computers Projects 2011-2012 ت توا ا آ Enter a 4-digit number: -1 Administrator Password: ******* Wrong Password. Enter a 4-digit number: 6384 PP Enter a 4-digit number: 6834 PN Enter a 4-digit number: -1 Administrator Password: ******* Password Accepted. The number is 6397. Enter a 4-digit number: 1736 NNN Enter a 4-digit number: 6371 PPN Enter a 4-digit number: 6317 PPP Enter a 4-digit number: 12806 // Here the 6 was ignored, because it was the fifth digit. Nothing! Enter a 4-digit number: 6397 Congratulations! You have guessed the number correctly in 9 trials. Press any key to continue. 12 | P a g e Introduction to Computers Projects 2011-2012 ت توا ا آ Appendix I:- Registration Steps 1- Open your browser and copy the Registration URL in the first page 2- Fill in your data like that :- 13 | P a g e Introduction to Computers Projects 2011-2012 ت توا ا آ 3- Press Submit and you will receive a confirmation message. Colored Console Example 14 | P a g e

DOCUMENT INFO

OTHER DOCS BY sirimonz147

How are you planning on using Docstoc?
BUSINESS
PERSONAL

By registering with docstoc.com you agree to our
privacy policy and
terms of service, and to receive content and offer notifications.

Docstoc is the premier online destination to start and grow small businesses. It hosts the best quality and widest selection of professional documents (over 20 million) and resources including expert videos, articles and productivity tools to make every small business better.

Search or Browse for any specific document or resource you need for your business. Or explore our curated resources for Starting a Business, Growing a Business or for Professional Development.

Feel free to Contact Us with any questions you might have.