Due Date: October 30, 2023
Students, I have assigned specific
questions from Unit 2 Objects (part A) to each team.
Each team will need to present their
designated questions to me.
First, convene with your team members
and discuss your assigned questions.
Please refer to the materials from
College Board Unit 2 Objects (part A) to guide your discussions.
I recommend watching or re-watching the College
Board Unit 2 Objects (part A) videos for further clarity.
If your team encounters any
challenges or confusion, ask me questions or
please email me the questions,
and I will provide a detailed explanation.
Click here to review your teams
-review your assigned questions.
Click here to see your actual assignments.
Due Date: November 3, 2023
Purpose: Create a program that counts
the number of letters in a phrase.
You will use indexOf and substring methods.
If you do not understand this assignment,
ask Mr. Cusack and/or come to his tutorials.
Overview
• Use Eclipse to program using java
• Code and run the nest for loop program below.
• Your files will be:
• PX_occurrence_lastname.java (java program)
• PX_occurrence_lastname.png (Screen print)
• PX_occurrence_lastname.mp4 (video of you running your program)
• Drop off all 3 files into google classroom.
Instructions:
-find the letters that occur the most.
-tracks all letters in phrase
-sort the letters ascending by number of occurrences
-print all of this.
Once done modify program to read a data files.
You read all the line.
-Print the line with the most occurrence of a letter.
-Print the line with most letters.
-exam all the lines and find the letters that occur the most
-exam all the lines find all the letters and all the occerances.
Data file below:
Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty,
and dedicated to the proposition that all men and women are created equal.
Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure.
We are met on a great battle-field of that war. We have come to dedicate a portion of that field,
as a final resting place for those who here gave their lives that that nation might live.
It is altogether fitting and proper that we should do this.
But, in a larger sense, we can not dedicate -- we can not consecrate -- we can not hallow --
this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract.
The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the
living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced.
It is rather for us to be here dedicated to the great task remaining before us -- that from these honored dead we take increased
devotion to that cause for which they gave the last full measure of devotion -- that we here highly resolve that these dead shall
not have died in vain -- that this nation, under God, shall have a new birth of freedom -- and that government of the people,
by the people, for the people, shall not perish from the earth.
-------- end of data file -----------