Calculate total stock value of the stock available in a furnitur
This program simulate the stock management of a Furniture Shop. This shop deals with only two type of Furnitures BookShelf and DiningTable only. The program should accept details any 5 furnitures(each can be either BookShelf or DiningTable), the program should show a menu that allow the user to select choice of Furniture. After accepting the required no of Furniture details program will show accepted details and TotalCost of Accepted Stock
This exercise contains a base class named Furniture to hold the common properties of all type of Furnitures, and BookShelf and DiningTable class as child class with additional properties relevant to child classes. Program class has below functions:
+AddToStock(Furniture []) : int
+TotalStockValue(Furniture []) : double
-
+ShowStockDetails(Furniture []) : int
-
The program should also contain definitions for class types as suggested below:
+Furniture : class
+ BookShelf : class
+ DiningTable : class
-
You need to identity the classes involed in this system and their relationship
implement a C# method
TemperatureConverter(
double
tempInCelsius
)
which
accepts the temperature in Celsius as input parameter and returns the temperature in
Fahrenheit
as the output value.
Note:
T
(°F)
=
T
(°C)
× 1.8 + 32
Sample Input
Expected Output
tempInCelsius = 32
89.6
Create a C# Windows Forms application for Eduvos using Visual Studio. The application should be titled “Eduvos Registration App”. It must consist of the Eduvos Logo, which you can get from the internet (see Figure 1). The application must allow the user to enter their student registration details and store them. Your application must consist of a class for handling the student details. The student details you need to capture are the Student Number, Name, ID Number, Cell Number and the enrolled degree. The class must also consist of a constructor which initialises the public properties. The class must also contain a constructor which sets the properties to values received from the main form. The application should accept values from a user which will be typed into the textboxes. The application must look as follows:
Create an console application to book train tickets. Create a Passanger class with (Name, Age) and write a function called TicketBooking(no_of_tickets) that takes no.of tickets to be booked. If the no of tickets is > 2 per booking, raise an user defined exception, and print "cannot book more than 2 tickets". Else Print "Ticket Booked Successfully". Add a Test class to call TicketBooking method by accepting all required details.
Write a C# Program to rotate an Array of size 10 in left and right Direction three times Create a Class of ArrayRotate with data member of integer type array of size 10, property of that member, all constructors, destructor, user define displayArray() Method, RotateLeft(int[] arr) Method, RotateRight(int[] arr) Method. Then test the functionality of Class in the Driver Class of RotateArray.
Perform Question#1 with using Arraylist Class rather than basic Array.
Create a class called Scholarship which has a function Public void Merit() that takes marks and fees as an input. Merit method should get an marks as input using params
If the given mark is >= 70 and <=80, then calculate scholarship amount as 20% of the fees
If the given mark is > 80 and <=90, then calculate scholarship amount as 30% of the fees
If the given mark is >90, then calculate scholarship amount as 50% of the fees.
In all the cases return the Scholarship amount
Calculate overall percentage obtained by cadet in different assessments and generate score card.
The program should collect assessment details for cadet and calculate percentage score obtained by cadet for all the assessments .The details collectedand calculated should be used to generate score card.
The exercise contains a class named program with the below given methods.
GetOverallScore() : int
- should take set of assessment cards as parameter.
- Retrieve the maximum score for each assessment type. Assessment type should be an enumeration.
- should return percentage score value as integer for the average calculated.
GenerateScoreCard() : string
AssessmentType : enum
Maximum scores for these assessment types are:
Quiz -50
KBA - 100
Calibration -150
Hackathon -200
- the maximum score must be obtained from the enum values itself
AssessmentCard : struct
Create an Observable Collection. Listen to its Collection Changed Event and
display message on UI for each operation.
1. Addition: “Element ‘x’ is added in collection”
2. Removal: “Element ‘x’ is removed from collection”
Use enum NotifyCollectionChangedAction to differentiate the action
Create a person class and instantiate an object student based on this Class. The class can set an age, say hello, display her age on the screen and start the explanation.
Example of the output
My age is 21 years old
I'm studying
Hello!
I'm explaining