Home Test Prep Replit and Data Structures Create Task

Idea: Map Geo guesser game

My idea is to create a map guessing game to help the new students at Del Norte learn the map and where there classes are located. This will work for the create task because it will use lists to store the map images and an input and output. The algorithm will be checking if the answer is correct or incorrect.

Map of Del Norte

image

Table of Contents

  1. Written Responses
  2. Code Segments
  3. Video Runtime
  4. Link to the Full Code
  5. Initial Brainstorming

Written Responses



Code Segments

  • The first program code segment must show how data have been stored in the list.

  • The second program code segment must show the data in the same list being used, such as creating new data from the existing data or accessing multiple elements in the list, as part of fulfilling the program’s purpose.


  • The first program code segment must be a student-developed procedure
  • The second program code segment must show where your student-developed procedure is being called in your program.


Video Runtime

Link to the runtime:

https://user-images.githubusercontent.com/89234851/155906449-7b570eee-b7a2-473e-adaa-64c8cdb532ba.mp4





Initial Brainstorming

Description: It’s a game about guessing the different locations at Del Norte to help new students adapt to their school and learn the map quicker.

Overview of the Create Task

Instructions for input from one of the following:

  • the user (including user actions that trigger events)
  • Example: user will input their guess for what location they think it is

  • Use of at least one list (or other collection type) to represent a collection of data that is stored and used to manage program complexity and help fulfill the program’s purpose
  • Example: the map image displayed that the user will have to guess will be randomly picked from a list of images (list of image src stored as a string in the python list)

  • At least one procedure that contributes to the program’s intended purpose, where you have defined:
  • the procedure’s name
  • the return type (if necessary)
  • one or more parameters
  • Example: the procedure will be checking whether or not the guess is correct then displaying the next map image in the game (still need to figure out how to make it iterate through the each map image in the list and allowing the user to guess again)

  • An algorithm that includes sequencing, selection, and iteration that is in the body of the selected procedure
  • Example: sequencing: the steps of user inputting their guess then it will display a message based on that guess selection: the random selecting a random image from the list and displaying it iteration: making the game have multiple images and be able to have the user guess multiple times until they make it through all the map images in the list

  • Calls to your student-developed procedure
  • Example: can have a start game button

InfoDb = []

List with dictionary records placed in a list

InfoDb.append({ “FirstName”: “Bria”, “LastName”: “Gilliam”, “DOB”: “September 27”, “Residence”: “Los Angelus”, “Email”: “briagee101@gmail.com”, “FavoriteColors”: [“Blue”, “Sage Green”, “Lilac”] })

InfoDb.append({ “FirstName”: “Allison”, “LastName”: “Huang”, “DOB”: “July 27”, “Residence”: “Irvine”, “Email”: “allisonhuang@gmail.com”, “FavoriteColors”: [“A”, “B”, “C”] })

InfoDb.append({ “FirstName”: “Paige”, “LastName”: “McCartin”, “DOB”: “April 30”, “Residence”: “San Diego”, “Email”: “paigey@gmail.com”, “FavoriteColor”: [“A”, “B”, “C”] })