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
Solnce55 [7]
3 years ago
7

Write an if-else statement for the following: If userTickets is less than 5, execute awardPoints = 1. Else, execute awardPoints

= userTickets. Ex: If userTickets is 3, then awardPoints = 1.
var awardPoints = 0;var userTickets = 4; // Code will be tested with values: 4, 5 and 6
Engineering
1 answer:
LiRa [457]3 years ago
5 0

Answer:

Explanation:

#no programing language stated, but using python.

awardPoints = 0

userTickets = 4

userTickets = int(input("Enter the number tickets"))  #this statement gets the user input

If userTickets < 5: #this test the first user input

awardPoints = 1

elif userTickets ==3:

awardPoints = 1

else:

awardPoints = userTickets

print("The awardpoints is ", awardPoints)

You might be interested in
At a given point in a supersonic wind tunnel, the pressure and temperature are 5×104 N/m2 and 200 K, respectively. The total pre
Ne4ueva [31]

Answer:

The Mach number is 2.866

Total temperature To = 528.524K

Explanation:

Pressure (P)= 5 * 10^4 N/m^2

Total pressure (Po) =  1.5 * 10^6 N/m^2

Temperature (T) = 200K

For air, r= 1.4

To find the Mach number we use:

Po/P = [1 + (r - 1/2) M^2] ^ r^/^r^-^1

1.5 * 10^6 / 5 * 10^4 =[ 1 + (1.4 -1 /2) (M^2) ] ^ 1^.^4^/^1^.^4^-^1

0.3 * 10^2 = (1 + 0.2M^2) ^3^.^5

(0.3 * 10^2)^(1/3.5) = 1 + 0.2M^2

2.6426 = 1 +0.2M^2

2.6426 - 1 = 0.2M^2

1.6426 = 0.2M^2

M^2 = 1.6426/0.2

M = sqrt(1.6426/0.2)

M = 2.866

To find Total Temperature :

To/T = (Po/P)^r^-^1^/^8) [tex][tex] To/200 = (1.5*10^6 / 5*10^4)^ 1^.^4^-^1^/^1^.^4)

To/200 = (0.3 * 10^2)^0^.^2^8^5^7

To =528.524K

4 0
3 years ago
Design brief of circuit diagram
Lemur [1.5K]

A design brief should highlight the problem and specifications for the solution.

<h3>What is an electrical circuit?</h3>

An electrical circuit can be defined as an interconnection of different electrical components, in order to create a pathway for the flow of electric current (electrons) due to a driving voltage.

<h3>The components of an electrical circuit.</h3>

Generally, an electrical circuit comprises the following electrical components:

  • Resistors
  • Capacitors
  • Batteries
  • Transistors
  • Switches
  • Wires

<h3>What is a design brief?</h3>

A design brief can be defined as a short statement which is written to describe the need of an individual or business, and what type of solution will meet that need (problem) through the design of an electrical circuit.

This ultimately implies that, a design brief should highlight the problem and specifications for the solution.

Read more on design brief here: brainly.com/question/17848745

#SPJ1

5 0
2 years ago
In the truss below, the vertical reaction force at A is
Montano1993 [528]
It’s c trust just trust
7 0
3 years ago
What can be used to measure the alcohol content in gasoline? A. Graduated cylinder B. Electronic tester C. Scan tool D. Either a
Dovator [93]

Answer:

GRADUATED CYLINDER

Explanation:

4 0
3 years ago
How does heat conduction differ from convection?
Helga [31]

Explanation:

Conduction:

     Heat transfer in the conduction occurs due to movement of molecule or we can say that due to movement of electrons in the two end of same the body. Generally,  phenomenon of conduction happens in the case of solid . In conduction heat transfer takes places due to direct contact of two bodies.

Convection:

              In convection heat transfer of fluid takes place due to density difference .In simple words we can say that heat transfer occur due to motion of fluid.

7 0
3 years ago
Read 2 more answers
Other questions:
  • Work-producing devices that operate on reversible processes deliver the most work, and work-consuming devices that operate on re
    6·1 answer
  • A specimen of a 4340-steel alloy with a plane strain fracture toughness of 54.8 MPa sqrt(m) (50 ksi sqrt(in.)) is exposed to a s
    11·1 answer
  • What’s is 6 billion plus 6 quadrillions
    11·2 answers
  • The cost of fixing a fault for a software product identified during the implementation phase is approximated at $32,000 USD. How
    9·1 answer
  • The efficiency of a transformer is mainly dependent on: a)- Core losses b)- Copper losses c)- Stray losses d)- Dielectric losses
    12·1 answer
  • What is a motor and were it goes in. A car
    15·1 answer
  • Which one is an example of a digital input?
    5·1 answer
  • Stucco will shrink as it hardens and cures.<br> A. true<br> B. false
    11·1 answer
  • According to Gary Sirota, the proposed Bajagua wastewater treatment plant is a beneficial solution because __________.
    5·1 answer
  • When are we going to abandon internal combustion engines?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!