Questions tagged [cs50x2017]

The tag has no usage guidance.

24 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
53 views

CS50 Final Project: Unique URL for each user of my flask app (2 of 2)

I have a pending question here: CS50 Final Project: Unique URL for each user of my flask app (posted two days ago) regarding the implementation of unique URLs. This unanswered question was in fact ...
0
votes
0answers
37 views

Map not appearing

I implemented the configure() function. It worked for a few days but after that the map did not appear. There is only the search textbox which also doesn't work now. When I check the javascript ...
0
votes
1answer
255 views

IDE is not letting me hash the password. Should I change th hashing algorithm as it tells me to?

I implemented the register function for pset7. It went to the register page that I had implemented. I gave the required credentials and clicked Register. But instead of registering with the ...
0
votes
1answer
45 views

Submissions from previous courses

I finished cs50x a few days ago and I would like to get a certificate at edX. However, cs50x2018 has started and my scores from 2017 have disappeared at cs50.me. Is there any way to recover them?
0
votes
1answer
192 views

Can I complete CS50 for a verified certificate after 31 Dec via Edx?

I don't know if I can make the CS50 course by 31 Dec. I planned to get a certificate. What would happen if I upgrade the course to get a verified certificate and then not finish it this year, but some ...
0
votes
1answer
84 views

CS50 Pset3 "Fifteen" Works but doesn't pass Check50

My code for pset3 "fifteen" works perfectly when I play it—board sizes fit, goes in descending order, blank space prints as a 0 etc. etc. but for some reason, it won't pass any check50 checks past "...
0
votes
1answer
265 views

How are script.js and application.py linked?

Question Why am I able to pipe variables from my database into my script.js file? I was able to pipe in "{{place_name}}, {{admin_name1}}, {{postal_code}}". script.js // configure typeahead $("#...
0
votes
0answers
25 views

Enjoying CS50, asked a question on SO (before I knew about this) and some of the comments have me concerned about CS50 now

Check out the comments in this answer to my question: https://stackoverflow.com/a/46768605/8561378 What's going on here? How can the reputation of CS50 be bad, or the "first chapters" definitely be ...
0
votes
1answer
23 views

Can someone help with what is wrong with this code? Seems something is being overwritten

Firstly, I am getting some valgrind errors. Secondly when I debug the code it seems as if trav gets overwritten. As in, if I am reading caterpillar from the dictionary, it seems to start over again a ...
0
votes
0answers
122 views

After update50, my texts shown in text editor are still plain white

I am ready to do pset2! However, after I run update50 and close and re-open terminals, I found that my texts in text editor are all white as below: I found a question asked before here, and I did run ...
0
votes
2answers
53 views

pset4 recover Segmentation fault

my code can compile but when running it will return Segmentation fault. And when I apply "echo $?" to the code, it would return 139. Here is my code. /** * Copies a BMP piece by piece, just because. ...
0
votes
1answer
61 views

CS50 Pset7: Pset7 questions in preparation for final project

I have two questions arising from this problem set which I think can eventually help me with implementing my final project: Atop every page of the stock trading website, whether it be the LOGIN, ...
0
votes
0answers
100 views

Vigenere - is there a simpler logic behind it?

My code for vigenere.c works for check50, but ends up being much longer than caesar.c in the encipher part.I was wondering if I was missing a simple point and have meandered through the logic behind ...
0
votes
1answer
77 views

CS50 Vigenere code gives incorrect when detecting a non-alphabet char for plaintext

My vigenere code works fine when a single char or string is entered, however as soon as it detects a space in plaintext it gives wonky values. Please help! #include <cs50.h> #include <stdio....
0
votes
1answer
223 views

Here's my code for "Greedy" . It works perfectly. Yet I got a score of 69. Could someone please tell me what's wrong with it?

#include<cs50.h> #include<stdio.h> int main () { **float f; do** { **printf("O hai! How much change is owed?\n"); f = get_float();** } **while(f<0); ...
0
votes
1answer
31 views

Everything's working in manual testing, but cs50 says 4x4 not working (pset3 fifteen)

Source code for init: void init(void) { int k=(d*d)-1; for(int row=0; row<d; row++){ for(int col=0; col<d; col++){ board[row][col]=k; if((d%2==0)&&(k==3)){ ...
0
votes
1answer
101 views

Problem with Total (stock price * number of shares) and Number of Shares Value in Portfolio on Index

Just recently, on my implementation of CS50 Finance, I bought 4 shares of Netflix, and then another 2, but instead of showing 6 shares on the Portfolio, it's only showing 2.  The "Total" value for the ...
0
votes
1answer
200 views

No markers are showing and gives me a 500 error

I am slowly progressing, first I couldn't see the map and I fixed that issue but I cannot see articles, locations, etc. Every time I type a place it gives me the error 500. Any help would be ...
0
votes
0answers
46 views

Logic error in "index" CS50x2017 Finance (and also help needed in "buy")

I need some help in index and buy. I'll get back to sell after that again as there are some problems in there still. First, here's a screenshot of my transactions table: https://1drv.ms/i/s!...
0
votes
0answers
2k views

"jinja2.exceptions.UndefinedError: 'grand_total' is undefined" Pset7 Jinja2 and Python error

I'm still working on sell right now. After writing up my code for the route itself and then trying to test it, I found that I had a logic error on index.html and the index route with the USD amount ...
0
votes
1answer
928 views

byte-compiling disabled? Warning when running "pip3 install --user -r requirements.txt" command

When I ran the command "pip3 install --user -r requirements.txt" to download the dependencies for Sentiments in Pset6, it give me these messages as a result: Requirement already satisfied (use --...
0
votes
1answer
166 views

CS50 2017 vigenere.py Issues "TypeError: not all arguments converted during string formatting"

As the title suggests, I have a "TypeError: not all arguments converted during string formatting" error in vigenere.py for Pset6. Here's the code: import cs50 import sys if len(sys.argv) == 1 or ...
0
votes
1answer
178 views

Problem Set 6 CS50 2017 Caesar Issue TypeError: 'str' object does not support item assignment

As the title suggests, when I tried to run my current code for Caesar.py, I got the error message "TypeError: 'str' object does not support item assignment" from the interpreter. My code is like this:...
-1
votes
1answer
901 views

Pset7 CS50x2017 CS50 Finance register route

Could someone please point to where I can see how to check in the register route if a username already exists in the database and also whether the user entered the same password in the confirmation ...