
Problem: you are required to write a Java program that will prompt for and read 3 integer values vac1, vac2 and vac3
representing the number of people who did not take any dose (vac1), the people who took the first and second dose (vac2)
and those who took all the three doses (vac 3) of COVID-19 vaccine respectively.
Using nested ifs determine the characteristics of this population vaccination, and display the message:
• 50% vaccination hesitancy rate! If vac1 equals the sum of vac2 and vac3.
• higher immunity rate! If vac1 smaller than the sum of vac2 and vac 3.
• lower immunity rate! If vac1 is higher than the sum of vac2 and vac3.
Also is if the number of people vaccinated with the three doses vac3 is higher or equal to 90% the total of people
(vac1+vac2+vac3), display the message Wow herd immunity! Similarly, if the number of people not vaccinated (vac1)
is higher or equals 90% of the total of people (vac1+vac2+vac3), display the message arm yourself against COVID19. Finish off by displaying the total number of people (vac1+vac2+vac3) in all cases

Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 1 images

- Note: Please answer in C++ Programming language. During Eid, it is a tradition for every father to give his children money to spend on entertainment. Chef has N coins; denote the value of the coin i by vi. Since today is Eid, Chef gives one coin to each of his two children. He wants the absolute value of the difference between the values of the coins given to the two children to be as small as possible to be as fair as possible. Help the chef by telling him the minimum possible difference between the values of the coins given to the two children. Of course, the chef cannot give the same coin to both children. Possible input 1 3 142 Required Output 1arrow_forwardUnderstanding ifStatements Summary In this lab, you complete a prewritten Java program for a carpenter who creates personalized house signs. The program is supposed to compute the price of any sign a customer orders, based on the following facts: The charge for all signs is a minimum of $35.00. The first five letters or numbers are included in the minimum charge; there is a $4 charge for each additional character. If the sign is made of oak, add $20.00. No charge is added for pine. Black or white characters are included in the minimum charge; there is an additional $15 charge for gold-leaf lettering. Instructions 1. Ensure the file named HouseSign.java is open. 2. You need to declare variables for the following, and initialize them where specified: A variable for the cost of the sign initialized to 0.00 (charge). A variable for the number of characters initialized to 8 (numChars). A variable for the color of the characters initialized to "gold" (color). A variable for the…arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





