Sunteți pe pagina 1din 3

University of the Philippines Diliman College of Engineering Department of Computer Science CS11 THBW, THCF, THEF Machine Problem

1 The Problem Shubael, the official in charge of the treasuries of Israel, was having a hard time manually computing all the treasures of Israel. One day, he asked King David for some help. The king gave him a binary calculator; it can calculate anything as long as it's binary. So Shubael, now carrying a binary calculator, comes to you and asks for your help. You see, Shubael only knows decimal numbers. The Goal Your goal is to create a program that: 1. Converts a decimal number to binary 2. Prints all answers in bigger scale (Shubael asks for this also) The Expected Outcome

Notes: Positive integer inputs only Decimal: from 0 to 255, Binary: from 0000 0000 to 1111 1111 Only loops, control structures, functions and everything else discussed so far are allowed Printed digits have 5x5 character sizes, and need not be made out of #'s

The Scoring Functions ----------------------------------Menu options Decimal to Binary Converter Binary Values Printer Binary to Decimal Converter Decimal Values Printer 55% 5% 15% 10% 15% 10%

Coding -------------------------------------- 15% Readability 5% Documentation (comments) Variable naming Program flow Elegance 5% Careful choice of control structures Simplicity Neatness Cleanliness 5% Delivery ------------------------------------Mastery Confidence Fluency 30% 20% 5% 5% The Delivery Machine Program This machine problem will be a solo/pair work. The main source file (.c file with the main function) will be named as ShubaelsConverter.c Zip-compress all your files (.c source files and .h header files if any) with the following name format cs11<section>_mp1_<surname1>_<firstname1>&<surname2>_<firstname2>.zip e.g. cs11thbw_mp1_regonia_paul&regonia_rossener.zip Present your programs during delivery (see dates below) Output/executable files are not to be submitted Non-working MPs will not be checked Deductions Non-compliance to those said above will earn deductions Late submissions will earn 20% deduction per week late Please refrain from cheating. What will you gain if you pass but did not really learn anything? Other deductions may be given Bonus Additional points will be given for negative decimal and/or binary inputs Additional points will be given for the most elegant code (per section) Additional points will be given for the most creative interface, that is for input and output (per section) Additional points will be given for the best in delivery Bonus points will take no effect if initial grade is already perfect. In this case, it may be wholly transferred to another individual or pair Other bonus points may be given Delivery Proper The delivery will be a 10-minute report per pair/individual during class hours Programs will be compiled, ran, and tested You will be asked about certain parts of your code Delivery is independent of functionality. You may still earn a perfect score in delivery even if your programs are not fully functional. Dates: CS 11 THBW 3 August CS 11 THCF 5 August CS 11 THEF 8 August -Sir Paul
That is why, for Christ's sake, I delight in weaknesses, in insults, in hardships, in persecutions, in difficulties. For when I am weak, then I am strong. 2 Corinthians 12:10

S-ar putea să vă placă și