­
C

2nd Attempt : CS50 PSet2_Initializing

Here's how I did on my second attempt with the help of my "secret personal TA". I approached the problem with if, else if instead of argv[  ][  ]. The picture showed how it check out -- still with a lot of errors. Then I just simply added printf("\n"), and everything just checked out. My pseudo-code is the following: get user's input for...

Continue Reading

argc

Need Help! HARVARD'S CS50 PROBLEM SET 2: Crypto_ Initializing

After Harvard's CS50 Week 2 Where to find problem set 2?http://cdn.cs50.net/2015/fall/psets/2/pset2/pset2.html What is the problem "Initializing"? http://cdn.cs50.net/2015/fall/psets/2/pset2/pset2.html#initializing What is my result?What is my the check up result for my first attempt? I am not sure what does "not output of "\n"(new line)" means. I tried Milo Banana, milo banana, Robert Thomas Bowden, ROB, Robert thomas Bowden and here is how it turned out:...

Continue Reading

C

HARVARD'S CS50 PROBLEM SET 1: C _Time For Change (Greedy)

After CS50 Week 1 Where to find problem set 1:C? http://cdn.cs50.net/2015/fall/psets/1/pset1/pset1.html What is the problem "Time For Change"?http://cdn.cs50.net/2015/fall/psets/1/pset1/pset1.html#time_for_change Get user's input in dollars, and make sure it's a valid positive number Always use the largest coin possible Keep track of coin used Print the final amount of coin  What is my pseudo-code? do     get user's input while (input is not a positive number)...

Continue Reading

CS50

Need Help! Harvard's CS50 Problem Set 1: C _Itsa Mario

After CS50 Week 1 Wednesday & Friday Where to find problem set 1:C? http://cdn.cs50.net/2015/fall/psets/1/pset1/pset1.html What is the problem "Itsa Mario"? http://cdn.cs50.net/2015/fall/psets/1/pset1/pset1.html#itsa_mario What's my result? How did it check out? The code doesn't seem like to be 100% checked out. But it worked when I manually put these numbers in there. I am wondering what I did wrong in my code. Please comment below...

Continue Reading

CS50

Harvard's CS50 Problem Set 1: C _Smart Water

After CS50 Week 1 Wednesday & Friday Where to find problem set 1:C? http://cdn.cs50.net/2015/fall/psets/1/pset1/pset1.html What is the problem "Smart Water"? http://cdn.cs50.net/2015/fall/psets/1/pset1/pset1.html#smart_water What's my result? How did it checks out? What did I learn? printf ("Minutes: %i\n",i); printf ("Bottles: %d\n", x); Found out that the red highlighted i is not there to match the yellow i. %i means a variable integer, i means a defined...

Continue Reading

Popular Posts

Like us on Facebook

Flickr Images

Subscribe