Brookhaven Data Type Class Class Candidate UML Diagrams & Flowchart Exercise
Description
DATA TYPE CLASS
Class CandidateDriver_yourLastName
-This class hold data members: last name (String), first name (String), SSNumber(String), Driver’s license number (String), address(String), answerArray(char array size 25)
-constructors: the constructor initializes values for lastname, firstname, SSNumber, driverLicenseNumber, address, and initializes the char answerArray with size 25
* The driver license is generated by random number with 8 digits and test date is generated as current date
-method evaluateResult() accept answerArray and keyArray to determine the result and mark the failed questions list. If the candidate having 20 or more correct answers over 25 questions will be passed; otherwise he will be failed
-method toString() prints the result in the following format.
FA2020_DriverLicenseTest_Smith.java
DRIVER TEST RESULT – JAMES SMITH
———————————————————————
Driver’s name: Lane, Mary
SS Number: 112233440
Address:123 Plano Rd Dallas TX 75243
Driver’s License: 12345678
Test date:08/15/2020
Result: PASSED
Missed Questions: 5, 12, 15
-You can add more methods if you need
REQUIREMENT
-Change yourLastName to your last name
-Change Smith to your lastname
-Change James Smith to your full name
-Change Mary Lane to the name that users type in for input
DRIVER CLASS
Class FA2020_DriverLicenseTest_yourLastName:
The local driver’s license office has asked you to write a program that grades the written portion of the driver’s license Rules and Signals Test.
The driver license test has 25 multiple choice questions. The key set is:
ANSWER LIST |
ANSWER LIST |
ANSWER LIST |
ANSWER LIST |
ANSWER LIST |
1.A |
6.B |
11.C |
16.B |
21.B |
2.C |
7.C |
12.A |
17.A |
22.C |
3.B |
8.D |
13.B |
18.C |
23.A |
4.B |
9.A |
14.C |
19.A |
24.D |
5.D |
10.B |
15.A |
20.D |
25.B |
The program should declare the keySet as a char array constant.
First, the application displays messages to ask for the information of current candidate about last name, first name, SS number, address to create a Test account as an object of class DriverCandidate_yourLastName to pass all these information in.
When the candidate is ready, display the test instruction, questions and read answers
DRIVER LICENSE TEST
THERE ARE 25 MULTIPLE CHOICE QUESTIONS
YOU HAVE TO GET AT LEAST 20 CORRECT ANSWERS TO GET PASSED
————————————————————
Question 1: _
The users answer the question bytyping a letter A, B, C or D for each question. The program will read these answers and store to an answerArray.
If users type other keys than A, B, C or D; display message “Invalid key – Retype” and allow users to retype the answer of current question before moving on
The answerArray and the keySet should be sent to the Test account by calling the method of class CandidateDriver_yourLastName to evaluate the result
The result will be displayed on the screen in the requested format by call a method of class CandidateDriver_yourLastName
HOW TO DO EACH PART
PART 1: Create a word document FA2020_LAB6PART1_YourLastName.docx to answer questions
PART 2:
*Step1: Read the requirement of each part, recognize the objects the requirement talk about to make decision which data type classes we need for the project. Create the UML of each data type class
Also, read the requirement to write the pseudo-code or draw the flowchart to determine what step by step you suppose to do in main() of driver class such that the program is qualified to the requirement
*Step2:
-start editor (for example eclipse) create the project with the following project name:
FA2020_LAB6PART2_yourLastName (part 2)
-add data type class (file with extension .java)
Class: CandidateDriver_yourLastName (par2)
Class: FA2020_DriverLicenseTest_yourLastName (part2)
*Step3: Based on the UML of data type class, write the code of data type class
Based on the pseudo-code or flowchart, write the code of main() in driver class
*Step:4 compile and run the program
*Step5: debug if there are any errors to complete the program
DATA TYPE CLASS:
-to initialize an array you should use the for loop
-to display the values of all elements of an array, you should use the for loop
-when you determine the result: Create a result array of the int and initialize its element to 0. During the time you compare the value of each element of key array to the value of each element of answer array. If they are the same you should set 1 at that question on the result array.
-The value 0 in the result array will determine the incorrect answer in the report
DRIVER CLASS:
-After reading the information of the candidate, display the instruction to let the candidate know that he/she should type A, B, C, D, to answer the questions; then display the number of questions to pause for the answer.
All the information, the answer array and the key array will be passed to the object of data type class.
-Display the result by using the object to access the method of the data type class.
*Change Smith to your last name
*Change JAMES SMITH to your full name
*Change Mary Lane to the name of user
*Write the file name as the first comment line at the top of program
*Write the comments to explain each part of the program
*After running your program, get the picture of the output window from your program with your name on to paste at the bottom of the pseudo-code to turn in
Brookhaven Data Type Class Class Candidate UML Diagrams & Flowchart Exercise
In-Text Citations: The Basics
Note: This page reflects the latest version of the APA Publication Manual (i.e., APA 7), which released in October 2019. The equivalent resource for the older APA 6 style can be found here.
Reference citations in text are covered on pages 261-268 of the Publication Manual. What follows are some general guidelines for referring to the works of others in your essay.
Note: On pages 117-118, the Publication Manual suggests that authors of research papers should use the past tense or present perfect tense for signal phrases that occur in the literature review and procedure descriptions (for example, Jones (1998) found or Jones (1998) has found…). Contexts other than traditionally-structured research writing may permit the simple present tense (for example, Jones (1998) finds).
APA Citation Basics
When using APA format, follow the author-date method of in-text citation. This means that the author’s last name and the year of publication for the source should appear in the text, like, for example, (Jones, 1998). One complete reference for each source should appear in the reference list at the end of the paper.
If you are referring to an idea from another work but NOT directly quoting the material, or making reference to an entire book, article or other work, you only have to make reference to the author and year of publication and not the page number in your in-text reference.
On the other hand, if you are directly quoting or borrowing from another work, you should include the page number at the end of the parenthetical citation. Use the abbreviation “p.” (for one page) or “pp.” (for multiple pages) before listing the page number(s). Use an en dash for page ranges. For example, you might write (Jones, 1998, p. 199) or (Jones, 1998, pp. 199–201). This information is reiterated below.
Regardless of how they are referenced, all sources that are cited in the text must appear in the reference list at the end of the paper.
In-text citation capitalization, quotes, and italics/underlining
* Always capitalize proper nouns, including author names and initials: D. Jones.
* If you refer to the title of a source within your paper, capitalize all words that are four letters long or greater within the title of a source: Permanence and Change. Exceptions apply to short words that are verbs, nouns, pronouns, adjectives, and adverbs: Writing New Media, There Is Nothing Left to Lose.
(Note: in your References list, only the first word of a title will be capitalized: Writing new media.)
* When capitalizing titles, capitalize both words in a hyphenated compound word: Natural-Born Cyborgs.
* Capitalize the first word after a dash or colon: “Defining Film Rhetoric: The Case of Hitchcock’s Vertigo.”
* If the title of the work is italicized in your reference list, italicize it and use title case capitalization in the text: The Closing of the American Mind; The Wizard of Oz; Friends.
* If the title of the work is not italicized in your reference list, use double quotation marks and title case capitalization (even though the reference list uses sentence case): “Multimedia Narration: Constructing Possible Worlds;” “The One Where Chandler Can’t Cry.”
SHORT QUOTATIONS
If you are directly quoting from a work, you will need to include the author, year of publication, and page number for the reference (preceded by “p.” for a single page and “pp.” for a span of multiple pages, with the page numbers separated by an en dash).
You can introduce the quotation with a signal phrase that includes the author’s last name followed by the date of publication in parentheses.
According to Jones (1998), “students often had difficulty using APA style, especially when it was their first time” (p. 199).
Jones (1998) found “students often had difficulty using APA style” (p. 199); what implications does this have for teachers?
If you do not include the author’s name in the text of the sentence, place the author’s last name, the year of publication, and the page number in parentheses after the quotation.
She stated, “Students often had difficulty using APA style” (Jones, 1998, p. 199), but she did not offer an explanation as to why.
LONG QUOTATIONS
Place direct quotations that are 40 words or longer in a free-standing block of typewritten lines and omit quotation marks. Start the quotation on a new line, indented 1/2 inch from the left margin, i.e., in the same place you would begin a new paragraph. Type the entire quotation on the new margin, and indent the first line of any subsequent paragraph within the quotation 1/2 inch from the new margin. Maintain double-spacing throughout, but do not add an extra blank line before or after it. The parenthetical citation should come after the closing punctuation mark.
Because block quotation formatting is difficult for us to replicate in the OWL’s content management system, we have simply provided a screenshot of a generic example below.
Formatting example for block quotations in APA 7 style.
QUOTATIONS FROM SOURCES WITHOUT PAGES
Direct quotations from sources that do not contain pages should not reference a page number. Instead, you may reference another logical identifying element: a paragraph, a chapter number, a section number, a table number, or something else. Older works (like religious texts) can also incorporate special location identifiers like verse numbers. In short: pick a substitute for page numbers that makes sense for your source.
Jones (1998) found a variety of causes for student dissatisfaction with prevailing citation practices (paras. 4–5).
A meta-analysis of available literature (Jones, 1998) revealed inconsistency across large-scale studies of student learning (Table 3).
SUMMARY OR PARAPHRASE
If you are paraphrasing an idea from another work, you only have to make reference to the author and year of publication in your in-text reference and may omit the page numbers. APA guidelines, however, do encourage including a page range for a summary or paraphrase when it will help the reader find the information in a longer work.
According to Jones (1998), APA style is a difficult citation format for first-time learners.
APA style is a difficult citation format for first-time learners (Jones, 1998, p. 199).
Description
DATA TYPE CLASS
Class CandidateDriver_yourLastName
-This class hold data members: last name (String), first name (String), SSNumber(String), Driver’s license number (String), address(String), answerArray(char array size 25)
-constructors: the constructor initializes values for lastname, firstname, SSNumber, driverLicenseNumber, address, and initializes the char answerArray with size 25
* The driver license is generated by random number with 8 digits and test date is generated as current date
-method evaluateResult() accept answerArray and keyArray to determine the result and mark the failed questions list. If the candidate having 20 or more correct answers over 25 questions will be passed; otherwise he will be failed
-method toString() prints the result in the following format.
FA2020_DriverLicenseTest_Smith.java
DRIVER TEST RESULT – JAMES SMITH
———————————————————————
Driver’s name: Lane, Mary
SS Number: 112233440
Address:123 Plano Rd Dallas TX 75243
Driver’s License: 12345678
Test date:08/15/2020
Result: PASSED
Missed Questions: 5, 12, 15
-You can add more methods if you need
REQUIREMENT
-Change yourLastName to your last name
-Change Smith to your lastname
-Change James Smith to your full name
-Change Mary Lane to the name that users type in for input
DRIVER CLASS
Class FA2020_DriverLicenseTest_yourLastName:
The local driver’s license office has asked you to write a program that grades the written portion of the driver’s license Rules and Signals Test.
The driver license test has 25 multiple choice questions. The key set is:
ANSWER LIST |
ANSWER LIST |
ANSWER LIST |
ANSWER LIST |
ANSWER LIST |
1.A |
6.B |
11.C |
16.B |
21.B |
2.C |
7.C |
12.A |
17.A |
22.C |
3.B |
8.D |
13.B |
18.C |
23.A |
4.B |
9.A |
14.C |
19.A |
24.D |
5.D |
10.B |
15.A |
20.D |
25.B |
The program should declare the keySet as a char array constant.
First, the application displays messages to ask for the information of current candidate about last name, first name, SS number, address to create a Test account as an object of class DriverCandidate_yourLastName to pass all these information in.
When the candidate is ready, display the test instruction, questions and read answers
DRIVER LICENSE TEST
THERE ARE 25 MULTIPLE CHOICE QUESTIONS
YOU HAVE TO GET AT LEAST 20 CORRECT ANSWERS TO GET PASSED
————————————————————
Question 1: _
The users answer the question bytyping a letter A, B, C or D for each question. The program will read these answers and store to an answerArray.
If users type other keys than A, B, C or D; display message “Invalid key – Retype” and allow users to retype the answer of current question before moving on
The answerArray and the keySet should be sent to the Test account by calling the method of class CandidateDriver_yourLastName to evaluate the result
The result will be displayed on the screen in the requested format by call a method of class CandidateDriver_yourLastName
HOW TO DO EACH PART
PART 1: Create a word document FA2020_LAB6PART1_YourLastName.docx to answer questions
PART 2:
*Step1: Read the requirement of each part, recognize the objects the requirement talk about to make decision which data type classes we need for the project. Create the UML of each data type class
Also, read the requirement to write the pseudo-code or draw the flowchart to determine what step by step you suppose to do in main() of driver class such that the program is qualified to the requirement
*Step2:
-start editor (for example eclipse) create the project with the following project name:
FA2020_LAB6PART2_yourLastName (part 2)
-add data type class (file with extension .java)
Class: CandidateDriver_yourLastName (par2)
Class: FA2020_DriverLicenseTest_yourLastName (part2)
*Step3: Based on the UML of data type class, write the code of data type class
Based on the pseudo-code or flowchart, write the code of main() in driver class
*Step:4 compile and run the program
*Step5: debug if there are any errors to complete the program
DATA TYPE CLASS:
-to initialize an array you should use the for loop
-to display the values of all elements of an array, you should use the for loop
-when you determine the result: Create a result array of the int and initialize its element to 0. During the time you compare the value of each element of key array to the value of each element of answer array. If they are the same you should set 1 at that question on the result array.
-The value 0 in the result array will determine the incorrect answer in the report
DRIVER CLASS:
-After reading the information of the candidate, display the instruction to let the candidate know that he/she should type A, B, C, D, to answer the questions; then display the number of questions to pause for the answer.
All the information, the answer array and the key array will be passed to the object of data type class.
-Display the result by using the object to access the method of the data type class.
*Change Smith to your last name
*Change JAMES SMITH to your full name
*Change Mary Lane to the name of user
*Write the file name as the first comment line at the top of program
*Write the comments to explain each part of the program
*After running your program, get the picture of the output window from your program with your name on to paste at the bottom of the pseudo-code to turn in