Question: LAB ASSIGNMENT #7 DUE WEDNESDAY Python LAB Assignment 7 - Casino with Methods and a Class Points 20 Submitting a file upload File Types txt
LAB ASSIGNMENT #7 DUE WEDNESDAY Python






LAB Assignment 7 - Casino with Methods and a Class Points 20 Submitting a file upload File Types txt Due Wednesday by 2pm Available May 9 at 2pm - Jun 6 at 2pm 28 days Assignment 7 - Casino with Methods and a Class Make sure you have read and understood . both modules A and B this week, and * module 2R - Lab Homework Requirements before submitting this assignment. Hand in only one program, please. For this assignment you will have to investigate the use of the Python random library's random generator function, random.randrange(stop). randrange() produces a random integer in the range of 0 to stop 1. You will need to import random at the top of your program. You can find this in the text or using the online resources given in the lectures. A Slot Machine Simulation Understand the Application What it Looks Like to the User The program will loop, asking the user for a bet amount from 0 to 50 (assume dollars, you can use ints). If the user types a O that means she wants to quit. Otherwise, accept the amount as their bet and simulate a slot machine pull. Your program will print out a line that looks like a slot machine result containing three strings. Some examples are: B BAR space, space BAR BAR, or cherries cherries BAR herr herI
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
