Question
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
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