logo

Design Documentation Program Algorithm

15 Pages2080 Words86 Views
   

Added on  2020-04-07

Design Documentation Program Algorithm

   Added on 2020-04-07

ShareRelated Documents
AssignmentCoverSheetFacultyofScienceandTechnologyStudent ID StudentNameCourseCodeCourseNameDateSubmittedLecturer’sNameTutor’sNameASSIGNMENTTITLE:PLAGIARISMPlagiarismisthepresentationofthe expressedthoughtorworkofanotherpersonasthoughitisone'sownwithoutproperlyacknowledgingthatperson.Youmustnotallowotherstudentstocopyyourworkandmusttakecaretosafeguardagainstthishappening.Plagiarismisaseriousoffence.AssetoutinUniversityRegulation6.1.1.,studentswhoarecaughtplagiarisingwill,forafirstoffence,begivenazeromarkforthattask.AsecondoffencewillresultinafailinggradefortheCourse(s)involvedandanysubsequentoffencewillbereferredtotheStudentDisciplineCommittee.DeclarationExceptwhereappropriatelyacknowledged,thisassignmentismyownwork,hasbeenexpressedinmyownwordsandhasnotpreviouslybeensubmittedforassessment.Ihavealsoretainedacopyofthisassessmentpieceformyownrecords.Signature:Date:Feedback /Assessment:LECTURER’SSIGNATURE:DATE:Facultyof Science andTechnology,FederationUniversityMtHelenCampus:POBox663BallaratVic3353GippslandCampus:POBox3191GippslandMailCentreVic 3481CRICOSProviderNumber00103D
Design Documentation Program Algorithm_1
Section 1: Design DocumentationProgram Algorithm / Pseudocode / FlowchartStep 1:StartStep 2:Read the Number of Question for the quiz in the contestStep 3: Display the header messageStep 4: Declare the contest objectStep 5: Declare the School Array Step 6: Declare the Student Object for each studentStep 7: Enroll the student to the contestStep 8: Print the enrolled or duplicate or exceed limit informationStep 9: Set isContinue to TrueStep 10: Print menu list and get the user dataStep 11: Switch (userData)If userData is 1, read the quiz scoresIf userData is 2, display the student name and total score of the quiz in descending orderIf userData is 3, display the program credit detailsIf userData is 4, set isContinue is FalseIf userData is > 5, Print the invalid choice messageStep 12: Check if isContinue is True, Got to 10, Otherwise Goto 13Step 13: Print the exit informationStep 14: End
Design Documentation Program Algorithm_2
Test CasesTest CaseExpected ResultActual ResultProgram InitializationDisplay the enrolled School, student detailsTest Case 1Read the Contest ScoreEnter the quiz mark for each student Test Case 2View Contest ScorePrint the Student Name with total mark and First three student detailsTest Case 3View Credit InfoDisplay the program developer informationTest Case 4
Design Documentation Program Algorithm_3
Section 2: Program Developmentpublicclass School {private String name,registrationID;public School(String regnum,String schoolname){registrationID=regnum;name=schoolname;System.out.printf("\t... Successfully registered %s\n",name);}public String getID(){returnregistrationID;}public String getName(){returnname;}}publicclass Student {private String name;private School enrolledSchool;public Student(String studName,School enrollSchool){name=studName;enrolledSchool=enrollSchool;System.out.printf("\t... student %s created.\n",name);}public String getName(){returnname;}public School getSchool(){returnenrolledSchool;}}publicclass Entry {private Student entrant;privateint[] quizScores;public Entry(Student student,intnumQuiz){quizScores=newint[numQuiz];entrant=student;School tSchool=entrant.getSchool();System.out.printf("\t... successfully registered %s representing %s\n",entrant.getName(),tSchool.getName());}
Design Documentation Program Algorithm_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Gadget, Mobile and MP3 Player Classes in Java
|16
|1551
|57

Questions on Stack Program
|11
|1305
|31

Memory Sequence Game - Java Program for Console Based Game
|8
|998
|259