Design and Implementation Steps:GradingCS157 A Computer Assignment 1Prof. Sin-Min LeeDue Date: November 14, 2006)Object: In this assignment you need to input a table and decide how many candidate keys it has.The number of attributes is between 3 and 5 and the number of tuples (rows) more than 8 and less than 15.Your program will list all the possible candidate keysExample 1:Relation R1 A B C1 2 21 3 22 2 11 3 3{B,C} is the candidate key.Example 2:Relation R2 A B C D1 1 2 31 2 3 44 2 3 11 3 2 42 1 3 4{AB}, {BD} are candidate keysExample 3:Relation R3 A B C1 2 34 1 23 2 11 3 13 4 2{AB}, {A,C}, {BC}Design and Implementation Steps:Decide on an interface -- the set of operations supported. Other advices: The program will be examined on functionality (whether it works) andthe quality of the code. Comments and indents are important for making your programeasy to read. Your program will be easier to understand and to change if you decide tochange it later. (a) Write comments to explain what your program is doing and why. (b) Use descriptive names for your variables. Code should be organized and documented as well as neat. Documentation shouldinclude name and email address at the top. Turn in (11/14/2006) - A report-describing what you discovered from the programIn your report you should mention what kind of algorithms you are using. Also thesources of your references (for example: www.xyz.com/lee/permutation/partition) .- Two diskettes with both source code and executable.- Complete source code in a hard copy printout.- Complete six cases outputs in a hard copy printout.Turning in homework directions:From now on you are going to be required to make an ms-dos batch file that must beincluded with your program, the purpose of this is to have a shortcut that runs yourprogram. On your disk drive make a file called program?.bat where the “?” is thehomework assignment. Inside that document you must include the following::: :: these are comments:: Assignment #? :: Name=:: Date=:: Class=:: Section=::@ECHO OFF:: compiles the java filejavac *.java :: Make sure <programmainclass> is replaced with the name of the class that starts your:: programjava <programmainclass>:: if you are using packages for your classes then comment the above java line and :: uncomment and use the following line::: java <packagenames>.<programmainclass>:: where <packagenames> is replaced with the names of packages that the programclass:: is nested in and <programmainclass> is replaced by the name of the class that starts:: your program.pause That is it.For more information on Dos Batch files refer to:http://www.chebucto.ns.ca/~ak621/DOS/BatBasic.htmlGrading- To receive a better grade, you have to add features that increase functionalityand/or presentation. Please send your program and report to:
View Full Document