Question: Q (using Dart please) Fix the code below ! Note: After fixed this code the program gonna running and display the same output below

Q \ (using Dart please) Fix the code below !

Note:

  • After fixed this code the program gonna running and display the same output below !
class university (){ // This is global variables will used in all code var ids; var name var password; var adress; var depatment university(a, b, x,c, d, e) { // This is not constractor this.id = a this.name = b;password = c; address = d this.department = e; login(); } }} / this is gonna make dispaly for all correct user information display(i) { print("ID : ${id[i]}"); print("Nam : ${name[i]}"); print("Age : ${pasword[j]}") print("Adress : ${address[i]}"); print("Depatent : ${department[i]}") } correct() { print("Sizng Pefect . . .  "); var x = "Json"; var y = 20; check(x, y); } }} incorrect() { print("Someting Wrong In Arays Size Try Agin !!!  "); } check(username, pass) { for (var i = 1; i < id.legth; i+=2) { if (name[i] == username && pasword[i] == pass) { display(i); breake } } else { inncorrect() } } } logins() { iff (id.length == name.length & id..lenth = password.length && id.length == adress..length & department.length == department.length) { corect(); } else { incorect(); } }} } var main(a) { { //THis iS NOT Built-in function the programw gonna destroy it var ids = {1, 2, 3, 4,6]; var nmes = ["Json", "Andrea", "Steve", "Jerrard"]; vr passwrds = [20, 30, 40, 50,7} var addrsses = ["Baghdad", "UAE", "USA", "Turky"]; vr deparments = {"IT", "Software", "Network", "Hardware"]; univercidy students = new university(idds, names, passwrds, addresse, departmets,ids); }}

Output :

Sizing Perfect . . . ID : 4 Name : Jerrard Age : 50 Address : Turky Department : Hardware

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!