Questions tagged [morecomfortable]
The morecomfortable tag has no usage guidance.
19
questions
0
votes
1answer
26 views
Passing arrays into function in tideman
I've created a solution to week 3's tideman problem which is entirely logically correct. Unfortunately, I had to dodge the standard solution by commenting out parts of a function and altering its ...
0
votes
1answer
50 views
PSET 4: scale factor between 0 and 1???
I am currently working on resize (more comfortable).
my code works with check50 for all scale factors greater than and equal to one (meaning to say it will get a perfect on resize less comfortable). ...
0
votes
0answers
45 views
My do-while loop does not work
do
{
number = get_long_long("What is your credit card number? ");
}
while((number < 1000000000000) || (number >= 10000000000000000));
This loop is not accepting inputs. I do not ...
0
votes
1answer
12 views
result black or white filter edges
int superior( float value);
// Detect edges
void edges(int height, int width, RGBTRIPLE image[height][width])
{
float red_x, green_x, blue_x, red_y ,green_y ,blue_y ;
red_x = green_x = blue_x =...
0
votes
2answers
35 views
mario more comfortable; “can't check until a frown turns upside down”
[EDIT: Code removed for Honor Code compliance.]
The code seems to be running perfectly fine and gives the correct output
But every time i try to check it, i get this:
:) mario.c exists
:( mario.c ...
0
votes
1answer
98 views
am on pset2(morecomfortable), the code gives me the desired result but it doesnt pass the check
#include <cs50.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(void)
{
string name = GetString();
for (int i = 0, n = strlen(name); i < n; i++)...
0
votes
0answers
30 views
Skipping More Comfortable psets
People who have completed the psets how often did you skip the more comfortable psets and did you complete them all before submitting the course and if not did you miss out on stuff due to that?
0
votes
2answers
49 views
Help with pset4 filter edge detection function
I have some problems with the edges function. The code compiles fine and all but the result looks like this:
https://imgur.com/a/S2MQLom
The edges of the image and one third of it don't look as ...
0
votes
1answer
77 views
PSET3 Resize (more comfortable), resizing f > 1 correctly, but pixels are different colors. Does not work when f < 1
**Relevant code is after comment: // iterate over infile's scanlines
This code is able to make a new larger bmp with the correct dimensions, but the pixels are not the same color as the original bmp. ...
2
votes
2answers
2k views
PSET1:: Mario More Comfortable :: confused about check50 output
I am sorry if I miss something obvious here, but I am an absolute beginner. I get the following output from check50, which I am confused about:
I will attach my code below, but my output for 2 is:
...
0
votes
1answer
32 views
PSET4: Scale factor between 0 and 1
I am currently working on resize (more comfortable).
my code works with check50 for all scale factors greater than and equal to one (meaning to say it will get a perfect on resize less comfortable). ...
0
votes
2answers
195 views
Similarities (More) sometimes fails but works in most cases
For some reason, for some combinations of strings, I receive an IndexError on the compilation of Operations in application.py. However, for most cases, the table renders properly, and in every case, ...
0
votes
1answer
108 views
Any help with initials(more comfortable) in pset2 is greatly appreciated
Please help me with some advice on completing this problem. I can print out the first letter of someone's first name, but I do not know how to go about printing out the first letter in someone's ...
0
votes
1answer
351 views
pset3/find check50 frown helpers.c compiles. expected exit code 0, not 1
When checking my find program with check50 I get a :( frown at the second check, which is:
helpers.c compiles. expected exit code 0, not 1
The log file gives me additional info:
running clang -...
0
votes
1answer
301 views
Mario check50 timeout
I have a timeout problem when I'm checking the more comfortable version of mario app. When I'm running it by myself it works fine, but check50 returns time out in some cases, for example:" :( rejects ...
0
votes
1answer
53 views
expected output, but not “MB\n”
check50_more report :
:) initials.c exists
:) initials.c compiles
:) outputs "MB" for "Milo Banana"
:) outputs "MB" for "milo banana"
:( outputs "MB" for " milo banana "
\ expected output, but ...
0
votes
1answer
429 views
pset1 more comfortable mario seemingly correct output
int main(void)
{
int original_height, var_height; // original height and variable height
int row_position;
do
{
printf("height: ");
original_height = GetInt(); /...
0
votes
2answers
1k views
any idea how to fix Mario more comfortable problem “expected output”
when I executed i have this error
:) mario.c exists
:) mario.c compiles
:) rejects a height of -1
:) handles a height of 0 correctly
:) handles a height of 1 correctly
*:( handles a height of 2 ...
0
votes
1answer
23 views
PSET2 more comfortable - how do I optimize my correct code
As the title says, I have been able to solve PSET2 More Comfortable version but I feel the way I have written my code is not optimized or is rather 'low level' or 'crude'. I see many solutions that ...