Question
Create a program named ConferencesDemo for a hotel that hosts business conferences. Allows a user to enter data about five Conference objects and then displays
Create a program named ConferencesDemo for a hotel that hosts business conferences. Allows a user to enter data about five Conference objects and then displays them in order of attendance from smallest to largest.
The Conference class contains fields for the following:
- group - The group name (as a string)
- date - The starting date (as a string)
- attendees - The number of attendees (as an int)
Include properties for each field.
Also, include an IComparable.CompareTo() method so that Conference objects can be sorted in order from least to greatest attendees.
Your output for each conference should match the following:
NAME Conference starts on DATE and has ATTENDEES attendees
- Conference class defined correctly
below is the template to use:
using System;
using static System.Console;
class ConferencesDemo
{
static void Main()
{
// Write your main here
}
}
Test Case Incomplete Ruby, C#, and Java Conferences Input June 12 Ruby April 20 Java December 12 50 Output Results Ruby Conference starts on April 20 and has 2 attendees G Conference starts on June 12 and has 30 attendees Java Conference starts on December 12 and has 5e attendees Test Case Incomplete C++ and Python Conferences Input Python May 2 1000 July 28 400 Output Results CH Conference starts on July 28 and has 400 attendees Python Conference starts on May 2 and has 1688 attendees Test Case Incomplete Ruby, C#, and Java Conferences Input June 12 Ruby April 20 Java December 12 50 Output Results Ruby Conference starts on April 20 and has 2 attendees G Conference starts on June 12 and has 30 attendees Java Conference starts on December 12 and has 5e attendees Test Case Incomplete C++ and Python Conferences Input Python May 2 1000 July 28 400 Output Results CH Conference starts on July 28 and has 400 attendees Python Conference starts on May 2 and has 1688 attendees
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