/    Sign up×
Community /Pin to ProfileBookmark

Hey guys,

I’ve been working on this tutorial and I’m stuck. Here’s what I’m trying to do:

Prompt the user to determine what kind of coffee they want (espresso, latte, cappuccino, or Americano); how many ounces (8,12, or 16); and how many shots. Then, based on the type, set the price for each size. Finally, determine the final price, including a .06% tax rate. Return the amount owed.

Can someone help me out please? Thanks!

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@Jeff_MottApr 05.2007 — Smells like homework.
Copy linkTweet thisAlerts:
@McLeroy88authorApr 05.2007 — Smells like homework.[/QUOTE]

It is homework. It's a tutorial that I must finish my 10:00 tonight and I can't figure out. Please help. Thx
Copy linkTweet thisAlerts:
@CrazyMerlinApr 05.2007 — any other guidelines?

like do you have a choice on how to present the information to the user?

Simplest method would be to display 2 select boxes where the user selects type and size, and a text box for quantity.

At the bottom you would have a label that shows the price.

The price would be controlled by a single controller script that gets called by onchange event of all components.
Copy linkTweet thisAlerts:
@McLeroy88authorApr 05.2007 — There are no other guidelines. I dont even know where to start. This is a beginner course and I dont know what im doing. Can you start it for me?
Copy linkTweet thisAlerts:
@Jeff_MottApr 05.2007 — You should be asking your teacher how to do this and not asking others to do your hw for you.
×

Success!

Help @McLeroy88 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...