Questions tagged [pset2-readability]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
15 views

When I try to execute the file is says “bash: ./: Is a directory”

When I try to execute the file, for example "./ readability" is says "bash: ./: Is a directory". It just started doing this the past few days. I even tried running files that ...
0
votes
1answer
29 views

readability pset2 multi error

I replaced semicolon with a coma as sugested erlier. I compile the code but when I enter the text to receive Grade 3 nothing happens, again anny sugestion. Thanks. #include <cs50.h> #include <...
0
votes
2answers
38 views

CS50 Readability compile error

Im trying to compile the program but keep getting this error message below: Can someone tell me what this means please. The carat arrow is supposed to be pointing at "char" and "ch&...
1
vote
2answers
87 views

pset2 - readability - grades slightly off

I have a problem that I have not been able to diagnose on my own or by perusing this stack overflow. The the tests are here. All of the index values are correct except for the grade seven sentence ...
0
votes
1answer
54 views

Pset2 Readability Not Working

I need help in executing the program here. This is my program and when I execute it, it asks me for a text. I copy-pasted the first HOW TO TEST YOUR CODE "One fish. Two fish. Red fish. Blue fish.&...
0
votes
1answer
53 views

Pset2 Readability: Counting words and sentences

whenever I try to run my readability code I always get that I have no words or sentences. Additionally, whenever I run my code the number of letters seems to include spaces eventhough I am using the ...
0
votes
1answer
22 views

Sentence count stuck at 2 in readability

#include <stdio.h> #include <cs50.h> #include <ctype.h> #include <string.h> int main(void) { //Retrieve string of text from user string s = get_string("Text: &...
0
votes
1answer
22 views

pset2 readability counting with global variables

I have been having some trouble forming a proper global function for CS50 pset2 readability. The code has no error after compiling but the index will not count. I'm not sure if the global counter ...
0
votes
1answer
104 views

PSET2 Readability - tests no passing

I am not sure what I am doing wrong. #include <stdio.h> #include <cs50.h> #include <ctype.h> #include <string.h> #include <math.h> int main(void) { //Create integers ...
0
votes
1answer
65 views

Pset2 Coleman-Lau Index Always Prints -15

I'm struggling with PSet 2 Readability. I don't want to cheat the answers because I am genuinely trying to learn how to think better and improve my logic. I so far have been able to get the letter ...
0
votes
1answer
253 views

Pset2 Readability test fail “complex single sentence” Grade 9 instead of Grade 8

When using check50 or inputting the provided texts, my program passes all but one test; the "complex single sentence" test returns a Grade 9 instead of Grade 8 (Coleman-Liau index returns 8.785455 and ...
0
votes
1answer
13 views

I have tried and looked through my code but every output it prints is Before Grade 1. And it is compiling without errors

#include <cs50.h> #include <stdio.h> #include <string.h> #include <math.h> int main(void) { int l_count = 0; int w_count = 1; int s_count = 0; int L = ((float)...