All Questions
Tagged with pset2-readability readability
9 questions
0
votes
1
answer
30
views
i cannot see what is wrong but each time i type an input i get the answer in negative numbers aka "before grade 1"
#include <cs50.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
int count_letters(string text);
int count_words(string text);
int ...
0
votes
1
answer
53
views
pset2 readability test not calculating correct grade
I believe I've written the readability.c program correctly to count letters, words, and sentences based on readability prompt and calculate the grade index. But whenever I test the grade index, I'm ...
0
votes
1
answer
27
views
Readability can't compile. Error : expected '(' after 'if'
#include <cs50.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
int main(void)
{
//prompt user for a string
string text = ...
0
votes
1
answer
85
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
1
answer
116
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
1
answer
125
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
1
answer
301
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
1
answer
95
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
1
answer
473
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 ...