question archive Ask the student for their name

Ask the student for their name

Subject:Computer SciencePrice:2.89 Bought3

Ask the student for their name.

Ask the student which formula they're solving for: S for Speed, V for Velocity, or Q to Quit

 

If the student chooses speed, then the code should ask them "which variable they are solving: Speed, distance or time. According to the choice of the student, you need to provide an equation that solves their choice. For example: If the student chooses the time, then you need to ask the student for the speed and distance and use distance/speed to solve for time and apply a an output to the user.

  • The same goes for velocity, if velocity is chosen, then the code should ask "which variable you want to solve: Velocity, displacement, or time. According to the choice of the student, you need to provide an equation that solves their choice. For example: If the student chooses the time, then you need to ask the student for velocity and displacement and calculate displacement/velocity to solve for time and provide an output to the user.
  • Else If the student chooses Q, then your program should thank them and stop.

 

You will be using multiple if/else if/else statements for this code. So start on the outside (speed, velocity, quit) and work your way in.

Option 1

Low Cost Option
Download this past answer in few clicks

2.89 USD

PURCHASE SOLUTION

Option 2

Custom new solution created by our subject matter experts

GET A QUOTE

rated 5 stars

Purchased 3 times

Completion Status 100%