Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Allow the user (a cashier) to enter the cost of a transaction and the exact amou

ID: 3560775 • Letter: A

Question

Allow the user (a cashier) to enter the cost of a transaction and the exact amount of money that the customer hands over to pay for the transaction. Use set and get functions to store and retrieve both amounts
to and from private data members. Then use member functions to determine the largest amount of each denomination to return to the customer. Assume that the largest denomination a customer will use is a $100 bill. Therefore, you will need to calculate the correct amount of change to return for $50, $20, $10, $5, and $1 bills, along with quarters, dimes, nickels, and pennies. For example, if the price of a transaction is $5.65 and the customer hands the cashier $10, the cashier should return $4.35 to the customer. Include code that requires the user to enter a numeric value for the cash transaction. Save the project in a folder named Change in your Projects folder for Chapter 10. This is What the .cs file has in it:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

///


/// Summary description for Change
///

public class MakingChange
{
   public MakingChange()
   {
       //
       // TODO: Add constructor logic here
       //
   }
}

I need this by tomorrow afternoon, Central Time. I will be working on it as well, Thank you again so much. If you can help I would appreciate it please and thank you.

Explanation / Answer

using System; using System.Collections.Generic; using System.Linq; using System.Text; using RPG.World; namespace RPG.Menu { public partial class Menu { static void Main() { Console.Title = "The Game Ver. 0.0.1"; Console.CursorVisible = false; Console.WindowWidth = Console.LargestWindowWidth; Console.WindowHeight = Console.LargestWindowHeight; Console.WriteLine("Welcome traveler to the start of your adventure. To learn the controls type 'help' and press enter or just type 'start' to begin your adventure."); Boolean check = true; while (check == true) { string Input = Console.ReadLine(); Input = Input.ToLower(); if (Input == "help") { check = false; Help(); } else { if (Input == "start") { check = false; **** } else { if (Input == "exit") { check = false; } } } if (check == true) { Console.WriteLine("What you entered wasn't recognised please enter Start, Help or Exit."); } else { } } }

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote