0

Code Coach - Hovecraft

Hey - I'm confused. The problem says it is going to test for 4 or 5 different variables. So when I click "Run Code" what variable name is the program putting these in? https://code.sololearn.com/c6nc1CaeMtiC/

26th Feb 2020, 4:02 AM
rafe
7 Respuestas
+ 6
You can use/define any variable name. #ruby inp= gets.chomp
26th Feb 2020, 4:31 AM
Lord Krishna
Lord Krishna - avatar
26th Feb 2020, 5:23 AM
John Wells
John Wells - avatar
+ 3
You should remove the first cout statement that prints “Input:” because that will be counted as part of the output and it will be marked wrong because of it
26th Feb 2020, 5:02 AM
Kylie
Kylie - avatar
+ 2
Your main issues were 10 hovercraft are built regardless of the sales and, as Kylie Scott pointed out, you must only output the information requested.
26th Feb 2020, 5:26 AM
John Wells
John Wells - avatar
+ 1
You have to design code that takes input from the console and store that input in your own variable that you define
26th Feb 2020, 4:27 AM
Kylie
Kylie - avatar
+ 1
Yep, I'm an idiot (or tired). I got all the difficult parts correct and missed an easy item. Thanks!
26th Feb 2020, 5:34 AM
rafe
0
in that case, what am i doing wrong with my c++ here? https://code.sololearn.com/c6nc1CaeMtiC/
26th Feb 2020, 4:52 AM
rafe