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.
69 messages · Page 1 of 1 (latest)
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
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
this is probelm number 1
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);
We're not here to help you cheat on exams. See rule 5
It literally shows "EXAM" in the top left of one of your images
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
Yes, that is very possible. There have been many people who do
ok then u can think that way
done
i'm assigning each avg score now
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?
yep I fugured it out but it might not work
also thank u very much
i will try usin ghtat aftewards
No problem, glad i could help
it's not working
Can you show the errors
Thats great
i will try urs
ok ok
Just make sure no extra printf is hiding somewhere, maybe off screen
aight
What line 9 was here, its still printing it in every answer
yep i removed it
Did it work?
nope only the 5th error was fixed
there is tho
On line 36 in the images there isnt?
Ok so line 35
Change it to printf("Average score: %.2f\n", avg);
You are missing the ':'
Also! Remove the extra space vefore the letter grades
Oh okay. Great!
i'm gonna try the last one brb
I dont want to worrie ypu but i have class in like 5 minutes
@flat cosmos Has your question been resolved? If so, type !solved :)
One last thing:
You can scanf("%i %[+-*/%] %i\n", &num1, &operator, &num2); to read the input
thanks!!
@flat cosmos
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
@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.
then why do you only have 1.5 h for it?
Cuz I had other assignments to finish and did this in the very last day during the midnight and resumed it before 1.5hrs
Wait asking for help regarding assignments is considered cheating?
If u can’t believe it I literally sent the same problem last midnight lmao
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.
Yes, it just says “exam” it’s literally just an assignment idk why the website is designed that way