Secondary School Programming Competition (SSPC) Guide

School of Computer Science

University of Windsor

Dr. Ziad Kobti
School of Computer Science
University of Windsor
Office: LT5101 email: kobti@uwindsor.ca
Phone: (519)253-3000 ext 3792

NAMEDOWNLOADVIEWDESCRIPTION
Example 1 – I/O With Integers
Download Java fileView Java fileThis program shows you how to create a java application that will read in from keyboard and output to screen integers. We also show the importance of “order of operations”
Example 2 – I/O With DoublesDownload Java fileView Java fileThis program shows you how to create a java application that will read in from keyboard and output to screen values of type double. Using the math library, we will calcuate the length of a square and area of a circle.
Example 3 – Algorithms With IntegersDownload Java fileView Java fileThis program shows you how to create a java application that will, using input from the user, show how there is many ways to the same answer. Some easier than others.
Example 4 – Loops Using “For”
Download Java fileView Java fileThis program shows you how to create a java application that will use a for statement to create a loop to count from 1 until n, where n is a user inputed integer. The sum of all numbers will be calculated.
Example 5 – Loops Using “While”Download Java fileView Java fileThis program will use the exact same algorithm as Example 4, using a while statement to loop through the numbers.
Example 6 – String I/O and ParsingDownload Java fileView Java fileThis program show you how to create a java application that uses a String Tokenizer to parse a line and then use the information gathered. Try and Catch blocks are introduced.
Example 7 – Strings and LoopsDownload Java fileView Java fileThis program will show you to create a java application that will run many times until the user decided to quit. Input will be given in strings and converted and processed as integers.
AllDownload Java file
Workshop I GuideDownload Workshop I guide (revised 2022)
Open Kattis TutorialOpen Kattis TutorialKattis tutorial and submission help
Scroll to Top