2-3 Assignment_Mc
.docx
keyboard_arrow_up
School
Southern New Hampshire University *
*We aren’t endorsed by this school
Course
140 (20EW5
Subject
Computer Science
Date
Apr 3, 2024
Type
docx
Pages
3
Uploaded by SargentOkapi3461
1
6-3 Module Six Project Two
I developed a text based game which requires the player to state their name and greets the
player. Upon the greeting the player is given instructions on how the game will be played with
what commands the player will be using such as the cardinal directions to move about the 9
rooms. Other interactions within the game will include prompts with not just how to move within
the game but also what would the player like to do within the game. Questions such as “What
would you like to do? This is followed by a set of options for the player; collect, move, or quit.
With each option the player can either move within rooms, pick up items or leave the game. Any
command or inputs that are not valid input are met with “Invalid input please try again.”
2
Within the programming I developed functions that tell the program how the information
is organized and reusable to perform needed tasks such as in what is your name statement. I
created dictionaries to hold the room’s parameters and items. I applied loops with else statements
to denote if all else fails to let the player know what to do or they can go on within the game. I
did function calling be defining a function first with how to move from room to room and how to
collect items. I implement heavily on decision branching within this game to help navigate
through the loops and what the parameters of inputs with if, elif and else statements. Throughout the building of the game, I debugged as much as possible to make sure all
structures were correct or to help pick out problems. During this step I was able to place in the
what ifs of invalid inputs. There are comments within the program for anyone that would like to
adjust or upgrade the game. Questions:
What should happen if the player enters a command move between rooms?
The program validates information to see if command is a valid command and loops through
options to pick what is being printing for player to choose.
What should happen if the player enters a valid command to get an item from the room?
Command for picking up items is collected,
program validates command and appends list to add
item to collected list for user to see all items collected so far.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
SUBJECT: OBJECT ORIENTED PROGRAMMING
INSTRUCTION: PLAN AND CREATE AN OBJECT-ORIENTED INFORMATION
SYSTEM FOR A BUSINESS OR ORGANIZATION
BUSINESS/ORGANIZATION CHOSEN: GROCERY STORE
NOTE: IT MUST BE IN GUI FORM (IT MEANS JFRAME IS NEEDED)
Group
Business/Organization
Groups 1 & 6
Hospital
Groups 2 & 7
Restaurant/Fast Food Chain
Groups 3 & 8
Department/Grocery Store
Groups 4 & 9
Government Agency
Groups 5 & 10 School
arrow_forward
Select the correct answer from each drop- down menu.
Control structures are used while performing everyday tasks.
If you had to make a choice between studies and games during a holiday, you would use the sequence X control structure. If you
had to fill your name and address on ten assignment books, you would use the selection X control structure.
arrow_forward
Project Proposal – : Develop an idea and put it down on paper (typed). Your proposal should include a title, a description of your game: name PING PONG and
a description of your user interface. You can use a drawing if it helps you.
arrow_forward
DIFFICULTY LEVEL
THE SCOREBOARD IS LOCATED ON THE UPPER-LEFT SIDE OF THE GAME'S INTERFACE AND FOR EVERY OPPONENT DESTROYED THE SCORE INCREASES AND RAMPS UP IN DIFFICULTY.
Explanation:_____________
arrow_forward
A- Build and design a GUI (Graphical User Interface) obtaining the
programming that can do the following:
i) Plot an equation consist of variables X and Y.
ii) Give the product of any two numbers.
arrow_forward
Programming Exercise #2: Grade
Create an application that calculates and displays the percentage of students receiving a grade of P (for Passed)
and the percentage of students receiving a grade of F (for Failed). Before creating your Planning Chart, consider
what information the user will need to enter (if Grade >= 75, PASSED, FAILED).
a. Prepare a Planning Chart for the application.
b. Draw a sketch of an appropriate interface. Be sure to follow the GUI design guidelines covered in the
chapter. The guidelines are summarized in Figure 2-20 (found on page 66). (If you want to include an
image in the interface, you can either use your own image file or download an image file from
openclipart.org. When downloading from openclipart.org, be sure to use the SMALL IMAGE (.PNG)
button.)
c. Create a Windows Forms application. Use the following names for the project and solution,
respectively: FamilyName_Grade Project and FamiltyName_Grade Solution. Save the application in the…
arrow_forward
Use GUI to
Design a board game with rules you decided (ex: you can inspire from "sorry")
2 players
arrow_forward
During development, do developers worry about anything in particular?
arrow_forward
Access controls are built on three key principles. List and briefly define them.
arrow_forward
PROBLEM DESCRIPTION
The Tax Processing program needs to be modernized. A GUI (Graphical User Interface) is now
required. Radio buttons and text boxes are needed for input and output purposes. A button will be
used for processing data.
You are required to create a webpage to implement the interface required using the JavaScript
programming language. The illustration below displays the format of the GUI screen yequired.
Tax Processing
Earnings: S
Pensioner:
Yes O No
Investments in Renewable Energy: S
Donations to Charities: S
Process
Tax Amount Owed: $
Note: Choose a background color and a text color of your preference.
arrow_forward
Stadium Seating Revenue Calculation Tool There are three seating categories at a stadium. Class A seats cost $20, Class B seats cost $15, and Class C seats cost $10. Write a program (a GUI program) that asks how many tickets for each class of seats were sold, then displays the amount of income generated from ticket sales. The program must be done in Tkinter
arrow_forward
Scenario
You work for a small company that creates text-based games. You have been asked to pitch an idea to your team for a text-based adventure game with a theme and environment of your choice. Your game must include different rooms, items, and a villain. The basic gameplay will require the player to move between different rooms to gather all of the items. A player wins the game by collecting all the items before encountering the villain. The player will have two options for commands in the game: moving to a different room, and getting an item from the room they are in. Movement between rooms happens in four simple directions: North, South, East, and West.
You must include the designs for your game as a part of your idea pitch. Specifically, you have been asked to provide a map that displays the different rooms and items. You have also been asked to use pseudocode or flowcharts to design code for moving between rooms and getting items. If your pitch gets approved, these designs will…
arrow_forward
Scenario
You work for a small company that creates text-based games. You have been asked to pitch an idea to your team for a text-based adventure game with a theme and environment of your choice. Your game must include different rooms, items, and a villain. The basic gameplay will require the player to move between different rooms to gather all of the items. A player wins the game by collecting all the items before encountering the villain. The player will have two options for commands in the game: moving to a different room, and getting an item from the room they are in. Movement between rooms happens in four simple directions: North, South, East, and West.
You must include the designs for your game as a part of your idea pitch. Specifically, you have been asked to provide a map that displays the different rooms and items. You have also been asked to use pseudocode or flowcharts to design code for moving between rooms and getting items. If your pitch gets approved, these designs will…
arrow_forward
Scenario
You work for a small company that creates text-based games. You have been asked to pitch an idea to your team for a text-based adventure game with a theme and environment of your choice. Your game must include different rooms, items, and a villain. The basic gameplay will require the player to move between different rooms to gather all of the items. A player wins the game by collecting all the items before encountering the villain. The player will have two options for commands in the game: moving to a different room, and getting an item from the room they are in. Movement between rooms happens in four simple directions: North, South, East, and West.
Directions
In this project, you will break the problem down into a set of requirements for your game program. Then you will design your game by creating a storyboard and pseudocode or flowcharts. Remember, in Project One, you are only designing the game. You will actually develop the code for your game in Project Two.
Review the…
arrow_forward
Any object with an unknown description should have its item id listed.
arrow_forward
In Visual Studio, how do you go about changing over to a new form?
arrow_forward
How do designers prioritize elements in a GUI to ensure a user-friendly experience?
arrow_forward
How do designers address cognitive load when presenting information within a GUI?
arrow_forward
LabVIEW Activity: GPA Calculator
Create a VI that allows you to enter Course grade (on the 4 point scale) and the number of credits and calculate your semester GPA. Enter your grade by a drop down letter grade and have the block diagram convert it to a numeric value.
arrow_forward
Help me to draw class diagram for this situation??
arrow_forward
Weight Converter GUI with Python and make it classes
from tkinter import *
# Create a GUI window
window = Tk()
# Function to convert weight
# given in kg to grams, pounds
# and ounces
def from_kg():
# convert kg to gram
gram = float(e2_value.get())*1000
# convert kg to pound
pound = float(e2_value.get())*2.20462
# convert kg to ounce
ounce = float(e2_value.get())*35.274
# Enters the converted weight to
# the text widget
t1.delete("1.0", END)
t1.insert(END,gram)
t2.delete("1.0", END)
t2.insert(END,pound)
t3.delete("1.0", END)
t3.insert(END,ounce)
# Create the Label widgets
e1 = Label(window, text = "Enter the weight in Kg")
e2_value = StringVar()
e2 = Entry(window, textvariable = e2_value)
e3 = Label(window, text = 'Gram')
e4 = Label(window, text = 'Pounds')
e5 = Label(window, text = 'Ounce')
# Create the Text Widgets
t1 = Text(window, height = 1, width = 20)
t2 = Text(window, height =…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Related Questions
- SUBJECT: OBJECT ORIENTED PROGRAMMING INSTRUCTION: PLAN AND CREATE AN OBJECT-ORIENTED INFORMATION SYSTEM FOR A BUSINESS OR ORGANIZATION BUSINESS/ORGANIZATION CHOSEN: GROCERY STORE NOTE: IT MUST BE IN GUI FORM (IT MEANS JFRAME IS NEEDED) Group Business/Organization Groups 1 & 6 Hospital Groups 2 & 7 Restaurant/Fast Food Chain Groups 3 & 8 Department/Grocery Store Groups 4 & 9 Government Agency Groups 5 & 10 Schoolarrow_forwardSelect the correct answer from each drop- down menu. Control structures are used while performing everyday tasks. If you had to make a choice between studies and games during a holiday, you would use the sequence X control structure. If you had to fill your name and address on ten assignment books, you would use the selection X control structure.arrow_forwardProject Proposal – : Develop an idea and put it down on paper (typed). Your proposal should include a title, a description of your game: name PING PONG and a description of your user interface. You can use a drawing if it helps you.arrow_forward
- DIFFICULTY LEVEL THE SCOREBOARD IS LOCATED ON THE UPPER-LEFT SIDE OF THE GAME'S INTERFACE AND FOR EVERY OPPONENT DESTROYED THE SCORE INCREASES AND RAMPS UP IN DIFFICULTY. Explanation:_____________arrow_forwardA- Build and design a GUI (Graphical User Interface) obtaining the programming that can do the following: i) Plot an equation consist of variables X and Y. ii) Give the product of any two numbers.arrow_forwardProgramming Exercise #2: Grade Create an application that calculates and displays the percentage of students receiving a grade of P (for Passed) and the percentage of students receiving a grade of F (for Failed). Before creating your Planning Chart, consider what information the user will need to enter (if Grade >= 75, PASSED, FAILED). a. Prepare a Planning Chart for the application. b. Draw a sketch of an appropriate interface. Be sure to follow the GUI design guidelines covered in the chapter. The guidelines are summarized in Figure 2-20 (found on page 66). (If you want to include an image in the interface, you can either use your own image file or download an image file from openclipart.org. When downloading from openclipart.org, be sure to use the SMALL IMAGE (.PNG) button.) c. Create a Windows Forms application. Use the following names for the project and solution, respectively: FamilyName_Grade Project and FamiltyName_Grade Solution. Save the application in the…arrow_forward
- PROBLEM DESCRIPTION The Tax Processing program needs to be modernized. A GUI (Graphical User Interface) is now required. Radio buttons and text boxes are needed for input and output purposes. A button will be used for processing data. You are required to create a webpage to implement the interface required using the JavaScript programming language. The illustration below displays the format of the GUI screen yequired. Tax Processing Earnings: S Pensioner: Yes O No Investments in Renewable Energy: S Donations to Charities: S Process Tax Amount Owed: $ Note: Choose a background color and a text color of your preference.arrow_forwardStadium Seating Revenue Calculation Tool There are three seating categories at a stadium. Class A seats cost $20, Class B seats cost $15, and Class C seats cost $10. Write a program (a GUI program) that asks how many tickets for each class of seats were sold, then displays the amount of income generated from ticket sales. The program must be done in Tkinterarrow_forwardScenario You work for a small company that creates text-based games. You have been asked to pitch an idea to your team for a text-based adventure game with a theme and environment of your choice. Your game must include different rooms, items, and a villain. The basic gameplay will require the player to move between different rooms to gather all of the items. A player wins the game by collecting all the items before encountering the villain. The player will have two options for commands in the game: moving to a different room, and getting an item from the room they are in. Movement between rooms happens in four simple directions: North, South, East, and West. You must include the designs for your game as a part of your idea pitch. Specifically, you have been asked to provide a map that displays the different rooms and items. You have also been asked to use pseudocode or flowcharts to design code for moving between rooms and getting items. If your pitch gets approved, these designs will…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage