Question
Can you please tell me what the errors are in this debug? // This program creates a screen with a textbox and a button. //
Can you please tell me what the errors are in this debug?
// This program creates a screen with a textbox and a button. // When the user clicks the button, a label displays the result // which is 10% of the number in the textbox start Declarations Screen screen1 Button calcButton Textbox usersEntry Label result screen1.setSize(200, 200) calcButton.setText("Click to calculate 10% tax") screen1.add(usersEntry) screen1.add(calcButton) stop
calculateTax() Declarations Label result num tax num RATE = 0.10 string answer tax = usersEntry.getText() * RATE answer = "The tax is ", tax screen1.add(result) return
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