Question: Instruction:java is required You must run and compile the attachments before attempting the exercises above.Screen shot of the outputYou must run and compile the attachments
Instruction:java is required
You must run and compile the attachments before attempting the exercises above.Screen shot of the outputYou must run and compile the attachments before attempting the exercises above. Dr Babs Dr Babs Machine Problem # Intro to Java Programming First Applet Programming Problemimport java.awt.;import java.applet.;import java.awt.event.;public class prob extends Applet implements ActionListenerLabel greeting new LabelEnter Category ;Font IFont new FontTimesRoman Font.ITALIC, ;Label head new Label SEAT SECTION ;Label head new LabelPRICE PER SEAT";Button submit new ButtonSubmit;Button clear new ButtonClear;TextField category new TextField;TextField name new TextField; TextField cost new TextField;public void initgreetingsetFontIFont;addgreeting;addcategory;addsubmit;addclear;addname;addcost;addhead;addhead; category.addActionListenerthis;category.requestFocus;submit.addActionListenerthis;clear.addActionListenerthis;public void actionPerformedActionEvent thisEventint temp;String catString category.getText;trytemp Integer.parseInt catString ;catch NumberFormatException e temp ;switchtempcase :name.setTextCourtside;costsetText;category.requestFocus;break;case :name.setTextOn The Floor";costsetText;category.requestFocus;break;case :name.setTextThe Perimeter";costsetText;category.requestFocus;break;case :name.setTextUnder The Hoop";costsetText;category.requestFocus;break;case :name.setTextAbove The Rim";costsetText;category.requestFocus;break;case :name.setTextFull Court";costsetText;category.requestFocus;break;case :name.setTextHigh Five";costsetText;category.requestFocus;break;default:name.setTextINVALID;costsetText;category.requestFocus;ifthisEventgetActionCommand "Clear"categorysetText;name.setText;costsetText;category.requestFocus;invalidate;validate;Run this program to demonstrate spring manipulationimport java.util.Scanner;public class ThreeLetterAcronym public static void mainString args Scanner input new ScannerSystemin; String tla entry; int stringLength; int i; int count ; int MAX ; char c; System.out.printPlease enter three words: ; entry input.nextLine; stringLength entry.length; tla Character.toUpperCaseentrycharAt; count; fori ; i stringLength; i ifcount MAX ifentrycharAtii; c entry.charAti; c Character.toUpperCasec; tla c; count; System.out.print "Original phrase was entry
Three letter acronym is tla;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
