Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a static method named AddStarWarsCharacters() that takes in a string[]. This method then searches for and returns the index of Yoda. If Yoda is

Create a static method named AddStarWarsCharacters() that takes in a string[]. This method then searches for and returns the index of Yoda. If Yoda is not in the array, return -1. Create a static method named DeathStarCombat() that takes in a Dictionary of Star Wars characters (key) and their attack values (value) This method should return the name of the Jedi with the highest Attack value. Create a static method named ConvertPlanets() takes in one parameter: an array of planets The method will convert the array of planets into a list of planets in the reverse order. Return List. Create a static method named AverageDroids() takes in an integer List for droids The method will search through the list and calculate the average of all even-numbered droids. Return average. Hint: Create another list to store the even numbers in. What do you think an average will return? Create a static method named TryToCatchDarthVader(). This method will take in a string as a parameter and parse that string as an integer. return Vader Was Captured! If the parse is successful. return Vader Got Away!. If FormatException is thrown.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

What is Constitution, Political System and Public Policy? In India

Answered: 1 week ago

Question

What is Environment and Ecology? Explain with examples

Answered: 1 week ago

Question

=+j Describe the various support services delivered by IHR.

Answered: 1 week ago