College makes people cry

I guess what troubles me is looking at the data and putting it into code form.
 
any problem really, if I got to output data for pet store or figure out the gas usage of a fleet of taxis. That story of thing.
The first step is defining the problem. I don't know what you mean by 'output data for a pet store' and I'm not convinced that you know either. Before even talking about outputs, know the purpose of the thing you're trying to develop. What is the problem that this solution is meant to address? How can you solve the problem if you don't actually know what the problem is?

Don't even think about outputs until you have that.

Once you've done that, break it down into steps. Write it in clear English and when you have a good idea of what it is you need to do, then try working out where your input and output data should be going.

Eg:
Problem: Billy Bob wants a cup of tea
Solution: Make Cup of Tea for Billy Bob
Steps:
1. Get things needed
1a. Kettle
1b. Mug
1c. Tea bag
1d. (Optional) Sugar
1e. (Optional) Milk
1f. Water
2. Fill Kettle with water
3. Put Tea bag in Mug
4. Turn Kettle on
5. When Water has boiled, pour into Mug
6. If needs sugar
6a. Add sugar
7. If needs Milk
7a. Add milk
8. If too hot
8a. Wait to cool
9. Else (not too hot)
9a. Drink

The key is to have a good understanding of the problem and what you want to achieve, then breaking your solution down into the smallest steps you can. Don't even think abut coding until you've done these because you'll just waste time trying to work out the problem/algorithm as you go along and will probably end up with a poorer solution.
 
that's simple logic right there fanta. Here is things I'm working on:


Some employees are paid on the basis of an annual salary. Once in a awhile an hourly equivalent can be useful or at least interesting. Write a program that will accept an annual salary from the keyboard and then display it's hourly equivalent based on 2080 working hours in a year.


write a program for a rental car company that prints the amount owed by each customer. the amount owed depends on the miles driven, number days car rented, and type of car rented. Toyotas rent at 26 dollars per day and 18 cent per mile. Oldsombiles rent at 32 per day and 22 cents per mile. Cadillacs rent for 43 per day and 28 cents per mile. The fist 100 miles are free.


Those two is what I am mostly working with.
 
People alway say it's the teachers. lol Well, I'm looking forward ot college. I want to get the fuck out of high school already. It's hard, but that's life. It gets you ready for it.
 
First time I hear of this method :D Maybe you should teach :P
I'd be an awful teacher.

that's simple logic right there fanta. Here is things I'm working on:


Some employees are paid on the basis of an annual salary. Once in a awhile an hourly equivalent can be useful or at least interesting. Write a program that will accept an annual salary from the keyboard and then display it's hourly equivalent based on 2080 working hours in a year.


write a program for a rental car company that prints the amount owed by each customer. the amount owed depends on the miles driven, number days car rented, and type of car rented. Toyotas rent at 26 dollars per day and 18 cent per mile. Oldsombiles rent at 32 per day and 22 cents per mile. Cadillacs rent for 43 per day and 28 cents per mile. The fist 100 miles are free.


Those two is what I am mostly working with.
Well, firstly I can tell these are Math problems. The first step would be to solve them as problems opposed to coding them.

With regards to the first one, this sounds like a simple equation.

X = Annual pay
Y = Hours = 2080
Z = Hourly Pay

X / Y = Z

X / 2080 = Z

X is a number you're inputting from the keyboard, so Google how to input from the keyboard in whatever the language is you're using.

Then write something to divide that by the number of hours (Y, or 2080).

The result should be the hourly pay. Google how to print it to the screen in your language.

That's it.

People alway say it's the teachers. lol Well, I'm looking forward ot college. I want to get the fuck out of high school already. It's hard, but that's life. It gets you ready for it.
High school didn't do a damn thing for me.

I don't know how good the teachers were at your schools but mine were, for the most part, good. I think there is always a limit, though, you do need to put in your own initiative to get what you can out of your education, because they can't just tell you something and have you understand it, it's you're job to understand the content in your own way.
 
yeah most of this stuff is math which I suck at!


Also got a nice letter from my college today. MY FREAKING FED AID RAN OUT! So which means I need to pay some dues yet for this semester. Complete bull shit since I'm only taking two classes.
 
Yeah, I don't really want to be a downer but thinking algorithmically and understanding mathematics are very similar brain processes, so it is difficult to say whether you can grasp one without being able to grasp the other.

Feel free to prove me wrong.
 
Yeah, I don't really want to be a downer but thinking algorithmically and understanding mathematics are very similar brain processes, so it is difficult to say whether you can grasp one without being able to grasp the other.

Feel free to prove me wrong.

I don't think I could.
 
Back
Top