Store the details of a single order in variables, then print them as a readable summary. Every value on the receipt comes from a variable — not one of them is typed directly into a Console.WriteLine() call.
That restriction is the point. A program where the data lives in variables can be changed in one place; a program where the data is baked into the output has to be rewritten.
Copy these four lines into your program exactly as written, then build the rest below them.
string itemName = "Mechanical Keyboard";int quantity = 2;double unitPrice = 89.99;bool inStock = true;
// Your code goes below this line.Notice that three different data types are already in use here. Before you write anything, name them: which variable is a string, which is a number, and which is a bool?
lineTotal and set it to the quantity times the unit price. Do not type 179.98 anywhere.quantity to 5 and run the program again. The line total must update on its own.--- Order Summary ---Item: Mechanical KeyboardQuantity: 2Unit price: 89.99Line total: 179.98
In stock: TrueThe line total shows as 179.98 here because 2 × 89.99 happens to come out clean. You are not being asked to control the number of decimal places yet — and bool prints as True or False, capitalized, whether you write it that way or not.
Submit your program file, plus a one-line answer to this:
What was on the screen after you changed the quantity to 5? Give the line total you saw.
That number tells me whether your receipt is calculating or just reciting, which is the entire difference between this challenge and the last one.