#SOMEBODY PLEASE HELP I ONLY HAVE AN HOUR AND 30MIN FOR THIS

69 messages · Page 1 of 1 (latest)

wary rockBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

#

@flat cosmos

Screenshots!

Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!

flat cosmos
#

this is probelm number 1

honest hornet
#

1st i would store avarage in a float and not print it right away, for thus make sure to write 4.0 and not 4 in the division
2nd change the printf from the current one to printf("Avarage score: %.2f\n", avg);

mighty shale
#

We're not here to help you cheat on exams. See rule 5

flat cosmos
#

yes im aware

#

i just eed the help

#

also this is an assignment

#

not an exam

mighty shale
#

It literally shows "EXAM" in the top left of one of your images

flat cosmos
#

it just says that chill it's an assignment we submit in like 3 days

#

there's no way I'm doing this during an exam lmfao

#

smh

mighty shale
#

Yes, that is very possible. There have been many people who do

flat cosmos
#

ok then u can think that way

flat cosmos
#

i'm assigning each avg score now

honest hornet
#

than just basically do what you did in the 1st half

if (score1 >= avg+10)
grade1 = 'A'
else if (score1>=avg)
grade1='B'
...

And repeat for all students (just copypaste)

#

Or did you already figure somethjng out?

flat cosmos
#

yep I fugured it out but it might not work

#

also thank u very much

#

i will try usin ghtat aftewards

honest hornet
flat cosmos
#

it's not working

honest hornet
#

Can you show the errors

flat cosmos
#

i fixed some

#

but it's still the same

honest hornet
flat cosmos
#

i will try urs

honest hornet
#

Yours is good

flat cosmos
#

ok ok

honest hornet
#

Just make sure no extra printf is hiding somewhere, maybe off screen

flat cosmos
#

aight

honest hornet
#

What line 9 was here, its still printing it in every answer

flat cosmos
#

yep i removed it

honest hornet
#

Did it work?

flat cosmos
#

nope only the 5th error was fixed

honest hornet
#

Huh

#

OMG Put a colon after 'Average score' in the print

flat cosmos
#

there is tho

honest hornet
#

On line 36 in the images there isnt?

flat cosmos
#

I hate this class ong 😭

#

Let me send u the new one

honest hornet
#

Ok so line 35
Change it to printf("Average score: %.2f\n", avg);

#

You are missing the ':'

flat cosmos
#

U're an angel

#

omfg

honest hornet
#

Also! Remove the extra space vefore the letter grades

flat cosmos
#

oh I already submitted

#

but it's all mathced

#

so it's fine

honest hornet
#

Oh okay. Great!

flat cosmos
#

i'm gonna try the last one brb

honest hornet
#

I dont want to worrie ypu but i have class in like 5 minutes

flat cosmos
#

all g

#

thank u for the help

wary rockBOT
#

@flat cosmos Has your question been resolved? If so, type !solved :)

honest hornet
#

One last thing:
You can scanf("%i %[+-*/%] %i\n", &num1, &operator, &num2); to read the input

flat cosmos
#

thanks!!

wary rockBOT
#

@flat cosmos

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity

wanton prairie
#

@honest hornet I appreciate your enthusiasm to help, but please be advised that we have a rule against academic dishonesty here. and that not only includes asking for help with cheating but also helping with cheating.

wanton prairie
flat cosmos
#

Wait asking for help regarding assignments is considered cheating?

#

If u can’t believe it I literally sent the same problem last midnight lmao

wanton prairie
# flat cosmos Wait asking for help regarding assignments is considered cheating?

not necessarily. it depends. asking for people to solve your problem for you would be. also, asking for help on an active exam would be. and I think it's pretty clear why people were worried that that's what's going on. the pictures you sent looked like you were in an active exam. I'm happy to believe you because you sent similar pictures 15 h ago.

flat cosmos
#

Yes, it just says “exam” it’s literally just an assignment idk why the website is designed that way