Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C++ Please people I need some help A function that doesn\'t return a value is a

ID: 3548533 • Letter: C

Question

C++ Please people I need some help

A function that doesn't return a value is a function Rewrite the following conditional expressions as if/else statement: num+= count == 1 ? sales : count * sales; A loop that evaluates its test expression before repetition is a loop If a program will not compile, it is because of a error Evaluating Sorts Given the following array: 40,12, 5, 8, 3, 45,10 Show what the array looks like after the first swap of a selection Sort in ascending order. If a program compiles, and doesn't produce run-time errors, but produces an incorrect result, it is because of a error Determine all the output from the following segment of program as it would appear on the screen. Explain each line of output This loop is a good choice when you know how many times you want the loop to iterate in advance of entering the loop. Local variables declared inside a function will retain their value between function calls if they are declared as Given the following function definition

Explanation / Answer

please rate - thanks

in the future please type in the code, so an answere can just copy paste--thanks

a function that doesn't return anything is void


20)

if(count==1)

       num+=sales;

else

     num=count*sales;


21)

pretest loop (example is while loop, of for loop)


22)

syntax error


23)

12,40,5,8,3,45,10


24)

logic error



26)

for loop


27)

static


28)

using namespace std;
void calc(int a, int&b)
{int c;                     a=1      b=2
c=a+2;                 c=3
a=a*3;               a=3
b=c+a;               b=6m   therefore in main y is 6
}
int main()
{int x=1;                         
int y=2;
int z=3;
calc(x,y);                           call calc with 1 and address of y which has a 2
cout<<x<<" "<<y<<" "<<z<<endl;                output   1 6 3

    return 0;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote