msoe.edu > OP > Practice

OP 2022 Computer Practice Session

Created by Dr. Robert Hasker


Getting Ready for OP!

  1. Review rules and instructions.
  2. Start your computer.
  3. Select your programming environment. IntelliJ is recommended for Java, but BlueJ, Eclipse, and command-line are also available; Microsoft Visual Studio is available for C++; and Anaconda and PyCharm are available for Python.
  4. Write a "HelloWorld" program in your selected environment. MSOE student volunteers will be available to help with this.
  5. The competition problems will require user input. Write a practice program that will prompt the user to enter a piece of data (string or number) and echo the entry back to the console. In Java, you would likely use the Scanner class for this. In C++, you would likely use std::cin. The practice solution must be named Practice.java, practice.cpp, or practice.py (as appropriate).
  6. Competition problems often require you to read data from a text file. If you have time, use your development environment to create a text file with your school name in it, then write a program to prompt the user for the name of a file, open the file, read every line from it, and display those lines on the screen.
  7. In your remaining time, get comfortable, and practice on these: Sample problems from 2003 competition (PDF)

Notes: