Search results for 'My Guitar Shop'
-
CIS115 Week 6 Lab Shopping List in Python
Regular Price: $12.00
Special Price $10.00
CIS115 Week 6 Lab Shopping List in Python
CIS115 Week 6 Lab Overview
Title of Lab: Shopping List in Python
Summary
Create a program that will allow a user to add, list, and delete items from a shopping list.Deliverables
• A source code Python file.
• A Word document containing both source code and the screen print of the program outputs.Lab Steps
The program should be modular. For example, you will want to have an add_item(shopping_list) function, a delete_item(shopping_list) function, a display_list(shopping_list) function, a display_menu() function, and a main().Sample Output:
Welcome to the program!
1. Add an item
2. List all items
3. Delete an item
4. ExitEnter a menu option: 2
1 : bananas
2 : applesEnter a menu option: 1
Please enter the item: pears
pears was added to the shopping listEnter a menu option: 2
1 : bananas
2 : apples
3 : pearsEnter a menu option: 3
Which number to delete: 3
pears was deletedEnter a menu option: 2
1 : bananas
2 : applesEnter a menu option: 4
have a great day!Specifications:
Learn More
• The program should start with 2 items in the shopping list.
• Don't forget to include at the end of the program the code:
o if __name__ == "__main__":
main();
• Use this code for the delete_item(shopping_list) function:
def delete_item(shopping_list):
number=int(input("Which number to delete: "))
if number<1 or number>len(shopping_list):
print("Invalid number\n")
else:
item=shopping_list.pop(number-1)
print(item," was deleted\n")
print() -
CYB/130 Week 3 Python LAB 4.15: Password modifier
Regular Price: $8.00
Special Price $3.00
CYB/130 Week 3 Python LAB 4.15: Password modifier
Many user-created passwords are simple and easy to guess. Write a program that takes a simple password and makes it stronger by replacing characters using the key below, and by appending "q*s" to the end of the input string.
i becomes !
a becomes @
m becomes M
B becomes 8
o becomes .Ex: If the input is:
mypassword
the output is:
Myp@ssw.rdq*sHint: Python strings are immutable, but support string concatenation. Store and build the stronger password in the given password variable.
Learn More -
CYB/130 Week 4 Python LAB 5.24: Even/odd values in a list
Regular Price: $8.00
Special Price $3.00
CYB/130 Week 4 Python LAB 5.24: Even/odd values in a list
Write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither. The input begins with an integer indicating the number of integers that follow.Ex: If the input is:
5
2
4
6
8
10
the output is:
all evenEx: If the input is:
5
1
3
5
7
9
the output is:
all oddEx: If the input is:
5
1
2
3
4
5
the output is:
not even or oddYour program must define and call the following two functions. is_list_even() returns true if all integers in the list are even and false otherwise. is_list_odd() returns true if all integers in the list are odd and false otherwise.
Learn More
def is_list_even(my_list)
def is_list_odd(my_list) -
CIS115 Course Project Guess The Number
Regular Price: $15.00
Special Price $12.00
CIS115 Course Project Guess The Number
You will create a program that will ask the user to guess a number between 1 and 10. The pseudocode is below. Be sure to import random at the beginning of your code and use a comment block explaining what your program does
#Guess the number week 4
#Name:
#Date:
#Random number, loop while true
#ask user for number.
#if number is too high or too low, tell user, if they guessed it break out of loopDisplay "Welcome to my Guess the number program!"
random mynumber
while True
Display "Guess a number between 1 and 10"
Get guess
if (guess<mynumber)
Display "Too low"
else if (guess>mynumber)
Display "Too high"
else if (guess==mynumber)
Display "You guessed it!"When you run your program the result should be something like this:
Welcome to my Guess the number program!Please guess a number between 1 and 10: 5
Too high
Please guess a number between 1 and 10: 4
Too high
Please guess a number between 1 and 10: 3
Too high
Please guess a number between 1 and 10: 2
You guessed it!Be sure to submit your assignment
Learn More