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

  Topic of mobile computing and its business implications

brief synthesis and summary of the two articles. How are the topics of the two articles related. What information was relevant and why

  Perform logistic regression on the three data subsets

Perform Logistic Regression on the three data subsets (100K, 20K, 10K). Show your results using a cross-table. Discuss your results for each of the data sets.

  Create web based multimedia presentation for specific topic

COMP607 Visual Effects and Animation Assignment: Multimedia Learning Project - Create a web based multimedia presentation for a specific topic

  Would there be any advantages to using the cts and rts frame

Suppose the IEEE 802.11 RTS and CTS frames were as long as the standard DATA and ACK frames.

  Choose one of the exercised from the award winning book

choose one of the exercised from the award winning book computer science unplugged. record a creative presentation of

  Analyze in the context of what you have learned

Consider a recent (2016, 2017 or 2018) security breach popular in the media. Analyze in the context of what you have learned thus far in this course.

  Gantt chart-project log

Morris Wildlife Services deals with the humane removal of wildlife from places it does not belong (such as removing bats from attics and trapping coyotes for release in more suitable habitat).

  Show the code for reginas function

Carol has written a class called Rectangle with member functions getLength(), getWidth(), and calcArea() to return the associated data members.

  If packet-filtering routers and firewalls protect a

if packet-filtering routers and firewalls protect a network by only allowing some traffic through what types of

  Define the global variables

A number of efficiency improvements can be made to AdaptQNC. A casual glance at AdaptQNC reveals two sources of redundant function evaluations.

  Converting the sum of elements of array into octal format

Provided an array of ints named x and an int variable named total that has already been declared, write down some code which places the sum of all the elements of the array x into total.

  Executive management asks you to design a decision support

you are a senior information analyst at a major it firm.executive management asks you to design a decision support

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