DOC PREVIEW
SJSU CS 157A - Assignment

This preview shows page 1 out of 3 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

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

SJSU CS 157A - Assignment

Documents in this Course
SQL

SQL

18 pages

Lecture

Lecture

44 pages

Chapter 1

Chapter 1

56 pages

E-R Model

E-R Model

16 pages

Lecture

Lecture

48 pages

SQL

SQL

15 pages

SQL

SQL

26 pages

Lossless

Lossless

26 pages

SQL

SQL

16 pages

Final 3

Final 3

90 pages

Lecture 3

Lecture 3

22 pages

SQL

SQL

25 pages

Load more
Download Assignment
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Assignment and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Assignment 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?