Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

Explain budgetary Control

Answered: 1 week ago

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago

Question

What are the different techniques used in decision making?

Answered: 1 week ago