Question: While we have never actually done a script comparing numbers, this is not a difficult problem to tackle. To guide you to the right track,

While we have never actually done a script comparing numbers, this is not a difficult problem to tackle. To guide you to the right track, the following is a list of the components that you should have in your script. However, this is just one way to solve this problem, so feel free to use your own idea. Make sure you test your script before submitting it for grading.
Components:
2 variables (1 for each number) to request user to provide the numbers - should define the data type of the variables as Integer or Decimal,
If ElseIf Else construct - we are looking at 3 possible outcome:
1st number is bigger than 2nd number - create a way to let user know if this is true (e.g. Wirte-Host)1st number is smaller than 2nd number- create a way to let user know if this is true (e.g. Wirte-Host)1st number equals to 2nd number - create a way to let user know if this is true (e.g. Wirte-Host)
Comparison Operators: greater than, less than, equals to... to determine the outcome

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!