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
docker41 [41]
3 years ago
9

1 import java.util.Scanner; 3 public class EqualityAndRelational { 4 public static void main (String args) args) { int userBonus

; int userPoints; userPoints-0; Scanner scnrnew Scanner(System.in); 7 10 userBonus = scnr.nextInt(); // Program will be tested with values : 15, 20, 25, 30, 35. 12 13 14 15 16 17 18 19 * Your solution goes here userPoints-10 else userPoints = 0;
Engineering
1 answer:
Anastaziya [24]3 years ago
7 0

Missing Part of the Question

Complete the expression so that userPoints is assigned with 0 if userBonus is greater than 20 (second branch). Otherwise, userPoints is assigned with 10 (first branch

import java.util.Scanner;

public class EqualityAndRelational {

public static void main (String args) args) {

int userBonus; int userPoints;

userPoints=0;

Scanner scnr = new Scanner(System.in);

userBonus = scnr.nextInt();

// Program will be tested with values : 15, 20, 25, 30, 35. 12 13 14 15 16 17 18 19

( Your solution goes here)

{

userPoints= 10 ;

}

else {

userPoints = 0;

}

}

}

Answer;

Replace

( Your solution goes here)

With

if(userBonus>20).

The full program becomes

import java.util.Scanner;

public class EqualityAndRelational {

public static void main (String args) args) {

int userBonus; int userPoints;

userPoints=0;

Scanner scnr = new Scanner(System.in);

userBonus = scnr.nextInt();

// Program will be tested with values : 15, 20, 25, 30, 35. 12 13 14 15 16 17 18 19

if(userBonus>20)

{

userPoints= 10 ;

}

else {

userPoints = 0;

}

}

}

You might be interested in
For an isotropic material, E and ν are often chosen as the two independent engineering constants. There are other elastic consta
pav-90 [236]

Answer:

khgy

Explanation:

nbv

8 0
3 years ago
• What are some methods currently used to unclog arteries and keep them clear?
topjm [15]
Good fats are also called unsaturated fats. They're found in foods like olives, nuts, avocado, and fish. Cut sources of saturated fat, such as fatty meat and dairy. Choose lean cuts of meat, and try eating more plant-based meals.
5 0
2 years ago
You are testing a new jet engine in a test cell at sea level conditions. You measure the mass flow through the engine and find i
bulgar [2K]

Answer:

43248 newtons.

Explanation:

Force = mass x accelerations and units of force are newtons which are given in the question.

here mass = 125 of air and 2.2 of fuel, total = 125+2.2=127.5kg/s  and the velocity of the exhaust is 340m/s.

force = 340m/s * 127.5kg/s = 43248 newtons technically this is wrong (observe units) but i will expalin how i have taken acceleration as a velocity here and mass/unit time as simply mass.

see force is mass times acceleration or deceleration, here our velocity is not changing therefore it is constant 340m/s but if it were to change and become 0 in one second then there would be -340m/s^2 (note the units ) of deceleration and there would be force associated with it and that force is what i have calculated here. similarly there would be mass in flow rate of mass per second, which is also in that one second of time.

let's calculate error.

error = (actual-calculated)/actual. = (43248-60000)/43248= -38.734% less is ofcourse greater than 2%.

So the load cell is not reading correct to within 2% and it should read 43248newtons.

5 0
2 years ago
Read 2 more answers
How do technological artifacts affect the way that you live?
Maslowich

Answer:

Artefacts can influence our actions in several ways. They can be instruments, enabling and facilitating actions, where their presence affects the number and quality of the options for action available to us. They can also influence our actions in a morally more salient way, where their presence changes the likelihood that we will actually perform certain actions. Both kinds of influences are closely related, yet accounts of how they work have been developed largely independently, within different conceptual frameworks and for different purposes. In this paper I account for both kinds of influences within a single framework. Specifically, I develop a descriptive account of how the presence of artefacts affects what we actually do, which is based on a framework commonly used for normative investigations into how the presence of artefacts affects what we can do. This account describes the influence of artefacts on what we actually do in terms of the way facts about those artefacts alter our reasons for action. In developing this account, I will build on Dancy’s (2000a) account of practical reasoning. I will compare my account with two alternatives, those of Latour and Verbeek, and show how my account suggests a specification of their respective key concepts of prescription and invitation. Furthermore, I argue that my account helps us in analysing why the presence of artefacts sometimes fails to influence our actions, contrary to designer expectations or intentions.

When it comes to affecting human actions, it seems artefacts can play two roles. In their first role they can enable or facilitate human actions. Here, the presence of artefacts changes the number and quality of the options for action available to us.Footnote1 For example, their presence makes it possible for us to do things that we would not otherwise be able to do, and thereby adopt new goals, or helps us to do things we would otherwise be able to do, but in more time, with greater effort, etc

