Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 05:30, xbeatdroperzx
Gerard is currently working as an entry-level customer support technician, but he would like to someday become a software developer. what is the best first step to understand what he should do? ask his manager for a new job or at least a job recommendation study graphic design in order to obtain the necessary skills use career resources to investigate what skills and education are required work part-time as an entry-level web developer question 13 (true/false worth 6 points) (08.03 lc) career resources are used to explore career options and find career information. true false question 14(multiple choice worth 6 points) (08.01 mc) classify the following skills: writing html code, evaluating color theory, using design principles. hard skills interpersonal skills people skills soft skills question 15 (true/false worth 6 points) (08.03 lc) a mentor is a person who is advised, trained, or counseled by a trusted mentee. true false
Answers: 2
image
Computers and Technology, 23.06.2019 20:30, summerhumphries3
What are some settings you can control when formatting columns?
Answers: 1
image
Computers and Technology, 23.06.2019 20:30, cristalcastro901
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, ghari112345
Jamie has to enter the names, employee id’s, and income of a group of employees into a worksheet. which option will jamie use to describe the data
Answers: 3
Do you know the correct answer?
I desperately need help doing the following problems:.1. Your school is holding a talent show. Each...

Questions in other subjects:

Konu
Mathematics, 08.10.2020 14:01
Konu
Mathematics, 08.10.2020 14:01