8. Write a class named Power Calculator that includes a main method coded to prompt entry of data on 10 people. For each, the user should enter their age (int) followed by their name (String). Calculate their power score, which is the product of the length of their name and their age. Store the information in arrays and print out all the data in the format: following Name: Audrey Age: 21 Power Score: 126 Finally, print out the name associated with the highest score.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 7E
icon
Related questions
Question
8. Write a class named Power Calculator that includes a main method
coded
to prompt entry of data on 10 people. For each, the user should
enter their
age (int) followed by their name (String). Calculate their power
score,
which is the product of the length of their name and their age.
Store the information in arrays and print out all the data in the
format:
following
Name: Audrey
Age: 21
Power Score: 126
Finally, print out the name associated with the highest score.
Transcribed Image Text:8. Write a class named Power Calculator that includes a main method coded to prompt entry of data on 10 people. For each, the user should enter their age (int) followed by their name (String). Calculate their power score, which is the product of the length of their name and their age. Store the information in arrays and print out all the data in the format: following Name: Audrey Age: 21 Power Score: 126 Finally, print out the name associated with the highest score.
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT