Answered step by step
Verified Expert Solution
Question
1 Approved Answer
help me with this java problem please Here are some review questions to give you extra practice with what you have learned so far and
help me with this java problem please
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 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 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