Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help with functions. Return value is coming out wrong and 'getDoublePass' ends after 'TEST #1'. OUTPUT SUPPOSE TO BE: MY OUTPUT: MY CODE: Test
Need help with functions. Return value is coming out wrong and 'getDoublePass' ends after 'TEST #1'.
OUTPUT SUPPOSE TO BE:
MY OUTPUT:
MY CODE:
Test getIntPass Please enter -1 0 42 TEST #1: -1 0 42 ERROR: Enter a positive value: ERROR: Enter a positive value: PASS! TEST #2: -1 0 42 ERROR: Enter a positive value: ERROR: Enter a positive value: PASS! TEST #3: -1 0 42 ERROR: Enter a positive value: ERROR: Enter a positive value: PASS! getDoublePass Please enter -1 0 85.2 TEST #1: -1 0 85.2 ERROR: Enter a positive value: ERROR: Enter a positive value: PASS! TEST #2: -1 85.2 ERROR: Enter a positive value: ERROR: Enter a positive value: PASS! TEST #3: -1 0 85.2 ERROR: Enter a positive value: ERROR: Enter a positive value: PASS! Test getIntPass Please enter -1 0 42 TEST #1: -1 0 42 ERROR: Enter a positive value: ERROR: Enter a positive value: FAIL! TEST #2: -1 0 42 ERROR: Enter a positive value: ERROR: Enter a positive value: PASS! TEST #3: -1 42 ERROR: Enter a positive value: ERROR: Enter a positive value: FAIL! getDoublePass Please enter -1 0 85.2 TEST #1: -1 0 85.2 ERROR: Enter a positive value: ERROR: Enter a positive value: #define _CRT_SECURE_NO_WARNINGS #include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started