Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started