Page 1 of 1

If you are not able to write a code for the following problem, please explain why and give me feedback regarding how I c

Posted: Sat Nov 27, 2021 10:26 am
by answerhappygod
If you are not able to write a code for the following
problem, please explain why and give me feedback regarding how I
can improve the way the question is written. This would be greatly
appreciated.
Write a Visual Studio C++ program that uses an array of
structures to keep track of world records and the people who
currently hold them.
The code should ask for three pieces of information
regarding each world record:
the number and unit of the world record.
first and last name of the person who currently holds
the record.
age of the record holder (integer value or the string
“diseased”).
Here is a sample output of the code:
enter world record: longest breath ever held
underwater
enter number and unit: 24 minutes and 3
minutes
enter record holder name: Budimir Sobat
enter record holder age: 56
another world record?
yes
enter world record: fastest speed a human has ever
run
enter number and unit: 27.78 miles per hour
enter record holder name: Usain Bolt
enter record holder age: 35
another world record?
yes
enter world record: fastest time to solve a Rubik’s
Cube
enter number and unit: 4.22 seconds
enter record holder name: Feliks Zemdegs
enter record holder age: 25
another world record?
yes
enter world record: longest time a human has ever
lived
enter number and unit: 122 years and 164
days
enter record holder name: Jeanne Calment
enter record holder age: deceased
another world record?
no
The program then outputs this table, sorting the record
holder’s last names in alphabetical order.
world record
number and unit
record holder name
age
fastest speed a human has ever run
27.78 miles per hour
Usain Bolt
35
longest time a human has ever lived
122 years and 164 days
Jeanne Calment
deceased
longest breath ever held underwater
24 minutes and 3 minutes
Budimir Sobat
56
fastest time to solve a Rubik’s Cube
4.22 seconds
Feliks Zemdegs
25
[1] - When the user presses the “1” key, they have the
ability to type in the name of the world record and view the number
and unit, who holds it, and their age.
[2] - When the user presses the “2” key, they have the
ability to add a new world record along with its number and unit,
who holds it, and their age.
The table should get updated with the new world record,
the number and unit of the record, the record holder's name, and
the record holder's age.
[3] - When the user presses the “3” key, they have the
ability to delete a world record along with its number and unit,
who holds it, and their age.
[4] - When the user presses the “4” key, they have the
ability to enter one of the currently listed world records and
change the number and unit.
[5] - When the user presses the “5” key, they have the
ability to type in a world record and change the name of the person
who currently holds the record.
[6] - When the user presses the “6” key, they have the
ability to type in a world record and change the age of the person
who currently holds the record..
[7] - When the user presses the “7” key, they have the
ability to enter a record holder’s name and view the world record
they are known for, the number and unit of the record, and their
age.
[8] - When the user presses the “8” key, they have the
ability to enter a record holder’s name and change the number and
unit of their world record, in the event the record holder sets a
new world record.
[9] - When the user presses the “9” key, they have the
ability to exit the program.
The current information/statistics on each world record
should be saved on a file so when the program is restarted, the
current information is displayed.