CODING questions
Answer the following questions in a Word document
Question 1: What is overloading? How is it related to polymorphism? – 4 points
Question 2: What is UML? When do you create a Use Case Diagram? – 4 points
Question 3: Write the C# code to declare an array variable called testScores to store 3 test scores. After declaring the array, populate the array by assigning the following scores to the three test scores respectively. – 4 points
Test Score 1 = 70
Test Score 2 = 65
Test Score 3 = 80
Question 4: Find the errors in the following C# code and correct them re-writing the whole for loop.
for (i = intMinNum; i <= intMaxNum; i);
{
Console.WriteLine(i)
};
Question 5: Find the errors in the following C# code used to calculate total discounted price based on the total price and discount based on given conditions (no discount for quantity <= 100 and 5% for quantity > 100) and correct them re-writing the code.
if (itemQuantity <=100);
{
netTotal == itemQuantity * itemPrice;
}
elseif (itemQuantity > 100)
{
discountRate = .05;
totalPrice = itemQuantity * itemPrice;
discount = totalPrice * discountRate;
netTotal = totalPrice - discount;
}
End if;
6 years ago
15
Answer(1)![blurred-text]()
![]()
Purchase the answer to view it

- order_149375_401617.docx
other Questions(10)
- regulation H.W#9
- assignment project
- stat assignment For njosh Only
- Math HW help
- assignment
- to "The Ultimate Professor" Only
- writing an essay
- Please read the Opening Decision Point on pages 212-215, answering the questions on page 215, and then answer questions 2, 5-7, and 10 on pages 236-238
- Project management.For suraya.
- assignment 10