Categorieën: Alle - variables - selection - functions

door Jonathan Spataro 2 jaren geleden

121

Comp SCi CPT Part 2

The document outlines a structured approach to coding, focusing on various units that build the foundation for an adventure game. The initial unit covers the basics of input, processing, and output, including initializing variables and creating word outputs for game elements like questions and storyline.

Comp SCi
CPT Part 2

Comp SCi CPT Part 2

Unit 3: Repetition and Loops

If a user inputs an incorrect input, a do while loop will let user know the input is incorrect
Error code and error checking will be used throughout the entire code when coming to stumping during the creation of Code.
Using random number utility for certain questions throughout the adventure game

Unit 2: Variables and Selection

Complex if else statements will also be used if the user is to complete a question wrong and must be brought to a side mission.
simple If/else statements will be responsible for majority of the Codes process of excepting or denying answers as well as letting the user proceed through the game
Unit 2 is responsible for any Pseudocode apart of my Cpt. The pseudocode keeps my code organized

Unit 1: Input, Process, Output

Creating Word outputs including questions from the riddler and Backstory of the adventure game.
Responsible for initializing variables
Responsible for the original installation of the scanner as apart of the code

Unit 5:Strings, Arrays and GUI

Searching and sorting ray can also help me organize my functions, loops and arrays.
Using built in Java arrays to make code easier and more to my level.

Unit 4:Functions & Methods

I will use the "using functions" lesson to properly apply all my functions into my Code seamlessly and properly
Built-in functions like the math function will be used as presets throughout to code to make the coding process for my game efficient