Question: C3. Write a java program named CapitalLetter that store the strings New York, Boston, Atlanta and Los Angeles in an array. Then it should count

 C3. Write a java program named CapitalLetter that store the strings
"New York", "Boston", "Atlanta" and "Los Angeles" in an array. Then it

C3. Write a java program named CapitalLetter that store the strings "New York", "Boston", "Atlanta" and "Los Angeles" in an array. Then it should count the number of capital letters in each string and display the string along with number of capital letters in that string [15 marks] Sample run of the program: Capital letters in each string: [New York] There are 2 capital letter(s) [Boston] There are 1 capital letter(s) [Atlanta] There are 1 capital letter(s) [Los Angeles] There are 2 capital letter(s) QUESTION 41 Write a java program named TestMethod that includes the following: 1. A method called ExamMethod which takes the integers(x and y) as input parameters, then calculates the value of n using the below formul marks) -(x+y? b. A method called ExamMethod which takes the integers(x,y and 2) as input parameters, then calculates the value of n using the below form marks) - (x2+x2712 c. Return the value n when you invoke the method as ExamMethod (11,8 Yand value n when you invoke the method as Exam Method (11,8,2) (1 mark)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!