Question: This is for MATLAB class please write the MATLAB code Thanks in advance these are the answers with test cases Function Name: hungerGames % %

This is for MATLAB class

please write the MATLAB code

Thanks in advance

these are the answers with test cases

Function Name: hungerGames

%

% Test Cases:

% [out1] = hungerGames('tributes1.txt')

% out1 => Peter is most favored to win with a score of 7!

%

% [out2] = hungerGames('tributes2.txt')

% out2 => Katniss Everdeen is most favored to win with a never before seen score of 11!

%

% [out3] = hungerGames('tributes3.txt')

% out3 => Katniss Everdeen is most favored to win with a never before seen score of 11!

the txt file cotents are the below

(tributes1.txt )

Peter:5,6,9Josh:9,1,7Luke:7,1,2

(tributes2.txt)

Zachniss:0,0,0,1Tim:7,8,8,8Natasha:9,9,9,9Victoria:10,8,7,8Addison:8,7,8,8Lobo:9,9,10,9Katniss:5,4,3,2

(trubutes3.txt)

Susan:0.2,0,0,1.1,2Kal:7,8,8,8,3.32,1EMily:9.23,2,1,9the Girl on FIRE:5,4,3.31,9,4,3Lavish:10,8,7.4,8,10Harry Potter:8,2,8.1,8,10,10Voldemort:9,9,10,9.1,1,1,2.22Edward Elric:10,6.1,5,3.91Percy Jackson:9,6,6,6.2Gandolf:4,7,7,7.32,8.2Frank Sinatra:10,9,8,7.98,7,6

This is for MATLAB class please write the MATLAB code Thanks in

advance these are the answers with test cases Function Name: hungerGames %

Homework 8 - Low Level File VO Function Name: hungerGames Inputs: 1. (char) Name of a text file, which contains tribute names and scores Outputs: 1. (char) A description of the most likely tribute to win with their overall score Background: It is the time of year again for each of the districts to volunteer their tributes to compete in the annual Hunger Games. In order to distinguish the tributes, The Capital assess the skills of each by having judges assign scores based on how well they perform in a demonstration. In order to speed up the process, The Capital has decided to recruit you to use your MATLAB expertise to decide which tribute is most likely to win! Function Description: Given a text file containing the names of each tribute, and the scores they received, determine the average score of each and determine which tribute is most likely to win the Hunger Games. Each line in the text file will be formatted as follows 1 Tribute Name>:,, is most favored to win with a score of !' Homework 8 - Low Level File VO Function Name: hungerGames Inputs: 1. (char) Name of a text file, which contains tribute names and scores Outputs: 1. (char) A description of the most likely tribute to win with their overall score Background: It is the time of year again for each of the districts to volunteer their tributes to compete in the annual Hunger Games. In order to distinguish the tributes, The Capital assess the skills of each by having judges assign scores based on how well they perform in a demonstration. In order to speed up the process, The Capital has decided to recruit you to use your MATLAB expertise to decide which tribute is most likely to win! Function Description: Given a text file containing the names of each tribute, and the scores they received, determine the average score of each and determine which tribute is most likely to win the Hunger Games. Each line in the text file will be formatted as follows 1 Tribute Name>:,, is most favored to win with a score of

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!