Explanation:

Technological artifacts are in general characterized narrowly as material objects made by (human) agents as means to achieve practical ends. ... Unintended by-products of making (e.g. sawdust) or of experiments (e.g. false positives in medical diagnostic tests) are not artifacts for Hilpinen.

3 0
3 years ago
A counter-flow double-piped heat exchange is to heat water from 20oC to 80oC at a rate of 1.2 kg/s. The heating is to be accompl
lawyer [7]

Answer:

110 m or 11,000 cm

Explanation:

  • let mass flow rate for cold and hot fluid = M<em>c</em> and M<em>h</em> respectively
  • let specific heat for cold and hot fluid = C<em>pc</em> and C<em>ph </em>respectively
  • let heat capacity rate for cold and hot fluid = C<em>c</em> and C<em>h </em>respectively

M<em>c</em> = 1.2 kg/s and M<em>h = </em>2 kg/s

C<em>pc</em> = 4.18 kj/kg °c and C<em>ph</em> = 4.31 kj/kg °c

<u>Using effectiveness-NUT method</u>

  1. <em>First, we need to determine heat capacity rate for cold and hot fluid, and determine the dimensionless heat capacity rate</em>

C<em>c</em> = M<em>c</em> × C<em>pc</em> = 1.2 kg/s  × 4.18 kj/kg °c = 5.016 kW/°c

C<em>h = </em>M<em>h</em> × C<em>ph </em>= 2 kg/s  × 4.31 kj/kg °c = 8.62 kW/°c

From the result above cold fluid heat capacity rate is smaller

Dimensionless heat capacity rate, C = minimum capacity/maximum capacity

C= C<em>min</em>/C<em>max</em>

C = 5.016/8.62 = 0.582

          .<em>2 Second, we determine the maximum heat transfer rate, Qmax</em>

Q<em>max</em> = C<em>min </em>(Inlet Temp. of hot fluid - Inlet Temp. of cold fluid)

Q<em>max</em> = (5.016 kW/°c)(160 - 20) °c

Q<em>max</em> = (5.016 kW/°c)(140) °c = 702.24 kW

          .<em>3 Third, we determine the actual heat transfer rate, Q</em>

Q = C<em>min (</em>outlet Temp. of cold fluid - inlet Temp. of cold fluid)

Q = (5.016 kW/°c)(80 - 20) °c

Q<em>max</em> = (5.016 kW/°c)(60) °c = 303.66 kW

            .<em>4 Fourth, we determine Effectiveness of the heat exchanger, </em>ε

ε<em> </em>= Q/Qmax

ε <em>= </em>303.66 kW/702.24 kW

ε = 0.432

           .<em>5 Fifth, using appropriate  effective relation for double pipe counter flow to determine NTU for the heat exchanger</em>

NTU = \\ \frac{1}{C-1} ln(\frac{ε-1}{εc -1} )

NTU = \frac{1}{0.582-1} ln(\frac{0.432 -1}{0.432 X 0.582   -1} )

NTU = 0.661

          <em>.6 sixth, we determine Heat Exchanger surface area, As</em>

From the question, the overall heat transfer coefficient U = 640 W/m²

As = \frac{NTU C{min} }{U}

As = \frac{0.661 x 5016 W. °c }{640 W/m²}

As = 5.18 m²

            <em>.7 Finally, we determine the length of the heat exchanger, L</em>

L = \frac{As}{\pi D}

L = \frac{5.18 m² }{\pi (0.015 m)}

L= 109.91 m

L ≅ 110 m = 11,000 cm

3 0
3 years ago
Other questions:
  • On a average work day more than work place firs are reorted​
    9·1 answer
  • Match each titration term with its definition.
    15·1 answer
  • The two pond system is fed by a stream with flow rate 1.0 MGD (million gallons per day) and BOD (nonconservative pollutant) conc
    15·1 answer
  • A_____ transducer is a device that can convert an electronic controller output signal into a standard pneumatic output. A. pneum
    13·1 answer
  • A hot-water stream at 80°C enters a mixing chamber with a mass flow rate of 0.46 kg/s where it is mixed with a stream of cold wa
    14·1 answer
  • A submarine submerges by admitting seawater (S = 1.03) into its ballast tanks. The amount of water admitted is controlled by air
    14·1 answer
  • Which of the following statements about pitot-static systems is FALSE? a). A pitot probe measures the Total Pressure of the free
    10·1 answer
  • Cite another example of information technology companies pushing the boundaries of privacy issues; apologizing, and then pushing
    9·1 answer
  • Verify if 83 is a term in the arithmetic sequence 11,15,19,23
    15·1 answer
  • What is the tolerance of number 4?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!