Microsoft Visual C#
Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
Question
Book Icon
Chapter 9, Problem 8E
Program Plan Intro

Program plan: -

  • Use the packages and define the namespaceConferenceApplication.
  • Define the class ConferencesDemo, inside the class define the main method.
  • Create an instance of 5 Conference objects.
  • Use the loop to read the 5 Conference objects in the list.
  • Call the Sort method to sort the list.
  • Use the loop to print sorted conference by number of attendees.
  • Define the namespace ConferenceApplication .
  • Define the class Conference and implement the interface IComparable .
  • Declare the variables as per the requirement.
  • Define the parameterized constructor to initialize the variables.
  • Use the property to implement the getters and setters.
  • Override CompareTomethod .
  • Create the object and compare the number of attendees in each group.
  • Define the display() method to display the values.

Program description: -

The main purpose of the program named “ ConferenceDemo ” is to enter the data of five Conference objects and then display them in order of smallest to largest. The conference class consists of data members group name, starting date, and the number of attendees. Also, include theIComparable.CompareTo () method to sort the Conference objects.

Blurred answer
Students have asked these similar questions
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   using System; using static System.Console; class ConferencesDemo {    static void Main()    {       // Write your main here    } }
Please provide JAVA source code for following assignment with proper comments. Please use basic While/for/ case/ loop for source code, I just started learning and doesn't know a lot about computer programming. 1. Employee Class Write a class named Employee that has the following fields: name. The name field references a String object that holds the employee’s name. idNumber. The idNumber is an int variable that holds the employee’s ID number. department. The department field references a String object that holds the name of the department where the employee works. position. The position field references a String object that holds the employee’s job title. The class should have the following constructors: A constructor that accepts the following values as arguments and assigns them to the appropriate fields: employee’s name, employee’s ID number, department, and position. A constructor that accepts the following values as arguments and assigns them to the appropriate…
Write the application AutomobileDemo that prompts a user for data for eight Automobile objects. The Automobile class includes the following auto-implemented properties: IdNumber - The ID number (an int) Make - The make (a string) Year - The year (an int) Price - The price (a double) Override the ToString() method to return all the details for an Automobile. During data entry, re-prompt the user if any ID number is a duplicate. Sort the objects in ID number order, and display all their data as well as a total of all their prices. For example if, the output should be in the following format (only two automobiles shown): Automobile 1 2017 honda Price is $30,000.00 Automobile 45 2016 Toyota Price is $20,000.00 Total for all Automobiles is $50,000.00 In order to prepend the $ to currency values, the program will need to use the CultureInfo.GetCultureInfo method. In order to do this, include the statement using System.Globalization; at the top of your program and format the output…
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage