The following Javascript code is most likely in which tier of the Model-View-Controller design pattern?function calculate(){ var r = parseFloat(document.getElementById('radius').value); // Check for nonnumeric data if(isNaN(r)){ document.getElementById('data').innerHTML = "Please enternumbers only"; return; } // Check for negative data if(r<=0){ document.getElementById('data').innerHTML = "Negative numbers don't make sense"; return; } // Data is good var myCircle = new Circle(r); document.getElementById('data').innerHTML = myCircle.getData();}
A. Model
B. View
C. Controller
D. Unable to determine
Answer: C
Computer Science & Information Technology
You might also like to view...
________ software helps you manage email, calendars, and tasks
a. Document management b. Personal information management c. Project management d. Word processing
Computer Science & Information Technology
What are the data requirements for a C program that prompts the user to enter the radius of a circle and displays the circle's circumference?
What will be an ideal response?
Computer Science & Information Technology