Tags:
tag this topic
create new tag
view all tags
---+Arrays part 2 Lab: Redo the Language Quiz: Fall 2026 ---++ Learning Objective(s) * Use previous code * More comfort with arrays ---++ Overview of the Program Write a program give a language vocabulary quiz. This program should continue to ask questions that are missed ---++ Specifics * The program is to be called <b>LangQuiz</b> * The program should prompt for the name of the file with vocabulary words in another language. You should generate your own file. The one provided is a sample. You may use an online tool to generate the list if you wish. Each word pair (first word is the English word, the second is the same word in a language of your choice) should be on a separate line. Some languages will be easier to use than others (because of the alphabet). * Exceptions should be <b>caught</b> * The file should only be read once. Information should be stored in arrays. * The program should continue to ask "random" words (of the ones not answered correctly) until all words are answered correctly. * The final results include how many attempts (total) it took to answer all words correctly * You must use the file io processing covered in class (not another learned a different way). ---++ Sample dialogue Below is a sample dialogue. The prompts may vary but the input given by the user is to be the same format. Your output can vary somewhat as long as the required data is nicely displayed. Notes: a. You will notice the program can be very case sensitive. That is fine. a. One word (Spanish for tree) may not be display right because of the special character. That is fine. The language you pick must display most foreign words correctly.<br> <pre> Filename? <font color="blue"><b>EnglSpanShort.txt</b></font> My word is Manzana What is it in English? <font color="blue"><b>Apple</b></font> You were right. I won't ask that word again. My word is Libro What is it in English? <font color="blue"><b>Love</b></font> You were wrong. You will will need answer it correctly later. My word is Gato What is it in English? <font color="blue"><b>Cat</b></font> You were right. I won't ask that word again. My word is Perro What is it in English? <font color="blue"><b>Dog</b></font> You were right. I won't ask that word again. My word is Libro What is it in English? <font color="blue"><b>Book</b></font> You were right. I won't ask that word again. My word is ┴rbol What is it in English? <font color="blue"><b>Grass</b></font> You were wrong. You will will need answer it correctly later. My word is Sol What is it in English? <font color="blue"><b>Grass</b></font> You were wrong. You will will need answer it correctly later. My word is Sol What is it in English? <font color="blue"><b>Sun</b></font> You were right. I won't ask that word again. My word is Casa What is it in English? <font color="blue"><b>House</b></font> You were right. I won't ask that word again. My word is Agua What is it in English? <font color="blue"><b>Water</b></font> You were right. I won't ask that word again. My word is ┴rbol What is it in English? <font color="blue"><b>Tree</b></font> You were right. I won't ask that word again. It took you 11 attempts to answer all correctly. </pre></b> You can also run a solution for this program if you want. See classroom instructions for more details. ---++Lab Hints * Hint 1: [[CSC121F2026Lab09Hint01][Picking the next question to ask]] ---++ Submission * Create a software development report * For the system design, you need to make your own flowchart. * For testing report, * make sure your tests ensure that each statement is executed at least one. * your <b>expected output</b> <font color="red">CANNOT</font> be pasted from the dialogue of a running. Only the actual output may be pasted * It should contain two different inputs that are "errors" * For the improvement section, specify how many points were lost from the last lab that you should not lose points for on this lab because you corrected the problem * create a pdf document from your software development report * create an empty zip folder * place *only* !LangQuiz.java, your own testing files (not mine) and your pdf document into it * submit the zip folder on canvas ---++ Optional improvements Optional improvements should ONLY be worked on once the program is completing working. In addition, the work is to be done on your own with little if any help for lab assistants or the instructor. 1. Allow the program to handle lowercase or uppercase as the same. If you do this, add a section to the SDR (<b>Extra Credit</b>) explaining how it works 1. Allow for a more complex language (such as Korean, Japanese, Arabic, etc.) with a very different alphabet. If you do this, add a section to the SDR (<b>Extra Credit</b>) with instructions on how to make it work on a machine in the lab and how you figured this out. 1. Submission instructions a. Call this program <b>LangQuiz2</b> add it to the zip folder that contains the original solution.
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2026-06-04
-
CathyBareiss
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback