Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have an extra credit project for my programming class and I am having lots of trouble do it. I began most of the code

I have an extra credit project for my programming class and I am having lots of trouble do it. I began most of the code but I can't quite get it right. Below is the assignment as well as the desired output for the project. Any help would be extremely useful

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

CS 0401 Intermediate Programming Assignment 1 Topics: Review of expressions, conditions, loops and I/O After passing your OWLs and NEWTs (with a grade of "Outstanding" in "Defence Against the Dark Arts") but discovering that there are currently no openings for Aurors, you decide to bide your time by opening a small Honeydukes franchise (really just a food cart) in Diagon Alley, called "A Little Honey". Since your cart is small you have a very limited menu, consisting only of Acid Pops, Pumpkin Pasties, and Bertie Bott's Every Flavour Beans. However, since these are all popular items you hope to earn enough Galleons to get by while you wait for an Auror position to become available. Your prices are as follows: Single: 12 Knuts Bag of 5: 2 Sickles (58 Knuts) Acid Pops Pumpkin Pasties 4 Sickles(116 Knuts) each Every Flavour Small Bag: 50 Knuts Beans Large Bag: 70 Knuts For your best customers (in your "Honeys Dukes" club) you have a secret password that enables them to get discounts on your products. Customers who know the password (they get two tries to guess it) get the following discounted prices: Single: 11 Knuts Acid Pops Bag of 5: 50 Kmuts Pumpkin Pasties 100 Knuts each Every Flavour Small Bag: No discount Beans Large Bag: 2 Sickles (58 Knuts) 10% off over and above any other discounts if the overall order (after other discounts) is 10 Sickles or more, rounded to the nearest Knut Overall To accommodate the occasional muggle (or first year who may have grown up in a muggle household) who may drop by, you also post the following currency sign on your cart Note 1: We prefer exact change (but will make change if necessary)! Note 2: No more than 50 galleons are kept in the cart (funds are transported to Gringotts on a daily basis) Note 3: Recall our currency options: 29 Knuts1 Sickle 17 Sickles1 Galleon493 Knuts CS 0401 Intermediate Programming Assignment 1 Topics: Review of expressions, conditions, loops and I/O After passing your OWLs and NEWTs (with a grade of "Outstanding" in "Defence Against the Dark Arts") but discovering that there are currently no openings for Aurors, you decide to bide your time by opening a small Honeydukes franchise (really just a food cart) in Diagon Alley, called "A Little Honey". Since your cart is small you have a very limited menu, consisting only of Acid Pops, Pumpkin Pasties, and Bertie Bott's Every Flavour Beans. However, since these are all popular items you hope to earn enough Galleons to get by while you wait for an Auror position to become available. Your prices are as follows: Single: 12 Knuts Bag of 5: 2 Sickles (58 Knuts) Acid Pops Pumpkin Pasties 4 Sickles(116 Knuts) each Every Flavour Small Bag: 50 Knuts Beans Large Bag: 70 Knuts For your best customers (in your "Honeys Dukes" club) you have a secret password that enables them to get discounts on your products. Customers who know the password (they get two tries to guess it) get the following discounted prices: Single: 11 Knuts Acid Pops Bag of 5: 50 Kmuts Pumpkin Pasties 100 Knuts each Every Flavour Small Bag: No discount Beans Large Bag: 2 Sickles (58 Knuts) 10% off over and above any other discounts if the overall order (after other discounts) is 10 Sickles or more, rounded to the nearest Knut Overall To accommodate the occasional muggle (or first year who may have grown up in a muggle household) who may drop by, you also post the following currency sign on your cart Note 1: We prefer exact change (but will make change if necessary)! Note 2: No more than 50 galleons are kept in the cart (funds are transported to Gringotts on a daily basis) Note 3: Recall our currency options: 29 Knuts1 Sickle 17 Sickles1 Galleon493 Knuts

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago