Questions tagged [cs50readability]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

Pset2 - Readability doesn t compile

#include <stdio.h> #include <string.h> #include <ctype.h> #include <math.h> int main (void) { string text = get_string("Text: "); float num_letters,...
user avatar
1 vote
2 answers
43 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&...
user avatar
1 vote
2 answers
124 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 ...
user avatar
0 votes
1 answer
30 views

Pset2 Readability error with "else" statement

readability.c:28:9: error: expected expression else: Shown above is the error I am getting. If anyone would point me to what exactly I am doing wrong. that would be great. Bellow, I will add my ...
user avatar
  • 1
0 votes
1 answer
48 views

Someone familiarized with pset2's Readability. I'm stuck here

I'm not asking for the solution, but I'm stuck in getting the integer of total letters. It doesn't compile but it's close, errors say it's something with isalpha. As it doesn't compile, I can't even ...
user avatar
  • 29
0 votes
2 answers
58 views

Readability counting letters advice

I can't get to compile the readability program second part, that is counting the letters and outputting an integer. I've tried everything. I'm not asking for a solution, but for a hint at what my ...
user avatar
  • 29
0 votes
1 answer
51 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: &...
user avatar
0 votes
1 answer
30 views

Readability pset: Please look at my code?

the program runs quite well but not accurate when check50 is applied #include <stdio.h> #include <math.h> #include <ctype.h> #include <string.h> #include <cs50.h> int ...
user avatar
0 votes
1 answer
160 views

Pset2 Readability. I am starting to do readbility and for some reason the code i wrote this far seems not to be compiling properly

My for loop doesn't seem to be executing. When i run the program it seems for loop is been skipped. Can someone please help me out. #include <stdio.h> #include <cs50.h> #include <string....
user avatar
0 votes
1 answer
160 views

Readability problem week2. Grade 7 example sentence returns grade 8

I have a probelm with the readability problem set. When I run check50, I always get an error on the one sentence grade 7 check. ":( handles single sentence with multiple words expected "Grade 7\n", ...
user avatar
0 votes
1 answer
58 views

pset2 Readability - Wrong L and S

I'm struggling with the final calculation of the grade that results from the wrong value of L and S. Example: "One fish. Two fish. Red fish. Blue fish" counts letters: 29, words: 8, sentences: 3 ...
user avatar
0 votes
0 answers
85 views

PSET Make Readability

i am having some problems trying to execute make readability. Can you help me? Thanks in advance!
user avatar
0 votes
2 answers
65 views

pset2 readability. cannot compile although int is declared and code is complete. could someone please look into?

#include<cs50.h> #include<stdio.h> #include<string.h> #include<ctype.h> #include<math.h> int main (void) { string text=get_string("text:\n"); // to count ...
user avatar
0 votes
1 answer
90 views

Why am I receiving a linker error on my function when it is defined in the file?

I'm in week 2 of cs50 and am currently working on the Readabilty problem. I've written a function named count_letters under main and have declared it at the top of the programm. However when I attempt ...
user avatar
  • 19
0 votes
1 answer
218 views

Having issues creating readability and readability.c directory and file

I am a beginner and have zero knowledge of coding. Right now, I am working on problem set 2, but something is wrong and cant properly create readability.c and readability. This is what I am doing: ...
user avatar
  • 11
0 votes
1 answer
623 views

How to get my code to print the right letter count?

I wrote some code to print out the required number of letters inputted into a given text. For some reason after 9 letters it seems to increment by one and will slightly overshoot the number of letters ...
user avatar
0 votes
1 answer
57 views

no rule to make target pset2

I am currently working on the readability problem in pst2. I followed the 'getting started' instructions to create and open the file in the readability directory, however, I am still getting a "make: *...
user avatar
  • 1
0 votes
1 answer
102 views

Segmentation fault in Readability from pset2

Can someone please help me in understanding the mistake I am doing? I've got the segmentation fault in the terminal window after running the program and providing the text. Here is my code ... and ...
user avatar
0 votes
1 answer
97 views

Readability word count miscalculation

So far I can print the number of letters without issue but when it comes to printing the number of words I cannot get it to accurately calculate. It only returns the value of one which I've predefined....
user avatar
  • 1