Description
Simulate the comparison of a version number to determine if updates are needed.
Requirements
- Declare a variable of type float, version
- Initialize version to 5.1
- Prompt the user to enter a float, user_version.
- If user_version is greater than version, display a message indicating that the user has a newer version. Otherwise, display a message suggesting that the user should get the latest version
Sample Interaction / Output
What version of Android are you using? 5.0 There is a new version of Android. You should upgrade. [RUN IT AGAIN] What version of Android are you using? 6.0 Your version of Android is newer.
LEGEND
PROGRAM OUTPUT
USER ENTRY
CATALOG ID: CPP-COND0001
Print Requirements