Question: Please code in Java A string contains the information of actors. The string has the following format: firstName 1.lastName1.age1.netWorth1, numberOf Movies 1, firstName2, lastName2, age2.netWorth2,

Please code in Java

Please code in Java A string contains the information of actors. The

A string contains the information of actors. The string has the following format: "firstName 1.lastName1.age1.netWorth1, numberOf Movies 1, firstName2, lastName2, age2.netWorth2, numberOfMovies2, firstName 3.lastName3.age3.netWorth3,numberOfMovies3, ..." 1. Write a method named avgAge that takes a String in the above format and returns the average age per actor. 2. Write a method named totalNetWorth that takes a String in the above format and returns the total network of the actors

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!