C
C#ā€¢2y ago
Ice

Very very new to coding. - How do i make a celcius to Fahrenheit converter? (Its an assignment)

Hey, i want to make a celcius to fahrenheit converter. This is the code i got, and i promise im being fully serious, i have no idea what the correct code would be as im very very new. Any help would be greatly appreciated.
26 Replies
saltypatron.eth
saltypatron.ethā€¢2y ago
School assignments generally don't get help as we would only be helping you cheat yourself You need to learn how to do the tasks without going to communities and asking them for the solution
Ice
IceOPā€¢2y ago
I have no help from teachers and i have been trying at this for a very long time. I promise this is a last resort as i have no way of getting help otherwise.
saltypatron.eth
saltypatron.ethā€¢2y ago
Thats simply not true. Sorry friend
Ice
IceOPā€¢2y ago
What? What is not true? I am doing programming on distance. The only material i get to work with is online and there is no teacher i can ask for help. I am quite literally UNABLE to recieve help from anyone there. šŸ’€
Angius
Angiusā€¢2y ago
Well, what doesn't work in the code you have there?
Ice
IceOPā€¢2y ago
So what i would like to do is multiply the value of the "celcius" number with 1.8 and add on "32" this is to convert it into fahrenheit
Angius
Angiusā€¢2y ago
Yeah, I see you multiplying the value just fine
Ice
IceOPā€¢2y ago
the code simply seems to not recognise the value of 1.8 at all
Ice
IceOPā€¢2y ago
Angius
Angiusā€¢2y ago
You have two different things named V The const, and the parameter Start by naming each thing in a unique way Makes life a whole lot easier
Ice
IceOPā€¢2y ago
oh ok sir, if you dont mind me asking a dumb question what is the parameter? might be a translation issue as i am swedish
Angius
Angiusā€¢2y ago
Angius
Angiusā€¢2y ago
The things in your method signature
Ice
IceOPā€¢2y ago
ohhh so what would you have me rename it to? @Angius
Angius
Angiusā€¢2y ago
ĀÆ\_(惄)_/ĀÆ ungabunga
Ice
IceOPā€¢2y ago
@Angius i think i found a very dumb way of solving it
Ice
IceOPā€¢2y ago
Ice
IceOPā€¢2y ago
thankyou for helping me tho really appreciate it
Angius
Angiusā€¢2y ago
Yeah, you can just get rid of the constant, it should work just fine
Ice
IceOPā€¢2y ago
yeah, i simply do not yet understand how code really works and what different things do or mean
Angius
Angiusā€¢2y ago
$helloworld is a great learning resource
Ice
IceOPā€¢2y ago
thankyou a lot for the help, i really appreciate it :) @Angius
Angius
Angiusā€¢2y ago
Anytime šŸ‘Œ
ChucklesTheBeard
ChucklesTheBeardā€¢2y ago
something that describes what the thing is compare these:
(int x)

(int speed)
(int x)

(int speed)
Ice
IceOPā€¢2y ago
Fair enough, thankyou for the help! :) The issue is solved so il close the tab now, thankyou a lot tho c: ohhhhh thanks :)
Want results from more Discord servers?
Add your server