subject

I desperately need help doing the following problems:.1. Your school is holding a talent show. Each entry consists of a pair of performers. In the auditions, each partner in a pair is awarded a score between 0 and 100, and if the combined total for the pair exceeds 120, or if either performer's score exceeds 85, then the pair is accepted into the show. In addition, if a pair is awarded a combined score of less than 15, then they too are invited to perform in the show (for the novelty value).In the following code segment, invite is a boolean and p1 and p2 are ints. If p1 and p2 contain the scores for each individual in a certain pair, write code that assigns true to invite if and only if the pair should be invited to perform in the talent show.2. When you go on a date, you rate your date's fashion sense on a scale from 0 to 10. As a general rule, if the rating is 8 or more, then you will consider going out again with the same person. However, if your date's parents are wealthy, you will consider going out again with him or her if the rating is 7 or more. If the int r contains your date's rating from 0 to 10 and the boolean w contains true if and only if your date's parents are wealthy, write code that will set d to true if and only if you will consider going on another date with the same person.3. In the following code segment, the boolean variable raining contains true if it is currently raining and false if it is not. The boolean variable floodwarning contains true if there is imminent danger of floods or false if there is no such danger. The flood gates on a certain canal system should be open if it is raining or if there is an imminent danger of flooding, but if it is both raining and there is an imminent danger of flooding then they should be closed. At all other times, the gates should remain closed. Write code that sets the boolean variable open to true if the gates should be open and to false if they should be closed.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
You turn your computer on and the computer will not boot up where is something you should do to diagnose the problem?
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 1
question
Computers and Technology, 23.06.2019 01:20
Write a function balancechemical to balance chemical reactions by solving a linear set of equations. the inputs arguments are: reagents: symbols of reagents in string row array products: symbols of products in string row array elements: elements in the reaction in string row array elcmpreag: elemental composition of reactants in two dimensional numeric array elcmpprdcts: elemental composition of prducts in two dimensional numeric array hint: the first part of the problem is setting up the set of linear equations that should be solve. the second part of the problem is to find the integers from the solution. one way to do this is to mulitiply the rational basis for the nullspace by increasing larger integers until both the left-and right-side integers exist. for example, for the reaction that involves reacting with to produce and : reagents=["ch4", "o2"]; products =["co2", "h2o"]; elements =["c","h", "o"] elcmpreag=[1,4,0;
Answers: 3
You know the right answer?
I desperately need help doing the following problems:.1. Your school is holding a talent show. Each...
Questions
question
Mathematics, 16.10.2020 22:01
question
Mathematics, 16.10.2020 22:01
Questions on the website: 13722360