help me with this java program please
Here are some feview questions to give you extra practice with what you have learned so far and help you prepare for the first midterm exam 1 (This is modfied from Programming Exercise P4 3 at the end of Chapter 4 of Java for Fyevone.) Assume you have the following variable declarations: SimpleReader in = new simplefeaderil (); SimpleWiriter out = new simpleWriteritif; Write program fragments (t.e., you do not need to weite complete programs) that read a line of input as a 5 teing and print: a. Only the uppercase letiers in the steing b. Every second letter of the string e. Thestring with all vowels replaced by an underscore d. The number of vowels in the string c. The positions of all vowels in the string 5. Cenuder the fillureir XSE docunret (adapied fivm bere) 4. Write lava code for a loop that sets boolean tariable is Ordirnd to true if the elements of a giren array of ints called a are in noo-decreasing ceder, otherwise it sets LoOrdered to false. 5. Censider the folloning XML, dociesent (adapted from leec): Annwer the following queitions. a. Drair the complete eltTre corresponding to thii document i. menu.istag() ii. menu.labe1() ii. menu. numberofchlldren() is menu, hasaterlbute ("calories") t. meou.child(1) i. menu.chfld(1), 1stag() vi. aenu, ch!1d(1), label() vii. menu. child(1). nueberofchideren() as meou, child(1), basattribute("calories") x. menu,child(1), attributevalue("calorles") si menu.chdid(t),child(e).1sTag() xii medu,child(1), child(e),child(e), istag() xui menu,child(1), child (0), child(0), label() c. Modity the document so that the price is an atmituse of the ase tag. 4. Rederi the complete ottree cerrespending to the new decument. Here are some review questions to give you extra practice with what you have learned so far and help you prepare for the furst midterm exam. 1. (This is modifled from Programming Exercise P4.3 at the end of Chapter 4 of Jona for Enegoze..) Assume you have the following variable declarations: SimpleReader in = new SimpleReader 1L() Simplewriter out = new Simplewriter 1L(); Write program fragments (i.e., you do not need to write complete programs) that read a line of input as a str ing and print: a. Only the uppercase letters in the steing b. Every second letter of the string c. The string with all vowels replaced by an underscore d. The number of vowels in the string e. The positions of all vowels in the string