virtual-labs-archive / computer-programming-responsive-iiith

This repository contains the responsive Computer Programming Lab IIITH
https://cse02-iiith.vlabs.ac.in
Other
1 stars 324 forks source link

Structure_Simulation #475

Open MohsinMamoon opened 5 years ago

MohsinMamoon commented 5 years ago

Issue: Incorrect syntax for for loop in step 4.

Steps to reproduce:

  1. Go to http://cse02-iiith.vlabs.ac.in/exp5/simulation/index.html
  2. Go through the experiment until step 4.
  3. Press Submit Code to reveal answer.

Expected Result: Correct code: for(;<size;i++){ if (src[i].bal>src[maxBalIndex].bal) maxBalIndex=i; }

Actual Result: for (;iif (src[i].bal>src[maxBalIndex].bal) maxBalIndex=i; }

Screenshot: Screenshot from 2019-03-16 18-14-59

MohsinMamoon commented 5 years ago

Fixed. Commit ID: 87e5699

DevikaBoddu commented 5 years ago

Valid fix: @MohsinMamoon