Skip to main content
BSC Moodle
Log in
  • Moodle Home
  • MyBSC Links
    Academic Alerts (formerly Starfish) Apogee BSC Email BSC Intranet BSC Website Change Password Colleague Events Records IT Helpdesk IT Help for Online Course Students Library MobilePrint OrgSync TheSIS Time & Attendance Trakstar
  • Moodle FAQs
  1. Home
  2. Courses
  3. Miscellaneous
  4. 20FA_CAC170A
  5. Final Project

20FA_CAC170A-Computer Science Principles

Final Project

Completion requirements
Opened: Tuesday, 10 November 2020, 11:59 PM
Due: Monday, 30 November 2020, 11:59 PM

Your final project for the class will be a programming assignment. You have two options. You may use the idea below, or you can create your own project. If you create your own project, you must include a nested loop, if statements, input, and output. For either option chosen, input and output should be very clear. I must be able to use your program without confusion of what information is needed to be entered. Do not assume that I will know what to do because I can read your code. I want to hit run and have your program direct me in what to do very clearly. This is good usability. 

If you don't want to create your own project, you can complete the following problem:

Create a number guessing game. The computer should pick a random number (you decide...1-20, 1-100), and the user should be prompted to enter a guess. The user gets however many tries you allow. If the user does not guess the number correctly, the game ends; however, the user should be asked if he/she wishes to continue playing. If the user wants to play again, the computer should choose a new random number, and the game should start over. Otherwise, the game will end. You could print out a tally of the user's wins/losses for bonus points. 

At the very first line in your file, you need to write the following:

import random

This imports a module that creates random numbers. 

The next line of your code should be

random.seed()

This allows the random number generator to create a more random number. 

Wherever you want to create a random number for the user to guess...write the following:

num = random.randint(1,20)

The variable num now holds a random number between 1 and 20.


Challenge - 10

◄ Data Analysis Assignment
Student Course Evaluation Fall 2020 ►

Moodle Help

BSC Students - Please contact the BSC Helpdesk at helpdesk@bsc.edu or 205-226-3033, option 2. If you're an online course student, please consult the IT Website for Online Course Students. 

BSC Faculty and Staff - Please visit the Instructional Technology Moodle Course or contact Angela Brooks at adbrooks@bsc.edu, 205-226-3039.

facebooklinkedininstagram

  • Moodle Home
  • MyBSC Links
    Academic Alerts (formerly Starfish) Apogee BSC Email BSC Intranet BSC Website Change Password Colleague Events Records IT Helpdesk IT Help for Online Course Students Library MobilePrint OrgSync TheSIS Time & Attendance Trakstar
  • Moodle FAQs
Built with Open LMS, a Moodle-based product.
Copyright © 2024 Open LMS, All Rights Reserved.

Data retention summary
Get the mobile app
Switch to the recommended theme for your device