Question: please answer the question with a screenshot Q1. Complete the following program code to obtain an output as given below: ON (); (ON ); (OFF);
please answer the question with a screenshot

Q1. Complete the following program code to obtain an output as given below: ON (); ("ON" ); ("OFF"); public class Demol extends Application public void start(Stage st){ group = new rbi=new rb2=new rbi. set (group); rb2. set (group); Flowpane fpunew FlowPane(); fp.getChildren().add(rbi): fp.getchildren().add(rb2); Scene sc-new Scene (fp, 50e,5ee); st.setScene(sc); //display the stage } public static void main(String[] args) { launch(args); ) 1 Q2. Write java code to design the following screen and calculate the bonus Salary Calculation Employee ID 22: Basic Pay Bonus Calculate 1000 50 Bonus 20% of Basic pay
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
