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:
variables 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 possible outcome:
st number is bigger than nd number create a way to let user know if this is true eg WirteHostst number is smaller than nd number create a way to let user know if this is true eg WirteHostst number equals to nd number create a way to let user know if this is true eg WirteHost
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
