Create a while loop that will start deducting each purchase

Assignment Help Computer Engineering
Reference no: EM132170683

Using a While Loopin C#

In this problem you are going to keep buying items until you reach your maximum credit limit. You will ask the user for their credit limit first.

Then create a while loop that will start deducting each purchase from the credit limit.

As long as the credit limit is above zero, the while loop should continue looping. When the user goes over their credit limit, stop the loop and tell them how much they went over by.

User Inputs:
o Max Credit Limit

o Inside of the loop, keep asking the user how much their purchase is.

Result To Print Out:

o For each "purchase" (hint: every time it loops) the loop should tell the user how much money they have left that they could spend. "With your current purchase of $X, you can still spend $X."

o After the user exceeds their limit, "With your last purchase you have reached your credit limit and exceeded it by $X."

Reference no: EM132170683

Questions Cloud

Create a connection socket when contacted by the client : Create a connection socket when contacted by the client (browser). Receive the HTTP request from this connection.
What will the income of the two countries : What will the income of the two countries be when it is equal?
Place to re-create starbucks uniqueness : What strategic initiatives did Howard Schultz put in place to re-create Starbucks' uniqueness after his return in 2008?
Determining the natural monopoly : If the government forces the natural monopolist to produce a level of output where P = MC. What is the problem with such a policy?
Create a while loop that will start deducting each purchase : In this problem you are going to keep buying items until you reach your maximum credit limit. You will ask the user for their credit limit first.
What happens to total tax revenue collected : Owing to the positive IS shock, what happens to total tax revenue collected?
Increase total revenues for firm : 3. What could Jane do to increase total revenues for her firm if she had no control over costs (e.g., reducing costs is not an option)?
Discriminate price in the markets : Assume the monopolist marginal cost is constant at $20 per unit. Find the following price:
What is a definition of externalities : What is a definition of externalities. How does the presence of an externality distort a normal free market?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd