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
MakcuM [25]
3 years ago
5

Using only the sequential operations described in Section 2.2.2, write an algorithm that gets two values: the price for item A a

nd the quantity purchased. The algorithm should then print the total cost and the total cost plus an 8% sales tax.
Engineering
1 answer:
suter [353]3 years ago
7 0

Answer:

total_cost = cost + tax

Explanation:

Step1) Let the 2 variable for take input from user e.g price and quantity

var price ;

var quantity ;

var cost ;

var tax ;

var total_cost ;

Step2) take input from user quantity of item 'A'

step3) cost = price * quantity

Step4) tax = 0.08 * cost

Step5) total_cost = cost + tax

Step6) print the total_cost

You might be interested in
Calculate the wire pressure for a round copper bar with an original cross-sectional area of 12.56 mm2 to a 30% reduction of area
dybincka [34]

Answer:153.76 MPa

Explanation:

Initial Area\left ( A_0\right )=12.56 mm^2

Final Area\left ( A_f\right )=0.7\times 12.56 mm^2=8.792 mm^2

Die angle=30^{\circ}

\alpha =\frac{30}{2}=15^{\circ}

\mu =0.08

Yield stress\left ( \sigma _y \right )=350 MPa

B=\mu cot\left ( \aplha\right )=0.2985

\sigma _{pressure}=\sigma _y\left [\frac{1+B}{B}\right ]\left [ 1-\frac{A_f}{A_0}\right ]^B

\sigma _{pressure}=350\left [\frac{1+0.2985}{0.2985}\right ]\left [ 1-\frac{8.792}{12.56}\right ]^{0.2985}

\sigma _{pressure}=153.76 MPa

8 0
3 years ago
Why does the auto industry prefer uniform (national) standards for automobile emissions as opposed to regionally varying standar
WINSTONCH [101]

Answer:

Explanation:

For automobile emission, a uniform standard is preferred, because no unnecessary advantage is given by it to any company that is located in particular states where the regional standards are less severe.

Since pollution has its impact across the states and in the whole of the USA, then there should be uniform standards across all the states. It will also invalidate the impact of regional standards as a factor in the selection of plant locations for the automobile company. It means that a state offering less valid emission standards, will attract more companies to herself and it will be against the other states who care more about the natural environment. It can make more states to opt for the permissive emission standards, that will be more harmful to the USA as a country, than the good. So, a uniform standard is preferred to eliminate it as a factor in plant location decisions.

Yes, uniform standards are beneficial to everyone, because it will bring effective control upon the pollution level because there will be no state where the culprit firm can hide. Besides, it is more effective as efforts done towards environment conservation.

3 0
3 years ago
A growing trend in urban design is the concept of a rooftop garden. If every building in a city were to install a rooftop garden
vlabodo [156]

Answer:The Urban heat island temperature will be REDUCED.

Two Impacts of Rooftop gardens

1) provision of shade against Sunlight.

2) It helps to purify the air around the building.

Explanation: Rooftop gardens are gardens made on top of the roofs of buildings, it is a Green initiative aimed at helping to improve the overall Environment.

Rooftop gardens have several significant benefits which includes

Reduction of the surrounding temperatures and the Urban heat Island temperatures.

Rooftop gardens helps to shade the roof from the direct impacts of harsh weather conditions.

Generally, plants are known as air purifiers as they remove the excess Carbondioxide around the environment through photosynthesis, and they also help to release water vapor which will help to improve the humidity of the environment.

5 0
2 years ago
The electron concentration in silicon at T = 300 K is given by
puteri [66]

Answer:

E=1.44*10^-7-2.6exp(\frac{-x}{18} )v/m

Explanation:

From the question we are told that:

Temperature of silicon T=300k

Electron concentration n(x)=10^{16}\exp (\frac{-x}{18})

                                        \frac{dn}{dx}=(10^{16} *(\frac{-1}{16})\exp\frac{-x}{16})

Electron diffusion coefficient is Dn = 25cm^2/s \approx 2.5*10^{-3}

Electron mobility is \mu n = 960 cm^2/V-s \approx0.096m/V

Electron current density Jn = -40 A/cm^2 \approx -40*10^{4}A/m^2

Generally the equation for the semiconductor is mathematically given by

Jn=qb_n\frac{dn}{dx}+nq \mu E

Therefore

-40*10^{4}=1.6*10^{-19} *(2.5*10^{-3})*(10^{16} *(\frac{-1}{16})\exp\frac{-x}{16})+(10^{16}\exp (\frac{-x}{18}))*1.6*10^{-19}*0.096* E

E=\frac{-2.5*10^-^7 exp(\frac{-x}{18})+40*10^{4}}{1.536*10^-4exp(\frac{-x}{18} )}

E=1.44*10^-7-2.6exp(\frac{-x}{18} )v/m

7 0
2 years ago
A bathtub faucet has a maximum flow rate of 3 gal/min. The tub is rectangular (3 ft long x 2 ft wide x 1.5 ft deep). Although th
Anvisha [2.4K]

Answer:

Time taken = 136.32 minutes

Explanation:

The solution and complete explanation for the above question and mentioned conditions is given below in the attached document.i hope my explanation will help you in understanding this particular question.

3 0
3 years ago
Other questions:
  • Memory Question!
    7·1 answer
  • What is pessimism technology
    12·1 answer
  • What is an isentropic process?
    7·1 answer
  • 1. Represent each of the following combinations of units in the correct SI form using the appropriate prefix: (a) μMN, (b) N/μm,
    6·1 answer
  • If 3 varies inversely as x and y=2 when x=25, find x when y=40
    7·1 answer
  • The irreversible losses in the penstock of a hydroelectric dam are estimated to be 7 m. The elevation difference between the res
    14·1 answer
  • Porque el invento de la bombilla es importante?
    6·1 answer
  • You need to lower your lift onto the mechanical load-holding devices to provide structural support before working under the lift
    12·1 answer
  • What could I do to make this bridge hold more weight without making it heavier? Lateral bracing and a design on the top will be
    14·1 answer
  • 10.) A solid circular titanium control rod at 7,000 lb axial tension force where stress must not
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!