This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 15-121: Introduction to Data StructuresFall 2009Exercise08/28/2009Arrays PracticeDue: none Relevant Reading:•Chapters 1-5 of the online text by Eck. •Basics in Java notes linked from course calendar.•Readings about Java basics in other references you may have (eg. the Pohl download)Assignment: (worth 0 exercise points - this is for practice only) 1)Write a program CoursePercentages which allows the user to enter a list of course percentages (0 - 100). They can be entered on one line or multiple lines. Your program should handle as many scores as the user wishes to enter. After all grades have been entered, display all of the grades which were each of the letter grades. For instance: Sample Input: 100 90 80 81 78 73 95 55 Sample Output: A 100 90 95 B 80 81 C 78 73 D F 55 2)Write a program Movies.java Ask the user to type in the name of 10 movies. Afterwards, the program should display the movies, with every second movie all capitalized. EG:Gone With The Wind...
View Full Document
- Spring '09
- Data Structures, English-language films, Subroutine