Skip to content

JoshEvans-Weber/CS1030-Python

Repository files navigation

CS1030 Python

Python modules for CS1030

Psuedo Code for video 1

age = input if age >= 18 then output drivers license if age < 18 and age >= 15 then output learners permit else output not able to drive yet

Demonstrate what you have learned by coding two of the challenges below. Submit the URL of your repl.it.

Questionnaire

Create a series of questions to get to know a person. Allow the user to enter several items (ex: name, hobbies, favorites) Then create a story using the items the user entered. Sample run...

Enter name: Kim
Enter Subjective Prounoun: she
Enter Objective Prounoun: her
What is your favorite ice-cream flavor: Rocky Road
What is your favorite hobby: rock climbing  
This is Kim, she likes rock climbing and her favorite flavor of ice-cream
is Rocky Road.  

Soccer Team Calculator

Create a soccer team calculator. The program will calculate the number of teams that can be created from the kids that show up for the tryouts.

The project will look similar to:

How many players show up to the tryout: 38
How many players will play on the field: 11
You can make 3 teams each team will have about 12.6 players

Domain

Write a program to determine the Domain of the website. Allow the user to enter the URL of the website. The program will then report the domain in upper case letters.

The domain is the last three letters, usually in the form of com, net, gov, mil, org, and edu. We will simplify this program and stick to only testing those particular 3 letter domains.

The project will look similar to:

Enter the URL: http://www.google.com
The domain is COM

Party Planner

The Treehouse museumLinks to an external site. has a party room to allow guests to celebrate their birthdays. There are different costs depending on the type of party and if they are a member of the Treehouse. The costs are shown below.

Party Type Cost:        | Members Cost | non-members
Playtime Party:         | 125          | 160
Deluxe Storybook Party: | 275          | 350

Follow along with the videos to write a program to calculate the cost. Allow the user to choose what type of party they would like and if they are a member. Then display the cost of the party:

Welcome to the Treehouse museum
What type of party Package would you like:
1. Playtime Party
2. Deluxe Storybook Party
Enter Choice: 2
Are you a member of the Treehouse Museum
1. Yes
2. No
Enter Choice: 1
Your cost would be $275

Demonstrate what you have learned by coding two of the programming challenges below. Submit the URL of your repl.it.

Name Pyramid

Create a name pyramid. Allow the user to enter their name. The program will then print 1 character on the first line, and two characters on the second line, until the entire name has been printed.

Enter your name: Stephanie
S
St
Ste
Step
Steph
Stepha
Stephan
Stephani
Stephanie

Guidance Counselor

Bonneville High School has four guidance counselors to help meet the needs of the students. A student's counselor is based on the first letter of their last name as shown in the table below. Write the school a program that will allow the student to enter their last name, and the program will report their counselor.

Counselor      |Letters
Marci Thomas   |A-D
Robert Hancock |E-K
John Caine     |L-R
Lacy Peterson  |S-Z

Sample Run

Boneville High School Counselor
Enter your last name: Larson
Your counselor is John Caine

Mini Golf

Write a program to keep score of your hits in a mini-golf game. The program allows you to enter the number of holes in the course and ask how many hits for each hole. The program will report how many total hits you had.

Sample Run

How many holes did you play: 9
Enter hits for hole 1: 5
Enter hits for hole 2: 6
Enter hits for hole 3: 2
Enter hits for hole 4: 1
Enter hits for hole 5: 5
Enter hits for hole 6: 4
Enter hits for hole 7: 2
Enter hits for hole 8: 3
Enter hits for hole 9: 4
Total Hits: 32

About

Python modules for CS1030

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages