Microsoft Visual C#
Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 2, Problem 13E

Write a program named MakeChange that calculates and displays the conversion of an entered number of dollars into currency denominations—twenties, tens, fives, and ones. For example, $113 is 5 twenties, 1 ten, 0 fives, and 3 ones.

Blurred answer
Students have asked these similar questions
Write a program that displays a simulated paycheck. The program should ask the user to enter the date, the payee’s name, and the amount of the check. It should then display a simulated check with the dollar amount spelled out, as shown here:                                                                                      Date: 12/24/2012 Pay to the Order of: John Phillips                           $1920.85 One thousand nine hundred twenty and 85 cents You may assume the amount is no greater than $10000. Be sure to format the numeric value of the check in fixed-point notation with two decimal places of precision. Be sure the decimal place always displays, even when the number is zero or has no fractional part. Use either C-strings or string class objects in this program.
A mobile phone service has three different data plans for its customers: PLAN A:       For $19.99 per month, 2 gigabytes are provided. Additional usage costs $8.00 per gigabyte. PLAN B:       For $59.99 per month, 8 gigabytes are provided. Additional usage costs $8.00 per gigabyte. PLAN C:       For $79.99 per month,  Unlimited data is provided.   Write a program that calculates a customer’s monthly bill. It should input the customer name, which plan was purchased, and how many  gigabytes were used. It should then create a bill that includes the input information and the total amount due. It should also display how much money plan A customers would save if they purchased plan B or C, and how much money plan B customers would save if they purchased plan C. If there would be no savings, no message should be printed. Wherever possible, use named constants instead of numbers.
Python Write a program that asks the user for two integers that will correspond to the numbering of the first and last lines, then a third integer that will correspond to the number of z before "zigzag" (not counting the first "z" of zigzag), then finally that displays a zig-zag following the following pattern: Exemple 1:   Start Number: * user type 3 * End number:   * user type 10 * Number of z:   * user type 5 * zzzzzzigzag 3 4 zzzzzzigzag zzzzzzigzag 5 6 zzzzzzigzag zzzzzzigzag 7 8 zzzzzzigzag zzzzzzigzag 9 10 zzzzzzigzag (Even integers must be left-zigzag and odd integers must be right.)   Example 2:   Start number:* user type -2 * End Number:* user type 4 * Number of z: * user type 3 * -2 zzzzigzag zzzzigzag -1 0 zzzzigzag zzzzigzag 1 2 zzzzigzag zzzzigzag 3 4 zzzzigzag   Example 3:   Start Number:* user type 5 * End number:* user type 0 * Number of z: * user type 10 * (Nothing is displayed because 5>0)

Chapter 2 Solutions

Microsoft Visual C#

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    Microsoft Visual C#
    Computer Science
    ISBN:9781337102100
    Author:Joyce, Farrell.
    Publisher:Cengage Learning,
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Constants, Variables, Data types, Keywords in C Programming Language Tutorial; Author: LearningLad;https://www.youtube.com/watch?v=d7tdL-ZEWdE;License: Standard YouTube License, CC-BY