Course Home | Class Schedule | Moodle CMS | Git Submission | Perusall | Tutoring

Saint Louis University

Computer Science 1300
Introduction to Object-Oriented Programming

Michael Goldwasser

Spring 2020

Computer Science Department

Homework Assignment 10

Please make sure you adhere to the policies on academic integrity.


  1. (10 points)

    Write a program that allows the user to enter words, continuing until the user first enters a duplicate. Your program should work as showin in the following interaction. (The underlined parts are those parts typed by the user.)

    Start entering words:
    kiwi	
    apple	
    banana	
    apple	
    You already entered apple.
    You listed 3 distinct words.

  2. (10 points)

    Write a program that answers the following question. Starting with the value x = 1, how many times can x be doubled before reaching one million or more?

    Submit both your source code and the answer you computed for the above question.


Michael Goldwasser
CSCI 1300, Spring 2020
Last modified: Sunday, 22 December 2019
Course Home | Class Schedule | Moodle CMS | Git Submission | Perusall | Tutoring