Earn Higher Grades With Instant Assignment Help.Ask Question!

C Sharp Programming
(5/5)

This assignment is worth 10% of your overall grade. You may use either a Mac or PC to write this program.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

This assignment is worth 10% of your overall grade. You may use either a Mac or PC to write this program. This is probably one of the few classes where you're encouraged to use the internet as a resource to help you (in fact, I'd be impressed if you could do this assignment without google-ing anything).

Requirements - The Cash Register App

A small, cash-only business owner that is tired of their cashiers inputting incorrect prices and giving incorrect change is offering you a respectable sum of money to build a command line program that will help his employees. He wants a program that will do the following:

Prompt the cashier for the price of each item being purchased (this is a small store that puts price tags on each item)

You do not know how many items will be purchased, so make sure you can handle an "infinte" number of purchases

When all items have been input, the cashier will input a blank line (i.e. simply hit the return key without typing anything)

Calculate and add 6.035% sales tax

Write to the console a friendly message saying the total amount due in currency format (i.e.

$23.45)

Prompt the cashier for how much cash the customer gave them

Write to the console the correct combination of $20s, $10s, $5s, $1s, quarters, dimes, nickels, and pennies to give to the customer as change. You do not need to account for bills larger than

$20 (but it should still work using 20s)

Tips and Hints 

Work on one step at a time.

What do you use when you do not know how many inputs you'll be recieving? C# has a way to format numbers as all sorts of types when being displayed.

You're not the first person to implement a change calculator in C#, but if you were you'd probably want to use the % (modulo) operator - and some other math.

Pay attention to when you need to round things!

Use YouTube, the internet, past projects, and other resources to help you if you get stuck Don't wait until last minute to ask me for help. Please

Grading

 

10% - The program is of the proper type (.NET Core Console Application) and builds properly 40% - The program implements properly asks for an "infinte" number of item prices

40% - The program properly calculates and gives change

10% - The program is easy to read and free of any "code smells" such as:

Go To statements, global variables, and unnecessarily repetitive or complicated code


Notes

You can work with your friends/classmates on this assignment, however you must submit your own version of the assignment.

Everything you need to do this is built into the main installation of .NET Core

You are not required to use all of the things we've learned so far. Classes, methods, etc. may help your program, but for this first assignment you do not need to use them unless you want to.

Submit your homework as a ZIP file including all of your code. Mac users can right click on a folder, and click "Compress <FOLDER_NAME>" and Windows users can right click on a folder and say "Send to...Compressed (zipped) folder."

Attachments:
(5/5)

Related Questions

Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Assignment To Be Done By Our ExpertsGet A+ Grade Solution Guaranteed

expert
joyComputer science
(4/5)
12 Answers Hire Me
expert
Robert DLaw
(4.8/5)
959 Answers Hire Me
expert
Dr Samuel BarberaStatistics
(5/5)
872 Answers Hire Me
expert
Tutor For YouEconomics
(5/5)
792 Answers Hire Me