Question: rewrite this BASIC program in c++ progran REM BASIC Example Program REM Input: An integer, listlen, where listlen is less REM REM Output: REM than

 rewrite this BASIC program in c++ progran REM BASIC Example Program

rewrite this BASIC program in c++

progran REM BASIC Example Program REM Input: An integer, listlen, where listlen is less REM REM Output: REM than 100, followed by listlen-integer values The number of input values that are greater than the average of all input values DIM intlist (99) result - o sum 0 INPUT list!en IF listlen 0 AND listlen average FOR counter- 1 TO 1istlen IF intlist (counter) > average THEN result- result 1 NEXT counter REM Print the result PRINT "The number of values that are > average is:"j result ELSE PRINT "Error-input list length is not legal" END IF END

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 Databases Questions!