subject

You must write c# classes which are used to manage product review data for books and cars. you will write an abstract class called review which abstracts common properties (review rating and comments). you will then create an interface responsible for the functionality to display the reviewcontent. then, you will create 2 concrete classes which inherit from review and implement the interface. finally, you will create console applicationwhich will create 2 carreview instances and 2 bookreview instances and display them in the console. 1) implement an abstract c# base class called review with private members and public properties which accept a rating number (1 through 5 only, type int) and comments (type string, maximum of 200 characters only). your class should have public setters/getters. your setters should enforce the constraints on values for rating and comments. 2) implement two concrete classes which inherit from this base class named carreview and bookreview. carreview should have a unique private string field and public string property called dealership. bookreview should have a unique private field/public property called title. do not put dealership in bookreview, and do not put title in carreview. these should be unique in each concrete class. 3) create a public interface called ireviewdisplayer and define a method called displayreview() which returns type string. 4) implement the ireviewdisplayer interface in carreview and bookreview. in carreview, return the formatted string in displayreview implementation: rating: {0} dealership: {1} comments: {2} in bookreview, return the the formatted string in displayreview implementation: rating: {0} title: {1} comments: {3} 5) create a c# console application that uses the console and input from the user to create 2 car reviews and 2 book reviews. 6) add all four of these reviews to a single list type. hint: this is going to be list 7) create a method that accepts the list parameter, iterates through them, and displays the contents of displayreview method in the console. all four reviews should display in the console. it does not matter what order they are in. 8) end the program gracefully with a console. readline()

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
Suppose you have 9 coins and one of them is heavier than others. other 8 coins weight equally. you are also given a balance. develop and algorithm to determine the heavy coin using only two measurements with the of the balance. clearly write your algorithm in the form of a pseudocode using the similar notation that we have used in the class to represent sorting algorithms
Answers: 1
question
Computers and Technology, 23.06.2019 01:50
Write a program that uses a random number generator to generate a two digit positive integer and allows the user to perform one or more of the following operations: a. double the number. b. reverse the digits of the number. c. raise the number to the power of 2, 3, or 4. d. sum the digits of the number. e. if the number is a two-digit number, then raise the first digit to the power of the second digit. f. if the number is a three-digit number and the last digit is less than or equal to 4, then raise the first two digits to the power of the last digit. after performing an operation if the number is less than 10, add 10 to the number. also, after each operation determine if the number is prime. each successive operation should be performed on the number generated by the last operation. your program should not contain any global variables and each of these operations must be implemented by a separate function. also, your program should be menu driven. 7. (fraction calculator) write a program that
Answers: 1
question
Computers and Technology, 23.06.2019 04:00
Another name for addicting games.com
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
You know the right answer?
You must write c# classes which are used to manage product review data for books and cars. you will...
Questions
question
Mathematics, 05.05.2020 02:50
question
Law, 05.05.2020 02:50
question
History, 05.05.2020 02:50
question
History, 05.05.2020 02:50
Questions on the website: 13722361