PRN212_-_PE_-_SU_2025_-_Block_1_3976.webp
G

PRN212_-_PE_-_SU_2025_-_Block_1_3976.webp

Kizspy.me
31
32
33
34
35
36
37
38
40
41
42
static void Main(string[] args)
Console.WriteLine("Testcase 1:");
Product p new Product(1, "Dell XPS 13 7390", "Computer", 1000);
p.Display(x(x.Type.Equals("Computer") ? x.Price 0.1 x.Price * 0.05));
Console.WriteLine("\nTestcase 2:");
List<Product> products new List<Product> {
new Product(2, "Dell Inspiron 15 55es", "Computer", 850),
new Product(2, "Dell XPS 15 9550", "Computer", 2500),
new Product(2, "Inspot 5.71", "Houseware", 200)
};
Product.Display (products,
(x-(x.Type.Equals("Computer") ? x.Price 0.15 x.Price 0.05))
44
»;
45
The output should be the same as below
Testcase 1:
Figure 1: Main function
Product: Id:1 - Name:Dell XPS 13 7398 Type: Computer Price:1000 - Tax:100
Testcase 2:
List of products:
Product: Id:2 - Name: Dell Inspiron 15 5585 Type: Computer Price:850 - Tax:127,5
Product: Id:2 Name:Dell XPS 15 9550 Type:Computer Price:2500 - Tax:375
Product: Id:2 Name: Inspot 5.7L - Type: Houseware Price:200 Tax:10
Figure 2: Output screen
Zoom
Question 2
You are asked to write a WPF application that allows adding employee's information into the database
that has schema as figure below:
Employee_Projects
EmployeelD
Project
Role
Inflate
+ 80%
Employees
EmployeelD
Name
DOB
nament
Employee_Skills
EmployeelD
SARD
ProficiencyLevel
Close
Chưa có bình luận nào.

Thông tin

Category
PRN212
Thêm bởi
green_mountain
Ngày thêm
Lượt xem
3,650
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom