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, 22.06.2019 11:00
When building customer relationships through email what should you not do? question 2 options: utilize proper grammar, spelling, and punctuation type in all capital letters use hyperlinks rather than attachments respond to all emails within 24 hours
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
How do we use the sumif formula (when dealing with different formats) ?
Answers: 1
question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
You know the right answer?
I desperately need help doing the following problems:.1. Your school is holding a talent show. Each...
Questions
question
Arts, 28.04.2021 23:30
question
Computers and Technology, 28.04.2021 23:30
Questions on the website: 13722367