Ask your own question, for FREE!
Computer Science 19 Online
Gucchi:

programming help

Gucchi:

can someone go through this with me?

Gucchi:

Have your eye on a new gadget? A new game? Maybe some new clothes? Well, now's your chance to create a program that calculates the total cost of three items on your wish list, including tax and shipping. Follow these steps to begin your planning: 1. Create a wish list by selecting at least three items you want. 2. Do your research. Find the online store(s) where you can purchase your wish list items and record the price of each one. 3. Think about what user input is required for others to use your program. 4. Think about how you will write an equation to calculate the subtotal of your three items, the tax, and the total purchase cost with tax and shipping. Note: Use 6.5% tax and a $5.99 flat-rate shipping fee for your program. 5. The output must include the following: name of each item, item price, subtotal for items, total amount of tax, shipping fee, and total purchase cost with tax and shipping. Use this table to organize your data:

Gucchi:

i have to make this

Gucchi:

these are the instructions: It's time to design your program by writing pseudocode. Your outline must include the following elements: • Input statements • Ask the user for at least three numeric values. • Show proper use of the int() and float() functions. • Calculations required to achieve correct output. • Use proper order of operations. • Use any appropriate math functions. • Output statements • Create clear and well organized output to share the data and results of the calculations. • Show proper use of the str() function.

Gucchi:

im working on the code: def main(): print("Let's shop with Best Buy!") HeadsetQuantity = int(input("What is the quanity of the

Gucchi:

my three items are a gaming headset, monitor, and keyboard

Gucchi:

@vocaloid

Gucchi:

when im writing the headsetquantity = int, do i write "how many headsets would you like to purchase?" or "What is the quanity of the headsets?"

Gucchi:

@elsa213

Gucchi:

is there anyone that knows how to program?

Aqual:

What language

Aqual:

Python?

TheWraith2021:

If you can use JavaScript, I'd recommend using that. YouTube has tons of videos with JavaScript that show how to use a point of sale system.

Aqual:

I think I did something similar when I was learning python

Aqual:

It's been so long tho

Aqual:

Trying to remember everything

Gucchi:

oh

Gucchi:

i just wish vocaloid was online

Gucchi:

she helps me with these

Aqual:

So @Gucchi, does it need to have for the inputs a request for the name of the three items, and their price? Then it needs to add those prices together, and display that subtotal? Then the price with tax and shipping applied?

Gucchi:

im doing an input for quantity and price

Aqual:

Ok

Gucchi:

so the user would have to answer those two questions

Gucchi:

but the problem is thaty

Gucchi:

@gucchi wrote:
when im writing the headsetquantity = int, do i write "how many headsets would you like to purchase?" or "What is the quanity of the headsets?"
how would i write this?

Aqual:

It says to do quantity?

Gucchi:

i chose to do it

Aqual:

Oh, ok

Gucchi:

do you have any other ideas?

Aqual:

Hmm

Aqual:

Do you have the structure for everything else?

Gucchi:

nah im just starting

Gucchi:

i want to find out the right way to say this then ill move on

Aqual:

Okay, so what is the variable name for the first item

Gucchi:

because then

Gucchi:

1 attachment
Gucchi:

thats an example

Gucchi:

but i want to do price too

Gucchi:

after quantity

Gucchi:

but how would i ask that question because

Gucchi:

1 attachment
Gucchi:

i already gave each item a price on assignemnt wishlist

Aqual:

I thought they input the item they want

Gucchi:

no i have to list three items

Aqual:

Oh, bc I was gonna say do itemOne = input("What is the first item you want to calculate cost for?")

Gucchi:

cant do that tho man

Aqual:

Ohh

Gucchi:

• Input statements • Ask the user for at least three numeric values.

Gucchi:

what does it mean by three numeric values?

Aqual:

Prices

Gucchi:

can you give an example?

Gucchi:

?

Aqual:

Ok

Aqual:

So the first variable is lurePrice?

Gucchi:

lureQuantity

Aqual:

Ok

Aqual:

So lureQuantity = input("What quantity of headphones do you want to calculate?")

Aqual:

B4 that tho

Aqual:

lurePrice = input("What is the price of the headset?")

Aqual:

Then do the quantity

Gucchi:

so whats the point of the wishlist they give me then?

Gucchi:

i dont get that?

Gucchi:

1 attachment
Gucchi:

why did they want me to list the prices?

Aqual:

I think it is an input for the item

Gucchi:

ok but what about the prices?

Aqual:

For the item

Aqual:

So you look at the items and the prices and you'd be able to input those for the calculate then you make it usable by other users by making those items variables inputs

Gucchi:

so what is this input three numerical values mean?

Aqual:

To that means I'm guessing the user will input the name of the item they want and then they'll input the price of it

Aqual:

Is the 3 numerical prices for the 3 Items

Elsa213:

@ultrilliam o:

Aqual:

Yo

Timmyspu:

@vocaloid

Timmyspu:

@ultrilliam

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!