The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:Elementary,Middle School,High School,College,University,PHD
MBA IT, Mater in Science and Technology Devry Jul-1996 - Jul-2000
Professor Devry University Mar-2010 - Oct-2016
Â
int fun(int *k)
{
  *k += 4;
  return 3 * (*k) – 1;
}
Suppose fun is used in a program as follows:
void main()
  int i = 10, j = 10, sum1, sum2;
  sum1 = (i/2) + fun(&i);
  sum2 = fun(&j) + (j/2);
What are the values of sum1 and sum2:
Question-2Â
 Rewrite the following pseudocode segment using a loop structure for in each of the following languages: Fortran 95, Ada and Java
pseudocode segment --
k= (j +13)/27
loop:
if k > 10 then goto out
k = k + 1
i = 3 * k - 1
goto loop
out:
Fortran 95 Ada and Java
-----------