Create a program named FriendList that declares an array of eight Friend objects and prompts the user to enter data about the friends. Display the Friend objects in alphabetical order by first name. The Friend class includes auto- implemented properties for the Friend’s name, phone number, and three integers that together represent the Friend’s birthday—month, day, and year. 9. b. Create a FriendBirthday program that modifies the FriendList program created in Exercise 9a so that after the list of Friend objects is displayed, the program prompts the user for a specific Friend’s name and the program returns the Friend’s phone number and birthday. Display an appropriate message if the friend requested by the user is not found. 9. c. Create a program named AllFriendsInSameMonth that modifies the program in Exercise 9b so that after the requested Friend’s birthday is displayed, the program also displays a list of every Friend who has a birthday in the same month. C# Programming
Create a program named FriendList that declares an array of eight Friend objects and prompts the user to enter data about the friends. Display the Friend objects in alphabetical order by first name. The Friend class includes auto- implemented properties for the Friend’s name, phone number, and three integers that together represent the Friend’s birthday—month, day, and year. 9. b. Create a FriendBirthday program that modifies the FriendList program created in Exercise 9a so that after the list of Friend objects is displayed, the program prompts the user for a specific Friend’s name and the program returns the Friend’s phone number and birthday. Display an appropriate message if the friend requested by the user is not found. 9. c. Create a program named AllFriendsInSameMonth that modifies the program in Exercise 9b so that after the requested Friend’s birthday is displayed, the program also displays a list of every Friend who has a birthday in the same month. C# Programming
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
100%
Create a program named FriendList that declares an array of eight Friend
objects and prompts the user to enter data about the friends. Display the Friend
objects in alphabetical order by first name. The Friend class includes auto-
implemented properties for the Friend’s name, phone number, and three integers that
together represent the Friend’s birthday—month, day, and year.
9. b. Create a FriendBirthday program that modifies the FriendList program created
in Exercise 9a so that after the list of Friend objects is displayed, the program prompts
the user for a specific Friend’s name and the program returns the Friend’s phone
number and birthday. Display an appropriate message if the friend requested by the
user is not found.
9. c. Create a program named AllFriendsInSameMonth that modifies the program in
Exercise 9b so that after the requested Friend’s birthday is displayed, the program
also displays a list of every Friend who has a birthday in the same month.
C# Programming
![3. 5. Create an application named CarDemo that declares at least two Car objects and
demonstrates how they can be incremented using an overloaded ++ operator. Create
Car class that contains a model and a value for kilometres per litre. Include two
overloaded constructors. One accepts parameters for the model and kilometres per
litre; the other accepts a model and sets the kilometres per litre to 20. Overload a ++
operator that increases the kilometres per litre value by 1. The CarDemo
creates at least one Car using each constructor and displays the Car values both
before and after incrementation. (In some other languages, notably C++, you can write
two methods to overload ++ as a prefix and postfix operator. However, when you
overload either the ++ or - operator in C#, the operator can be used either before or
after the object, but the same method executes either way, and there is no difference
in the results.)
The
application
4. 9. a. Create a program named FriendList that declares an array of eight Friend
objects and prompts the user to enter data about the friends. Display the Friend
objects in alphabetical order by first name. The Friend class includes auto-
implemented properties for the Friend's name, phone number, and three integers that
together represent the Friend's birthday-month, day, and year.
9. b. Create a FriendBirthday program that modifies the FriendList program created
in Exercise 9a so that after the list of Friend objects is displayed, the program prompts
the user for a specific Friend's name and the program returns the Friend's phone
number and birthday. Display an appropriate message if the friend requested by the
user is not found.
9. c. Create a program named AIIFriendsInSameMonth that modifies the program in
Exercise 9b so that after the requested Friend's birthday is displayed, the program
also displays a list of every Friend who has a birthday in the same month.
nember: All the exercises must be handed in as a single .zip file.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F08cd7c84-c319-4c2c-a49a-cfe8ae01a951%2F4024cd59-6f06-4b59-8eb2-fd2707b1b278%2Ffbalvpo_processed.jpeg&w=3840&q=75)
Transcribed Image Text:3. 5. Create an application named CarDemo that declares at least two Car objects and
demonstrates how they can be incremented using an overloaded ++ operator. Create
Car class that contains a model and a value for kilometres per litre. Include two
overloaded constructors. One accepts parameters for the model and kilometres per
litre; the other accepts a model and sets the kilometres per litre to 20. Overload a ++
operator that increases the kilometres per litre value by 1. The CarDemo
creates at least one Car using each constructor and displays the Car values both
before and after incrementation. (In some other languages, notably C++, you can write
two methods to overload ++ as a prefix and postfix operator. However, when you
overload either the ++ or - operator in C#, the operator can be used either before or
after the object, but the same method executes either way, and there is no difference
in the results.)
The
application
4. 9. a. Create a program named FriendList that declares an array of eight Friend
objects and prompts the user to enter data about the friends. Display the Friend
objects in alphabetical order by first name. The Friend class includes auto-
implemented properties for the Friend's name, phone number, and three integers that
together represent the Friend's birthday-month, day, and year.
9. b. Create a FriendBirthday program that modifies the FriendList program created
in Exercise 9a so that after the list of Friend objects is displayed, the program prompts
the user for a specific Friend's name and the program returns the Friend's phone
number and birthday. Display an appropriate message if the friend requested by the
user is not found.
9. c. Create a program named AIIFriendsInSameMonth that modifies the program in
Exercise 9b so that after the requested Friend's birthday is displayed, the program
also displays a list of every Friend who has a birthday in the same month.
nember: All the exercises must be handed in as a single .zip file.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education