Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ECE 1410 Figure Skating Program Requirements Task Using Microsoft Visual Studio, write a program that keeps track of country names and scores associated with an

image text in transcribed
image text in transcribed
ECE 1410 Figure Skating Program Requirements Task Using Microsoft Visual Studio, write a program that keeps track of country names and scores associated with an Olympics figure skating competition. The program should maintain a linked list of country/score pairs, sorted in descending score order. The user is shown a menu with options to add a node to the list, print the list, and exit the program You should create two CH classes. One should be named Skater, with a declaration that looks something like this: class skater public: Skater (string c, float a); string get Country(); float getScore(); Skater getNext(): void setNext (Skater *p): private: string country: float score: Skater *next; }; The other class should be named List, and should manage a linked list of Skaters. The constructor simply sets up an empty list. The destructor frees the dynamically-allocated memory. A declaration for List might look like this: class list public: List() void addNode (string country, float score): void printtist(); -List(); private: Skater *head: Submit a zip file to Canvas that contains five files: main.cpp, skater.cpp, skater.h, list.cpp, and list.h. Example Output /cygdrive/t/Documents/ECE_1410/Homewo.. MENU ** 1. Enter a new team and score 2. Print rankings 0. Exit Selection: 1 Enter nation: USA Enter score: 9.6 ** MENU *** 1. Enter a new team and score 2. Print rankings 0. Exit Selection: 1 Enter nation: China Enter score: 9.75 PR MENU 1. Enter a new team and score 2. Print rankings 0. Exit Selection: 2 ***RANKINGS*** China 9.75 USA 9.6 *** MENU *** 1. Enter a new team and score 2. Print rankings 0. Exit Selection

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

Step: 3

blur-text-image

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

Public Finance

Authors: Harvey Rosen, Ted Gayer

8th Edition

0073511285, 9780073511283

Students also viewed these Databases questions