Question
A class or classes necessary to create objects to be used by a program that meets the following requirements: A person object. It should be
A class or classes necessary to create objects to be used by a program that meets the following requirements:
- A person object. It should be able to create and hold demographic information for a person including Name, Age, and Phone Number. That information should be expected to be received and assigned within the class. You should also expect that the information will be able to be accessed by a main program at will. There will be at least 10 instances of this one object (people) that will be created by the main program.
- There should be an object that will be used to generate and store the count of each instance of 1000 random numbers between 2 and 12 and the results of the outputs will then be assigned to the corresponding instance of a person object.
- There should be a method that generates a winner based on results from the other methods.
- The methods should only include concepts and code covered in the course.
The classes must work and be tested to function as intended and SUBMITTED to Blackboard by Thursday night. At that time you will be given requirements for the main program.
A class or classes necessary to create objects to be used by a program that meets the following requirements:
You have been asked to write a program that will act as the tie-breaker for the 2020 presidential election. In the event of a three way tie, your program will pick the ultimate winner. Using your classes that you have already created, your final program should look something like this:
here a explain
Candidate #1: Input Name and Information
Candidate #2 :Input Name and Information
Candidate#3 : Input Name and Information
.
.
Candidate#10 : Input Name and Information
The winner of the 2020 presidential election is: [name].
The program MUST use at least one external class that you have written.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
To create a program that meets the given requirements youll need to define two main classes Person and RandomNumberCounter The Person class will hold ...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