Yorkville High School Computer Science Department
Yorkville High School Computer Science Department on Facebook  Yorkville High School Computer Science Department Twitter Feed  Yorkville High School Computer Science Department on Instagram

Yorkville High School Computer Science

ASSIGNMENTS: No Current Assignments

Computer Programming I :: Projects :: Verb Conjugator

Department Connections: World Languages

 

Problem

Create a program that takes a given Spanish verb and conjugates the verb into its present-tense forms. For the sake of this project, you do not have to worry about special cases. The present tense of Spanish verbs depends on the last two letters of the verb as shown below:

Verbs Ending in -ar

SubjectNew Ending
Yo-o
-as
Usted-a
Él/Ella-a
Nostros-amos
Vosotros-áis
Ustedes-an
Ellos/Ellas-an

Verbs Ending in -er

SubjectNew Ending
Yo-o
-es
Usted-e
Él/Ella-e
Nostros-emos
Vosotros-éis
Ustedes-en
Ellos/Ellas-en

Verbs Ending in -ir

SubjectNew Ending
Yo-o
-es
Usted-e
Él/Ella-e
Nostros-imos
Vosotros-ís
Ustedes-en
Ellos/Ellas-en

Specific Requirements

  1. Store the new endings in three arrays (one array for each original ending).
  2. You should also store the eight labels that you will use to display the conjugated verb in an array.
  3. Use the substring method to determine what ending the verb has.
  4. If the word typed doesn't end in ar, er, or ir, return a message saying it isn't a valid verb.
  5. Use an if statement to determine the correct ending and use a for loop within the if statement to process the verb and display each form in the correct label.
  6. Determine a good name for each variable following the rules.
  7. Rename the form and all controls on the form using a three-letter prefix.
  8. Add a comment header following class guidelines.

Project Extension

  1. Make it so your program can handle irregular verbs and stem-changing verbs.
  2. Use a language other than Spanish. It is easiest if you stick to a romance language such as French, Italian, or Latin.

Tips

Yorkville High School Computer Science Department on Facebook Yorkville High School Computer Science Department Twitter Feed Yorkville High School Computer Science Department on Instagram