Author Topic: Programming Megathread  (Read 143723 times)

... you have a while loop in the program though
Yeah I know. We haven't started any material on loops yet, but I've been reading ahead and decided to add it to my program because why not. The actual problem did not ask for/require any loops.

this should be fun.... suggestions on how to approach?

« Last Edit: April 04, 2016, 06:35:49 PM by Ravencroft· »

All of my computer science classes have been writing loving essays lately, I hate it.

All of my computer science classes have been writing loving essays lately, I hate it.
My final exam for my operating systems class was 3 pages of multiple choice and 7 pages worth of essay writing.

My final exam for my operating systems class was 3 pages of multiple choice and 7 pages worth of essay writing.

I just had to write a paper on a court case, I decided to use Verizon v. FCC.  My essay is basically stating that the FCC doesn't have authority to pass net neutrality style regulations on anything other than common carriers over and over.  Writing about court cases is super difficult for me, my last ethics class was basically all that and it sucked so much.

this should be fun.... suggestions on how to approach?
This shouldn't be too hard :) If you haven't already, research "enums". I think you're already familiar with switches and if/else-if/else statements.

Take it one step at a time. Go through the problem and decide on what input you want from the user; my hint would be to find a way to avoid using strings and to make sure the user can only input correct values. Once you know how to handle input, then decide on the "skeleton" for all of those conditions; the result of one condition block will need to flow into the next, and so on until you get the final result.

When you're happy with the program flow, throw in the math, test, tweak, polish and submit. And always feel free to post code snippets if you're happy/unhappy with your work.


Hello World in fortran 66, 77, 90, and 95
Code: [Select]
        WRITE(4,10)
10     FORMAT(' HELLO WORLD!');
        END

Code: [Select]
     program hello_world
     implicit none
c
     character*32 text
c
     text = 'Hello World'
     write (*,*) text
c
     end

Code: [Select]
program hello_world
     print *, "Hello world!"
end program hello_world

Code: [Select]
write(*,*) 'Hello, world."
end

This shouldn't be too hard :) If you haven't already, research "enums". I think you're already familiar with switches and if/else-if/else statements.

Take it one step at a time. Go through the problem and decide on what input you want from the user; my hint would be to find a way to avoid using strings and to make sure the user can only input correct values. Once you know how to handle input, then decide on the "skeleton" for all of those conditions; the result of one condition block will need to flow into the next, and so on until you get the final result.

When you're happy with the program flow, throw in the math, test, tweak, polish and submit. And always feel free to post code snippets if you're happy/unhappy with your work.


Thanks for the help man. I got it done in 6 hours last night and got an A on it. My previous biggest program was like 60 lines and this one was 440 lines. Crazy how complicated it gets for such a seemingly simple program.

bump

y fractal:


Sierpinski triangle

That's some very cool stuff. Difficult to do?

I'm very hesitant to do any rendering-related programming. It seems like a very tough field to get into.

Right now I'm trying to find and consume as many C++ homework tasks/programming challenges as possible. I really want to get good at the logical side of things because I'd like to be working at a AAA studio at some point in the future. It's tough when your college doesn't offer that kind of support and there's no tutors for programming either.

Visual Basic script

Im writing a game that looks similar to Dwarf Fortress in vbs, lmfao
Its not going well, but i made this dumb decision

So far 824 lines of code. It uses external map files, and has a cfg. Its still not done.
« Last Edit: April 08, 2016, 02:15:24 PM by Clay Hanson »

How do I set up a programming environment on Mac? On Windows I run Windows Powershell to run python code, but I can't figure out how to do it on the terminal on Mac.

How do I set up a programming environment on Mac? On Windows I run Windows Powershell to run python code, but I can't figure out how to do it on the terminal on Mac.

python script.py

How do I set up a programming environment on Mac? On Windows I run Windows Powershell to run python code, but I can't figure out how to do it on the terminal on Mac.
why do you even bother with powershell? just use the command prompt

a while ago i made a simple chemistry-related program (which i can share if anyone wants it. beware, written in crappy c++)

i was thinking of writing a simple console minesweeper program now. what do you think?