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

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter11: Exception Handling
Section: Chapter Questions
Problem 5E
icon
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.
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
User Defined DataType
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning