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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:30, Jessieeeeey
Kto rozmawia z clamentain przez krótkofalówke w the walking dead która śledzi lee w 4 epizodzie
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, bri2008
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
image
Computers and Technology, 23.06.2019 21:30, mariah10455
Write a fragment of code that reads in strings from standard input, until end-of-file and prints to standard output the largest value. you may assume there is at least one value. (cascading/streaming logic, basic string processing)
Answers: 3
image
Computers and Technology, 24.06.2019 21:50, carter4026
The use of phrases, fragments, and punctuation can influence the mood of a passage; keeping this in mind, how would you describe the mood of the followingpassage? "fog on the essex marshes, fog on the kentish heights, fog creeping into the cabooses of collier-brigs; fog lying out on the yards, and hovering in the riggingof great ships; fog drooping on the gunwales of barges and small boats. fog in the eyes and throats of ancient greenwich pensioners, wheezing by thefiresides of their wards; fog in the stem and bowl of the afternoon pipe of the wrathful skipper; fog cruelly pinching the toes and fingers of his shivering little'prentice boy on deck." (5 points)
Answers: 2
You know the right answer?
I desperately need help doing the following problems:.1. Your school is holding a talent show. Each...

Questions in other subjects:

Konu
Business, 13.12.2020 14:00
Konu
Chemistry, 13.12.2020 14:00
Konu
Mathematics, 13.12.2020 14:00
Konu
Computers and Technology, 13.12.2020 14:00