Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 actorsStep 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