1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Fantom [35]
3 years ago
10

Write a Python 3 program that will compute the total cost of an amazon purchase. The program should ask the user to enter the am

ount of a purchase, then calculate a 12% shipping and handling fee and NJ sales tax (7%). Your program should show the itemized bill.
Computers and Technology
1 answer:
valentina_108 [34]3 years ago
3 0

Answer:

price = float(input("Enter amount of a purchase: "))

shipping_price = 0.12* price

NJ_sales_Tax = 0.07*price

print('The price of item is {}'.format(price))

print('The Cost of Shipping is {}'.format(shipping_price) )

print('New Jessey Sales Tax is {}'.format(NJ_sales_Tax))

total_bill = shipping_price+NJ_sales_Tax+price

print('Total Bill {} ' .format(total_bill))

Explanation:

  • Prompt User for input of the amount of purchase
  • Calculate the shipping cost (12% of purchase price)
  • Calculate the tax (7% of the purchase price)
  • Use python's .format method to output an itemized bill

You might be interested in
Without a/an ________. a computer is useless
Len [333]
Without a/an Operating system. a computer is useless
3 0
3 years ago
Write a java program as follows Write a method called powOfTwo that takes an integer as parameter, computes, and outputs it’s sq
Kisachek [45]

Answer:

public static int powOfTwo(int input) {

 return input*input;

}

You will have to call this method in main
for printing it, write

System.out.println(powOfTwo(your number));

in public static void main(str[]args) {

}

8 0
2 years ago
Write a recursive function to compute sum of first N integers starting with 1.
Citrus2011 [14]

Answer:

// here is code in C++.

#include <bits/stdc++.h>

using namespace std;

// recursive function to find sum from 1 to n

int recur_Sum(int n)

{ // base condition

if (n <= 1)

 return n;

// recursive call

return n + recur_Sum(n - 1);

}

// main function

int main()

{

   // variables

   int n;

   cout<<"Enter a number:";

   // read the number

   cin>>n;

   // print the sum

   cout<<"Sum of first "<<n<<" integer from 1 to "<<n<<" is:"<<recur_Sum(n);

return 0;

}

Explanation:

Read a number from user and assign it to variable "n".Call function recur_Sum() with parameter "n".This function will recursively call itself and find the Sum of first n numbers from 1 to n.Then function will return the sum.

Output:

Enter a number:10

Sum of first 10 integer from 1 to 10 is:55

4 0
3 years ago
How does the luminosity of this star compare with that of the other three (hip 87937, hip 108870, and tau cet)?
Afina-wow [57]

Answer:

Regulus is the most luminous. Regulus is the least luminous

Explanation:

  • Transcribed image text: Of the three stars you've observed (HIP 87937, HIP 108870, and Tau Cet), which one is more luminous?
  • View Available Hint(s) Tau Cet O HIP 87937 O HIP 108870
  • They have the same luminosity.

To learn more about it, refer

to https://brainly.in/question/413163

#SPJ4

6 0
1 year ago
Interactive web designs engage a viewer using changing visual, sound, and interactive features. A great example of this was the
MrRissso [65]

Answer:

Museum of Modern Art

Explanation:

Museum of Modern Art is where many works of Art are displayed or exhibited.

An interactive web design engages a user with its user friendliness of changing visual, sound and other interactive features.

5 0
3 years ago
Other questions:
  • The front surface of the CCD is called the _________
    11·1 answer
  • Enables you to navigate through pieces of information by using links which connect them.
    10·1 answer
  • Help! live preview in brackets is not working
    8·1 answer
  • What is the best information to include in the template name to differentiate it from other templates? Check all that apply.
    6·1 answer
  • What is a directed graph?
    5·1 answer
  • Data-as-a-service began with the notion that data quality could happen in a centralized place, cleansing and enriching data and
    7·1 answer
  • What device provides ports to allow a laptop to easily connect to a full-sized monitor, keyboard, ac power adapter, and other pe
    11·1 answer
  • PLEASEEE HELPPP
    7·1 answer
  • Write a string class. To avoid conflicts with other similarly named classes, we will call our version MyString. This object is d
    5·1 answer
  • Which of the following is NOT an example of soft skill?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!