# Torren Walker

@Wo1ves1n0 (5) • West Herts College
I need help with arrays! :/
posted to Ask by Wo1ves1n0

@SPQR Yeah, But the user can input the amount of numbers for the list then enter the numbers for each number in the list then I've done the total. Just need to get it to do the highest and lowest number in the list.

I need help with arrays! :/
posted to Ask by Wo1ves1n0

@SPQR Why?

I need help with arrays! :/
posted to Ask by Wo1ves1n0

@ArchieMaclean Not really. But thank you! However, I'm trying to look for a code where I can find the lowest and the highest integer that the user has inserted in the array themselves, not the ones that only you create. If that makes sense.

I need help with arrays! :/
posted to Ask by Wo1ves1n0
I need help with arrays! :/
posted to Ask by Wo1ves1n0

@themaka /
Computational Thinking
Assigment 3 template
"Torren Walker"
/

#include <iostream>
using namespace std; // cout instead of std::

int main() //Main body for the code
{

int sum=0; //Sum for where to start 0 = starting point
int length = 0; //integer used to create the length of the array
cout << "How many numbers are you checking for?: ";
cin >> length; // the amount of numbers for the list

int MyList[length]; //Array is created using the value of length

for (int i=0; i<length; i++) //For loop to enter values into the array
{
cout << "Enter number " << i+1 << ": ";
cin >> MyList[i];
}

``cout << endl << "Printing Array"<< endl << "--------------" << endl; // text``

for (int i=0; i<length; i++) //For loop to enter values into the array
{
sum+=MyList[i]; // Adds the list that the user as given the integer for
cout << MyList[i] << endl; // puts the list together of what the user has entered.
}
cout << "--------------" << endl << "Adding your list of numbers" << endl;//Caption
cout << "Total: " << sum << endl; // the total for the list added

``return 0;``

}

I need help with a small game! C++
posted to Ask by Wo1ves1n0

@SPQR Ok will do that right now

I need help with a small game! C++
posted to Ask by Wo1ves1n0

@SPQR So this is my code at the moment
#include <iostream>
using namespace std;

int main() { //Start of the game
////////////////////////////////////////////////////////////////////////////////////////////
string name; //Players name
int go; //Telling the player to start the game
////////////////////////////////////////////////////////////////////////////////////////////
cout << "'What are you doing here? You're not suppose to be here. Oh no, this must be a mistake. Well I guess we are going to have to help you escape.'" << endl; //(Jack speaking) start of the story.

cout << " " << endl; // Space
////////////////////////////////////////////////////////////////////////////////////////////

cout << "'Sorry, Names Jack. I've been here for almost a decade, learnt parts of the system that has came to curruption. It has taken over half the system. its dangerous. I need to know things about you. Tell me your name?'" << endl; //Part 1

cout << " " << endl; //Space
////////////////////////////////////////////////////////////////////////////////////////////
cout << "Enter Your Name: " << endl; //User asked to Enter name
cin >> name; //Input name
cout << " " << endl; //Space

////////////////////////////////////////////////////////////////////////////////////////////
cout << "'That's your name? " << name << "? " << "Ok no time to be scarcastic. But that name sounds dramatic as hell! Anyways. Nice to meet you. First things first we need to follow the circut to the main port. Its going to be dangrous but its the only way. Let's go " << name << "!'" << endl; //Part 1.2
cout << " " << endl;//Space

cout << "Type 'go' to walk towards the main port to start your escape!" << endl; //Telling the users to start the walk
cout << " " << endl;//Space
cin >> go;//Input for the user to start walking.
cout << " " << endl;//Space
cout << "You and jack start to take a walk through the circut. Its cold, dark and closure. You look in the far distance and see a smoky figure, as your mind wonders curiosity if that 'thing' is real? You have a choice, would you like to go and talk to the black figure? or bypass it? " << endl; //First decision. Part 1.3
////////////////////////////////////////////////////////////////////////////////////////////

}//End of the story.

Shall I continue that under the brackets? But this means he can continue and if he doesn't talk to the black figure how do I make 2 sperate stroys to keep it simple.