Question: 1. Complete the Trace Table: (15 points) (5ubmit in PDF file) a) Trace the given FOR loop using trace table and write the values of

1. Complete the Trace Table: (15 points) (5ubmit in PDF file) a) Trace the given FOR loop using trace table and write the values of variables rate and frequency after completing tracing. int rate =45; int frequency =2; for ( int 1=7;1>=1;1) f rate =2; frequency =( rate 2)+1 ) \begin{tabular}{|l|l|l|l|l|l|} \hline iteration/5tep & Value of i & i >=1 & rate =2 & frequency =( rate 2)+1 & i \\ \hline \end{tabular} b) Trace the given DO-WHILE loop using trace table and write the values of variables totalHours and tolalpay after completing tracing. int pay =50; double days =9; int hours =5; int totaltours =0; int totalpay =6; dof totaltours +o hours; totalpay += pay hours; days +=1.5; Jhille(days (6); c) Trace the given WHILE loop using trace table and write the values of variables word and code after completing tracing. \begin{tabular}{|l|l|l|l|l|} \hline Iteration/Step & count I=0 & word +=( char ) code & code =4 & count =2 \\ \hline \end{tabular}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
