Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVA -FAST PLEASE! Exercise 1. Classes Define the Rider class for which the following information is stored: a) name (string) b) title (strings), c) nr
JAVA
Exercise 1. Classes Define the Rider class for which the following information is stored: a) name (string) b) title (strings), c) nr _tours (int) d) int tours[] (an array of distances of tours) For this class, implement: - the appropriate constructors (with no-arguments, with argum. and copy constructor) - the appropriate get/set methods and the following methods: - print () which will print all the information about the rider in the following format: name: title: nr_tours. - input () which inputs the data about the rider. In the main() method class: - implement a method maxTours() to accept an array of Riders and return the Rider with maximum number of tours - implement a method riders_Champions () to accept the array of Riders and return an array/list of Riders that hold the title "champion". - In the main method: create an array of Riders; input the data about each Rider for a specific rider, add a tour in the array tours of the rider print the data of the rider with maximum tours print the data about the riders that hold the title "champion -FAST PLEASE!
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