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
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
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education