You need to write a command-line program that asks the employee how many adults, teenagers, and children will be attending the event. The program should then calculate how many soft drinks, glasses of champagne, slices of pizza, and pieces of cake are needed for the event. You must determine on your own what you think a reasonable amount of each of these should be for each type of guest. Note that you may need to defend your determination with your lab group. The program should then present to the employee how much of each item they should buy and bring on board for the event.
Q: Imagine that you are managing a plant, and measure production each day. Production is in number of…
A: prod = 1list=[]day=1#taking input and appending in listwhile prod > 0: prod=int(input("Please…
Q: 1. Write a Python program to read the height and weight of 1 person. If the height is between 2 and…
A: Note: we had provided code according to the information provided in the question. for any…
Q: Use Python to calculate how many different passwords can be formed with 6 lower case English…
A: HI THEREI AM ADDING PYTHON CODE AS PER REQUIREMENT BELOWPLEASE GO THROUGH ITTHANK YOU
Q: In the command: print("Group: %2d" %(2)), what is thed inside the quotes used for? а. To format the…
A: Given :
Q: Write a program for Horizon Phones, a provider of cellular phone service.Prompt a user for maximum…
A: code :-- //for Scanner classimport java.util.*; public class Main{ public static void main(String[]…
Q: Python Program Write a program that prints out the command line arguments it receives, in reverse…
A: According to the Question below the Solution: Output:
Q: Write a JAVA program that determines the alert level for the COVID-19 based on the percentage of new…
A: import java.util.Scanner; public class Main{ public static void main(String[] args) { double…
Q: Write a python program that keeps track of evidence from 25 forensic cases. The user should be able…
A: I have given a python code in step 2.
Q: In Python, Write a program that continuously asks for a non-negative score until the user enters -1.…
A: def score(): total_score_entered = 0 Scores = [] possible_score_list = [] whileTrue: enter_score =…
Q: Write a python program that allows the user to choose a candidate to vote for: Candidate A for the…
A: 1) Below is python program that allows user to choose candidate to vote fo It first display options…
Q: Write a program that Requests a temperature from the user. Also asks if the temperature is in…
A: #Get the temperature from the user temperature = int(input("Enter a temperature ")) #Ask if the…
Q: Write a program that asks a user to enter numbers until user enter the commands max, min or quit. If…
A: Solution - Programming language used - Python All solution steps are included in program code as…
Q: Write a program to calculate the total employee salary (basic salary overtime house rent) based on…
A: Task :- Write a program to calculate the total salary for an employee. (Note :- As programming…
Q: It is required from you to write a program for switch light with two buttons that are connected to…
A: The required C program code is given below: #include <stdio.h>#include <conio.h>int…
Q: I am learning C++, and I am confused about the double command. I hope you could explain to me when…
A: lets understand double keyword:when you have to store a value which has decimal point value(for…
Q: Write a program that asks the user for the number of credits earned so far. If the number of credits…
A: C++ code for above : #include <iostream> using namespace std; int main() { //get…
Q: Using Python and this online interpreter, write a program that will calculate the total cost of…
A: A required Python program is as follows, def main(): gb_drives8 = int(input('Enter the total…
Q: The output should be a set of "commands" of the following form: "Move ring x from tower y to tower…
A: Explanation : Here this problem indicate the Non recursive Tower of Hanoi Problem. also the…
Q: Consider the following Python code where Line 4 is hidden (so it could be anything), the following…
A: A function is a set of instructions having name and parameters which can be called anywhere from…
Q: Write a program to calculate the total employee salary (basic salary + overtime + house rent) based…
A: Task :- Write an program to calculate the total salary for an employee. (Note :- As programming…
Q: It is required from you to write a program for switch light with two buttons that are connected to…
A: Here i am using c language to write code for the above problem given. #include<stdio.h> int…
Q: Write a program that asks the user to enter a password consisting of 7 characters. If the user…
A: Program: //import the header file import java.util.*; //definition of class class Main {…
Q: /A/The program to calculate the value of (Y) from the equation below: M² Y sinw + B2 mere: W с M…
A: Given:
Q: Write a Python program that asks a user for their name, age and password. If their age is less than…
A: Solution: Given,
Q: Write a program that allows the user to input the r- and y-coordinates of two squares, and then…
A: Sample Response: #python function to check whether suqares are in a grid. If yes, then check whether…
Q: Python Programming. Write a program that computes the cost of a long-distance call. The cost of…
A:
Q: write a java program that determine the alert level for the COVID-19 based on the persentage of new…
A: Program Plan: Import scanner package class covid main method double newCases,tests,casePercentage…
Q: This program prompts a person for income and expense amounts, then calculates their net monthly…
A: I have provided the code below. But there are a few minor(easy) changes you should make to it.…
Q: Write a program that • Requests a temperature from the user. • Also asks if the temperature is in…
A: Since here no programming language is specified. So, we are providing the program code in C++. The…
Q: The program takes three inputs from the user: day, month and year, and calculates the next date.…
A: global ny, nd, nmimport sysdef get_next_date(d, m, y): nd = 0 nm = 0 ny = 0 #…
Q: Write a program to calculate the total employee salary (basic salary + overtime + house rent) based…
A: Task :- Write a program to calculate the employee salary . Note :- As programming language is not…
Q: Write a Python program that prompts the user for the cost of two items to be purchased. Then prompt…
A: Given: Write a Python program that prompts the user for the cost of two items to be purchased. Then…
Q: With the statement, With the statement, With the statement, for(int x=1; x=70&&grade=0) case 3:…
A: All the above questions are related to control flow statements. Control flow statements are used to…
Q: (f) Compute the average reaction time of each participant in the Day-time tests (that is, the…
A: Solution: (F) So we need to compute average time of participants in day time test. Let us first…
Q: ina works in a consultancy, and she was currently associated with the task where she had to remove…
A: #Python code: class User:#Using _init_() constructor to initialize the variables with respect to…
Q: Write a program which reads a date in the format of Day-Mon-Year (17-Feb-2009) and then prints the…
A: Given:
Q: In the command: print("Group: %2d" %(2)), what is the d inside the quotes used for? a. To format the…
A: %d is used to Format the output as a decimal Integer
Q: Some people remain old fashioned and John is one of them. He doesn't like the new smart phones with…
A: First, you need to accept all inputs using Scanner class then need to validate those inputs. If…
Q: In the right triangle shown a = 17 cm and c = 50 cm. Define a and cas variables, and then: 9. a a)…
A:
Q: What would be the output of the command "awk 'BEGIN { name="Bowser"; printf "Name = %s\n", name}"…
A: As per our company guidelines we are supposed to answer only one subparts. Please repost other parts…
Q: Assuming the code x = (5 % 3) && (3 * 2 % 2); has been executed correctly, what is the value of…
A: () Parenthesis has the highest priority and associativity from left to right. Then ++/-- have the…
Q: Write a program that asks a user to enter numbers until user enter the commands: max, min or quit.…
A: Py Code: flag=0c=" "l=[]while(1): k=input() if(k=="min" or k=="Min" ): l=l+[mi]…
Q: es the square footage of a house given the dimensions of each room. Have the program ask the user…
A: As not mentioned I have solved the question in C Language Code: #include <stdio.h> float…
Q: Suppose that the cellular phone bill of a client is computed according to the following rates table…
A: Program Explanation: Prompt for the minute and number of messages value Iterate for the 10 chances…
Q: Write a program that enters the time of a phone call in seconds. If the duration of the call is a…
A: Solution: Include necessary header files In the main method declare the variable time and balance…
Q: In the right triangle shown a = 17 cm and c = 50 cm. Define a and c as variables, and then: a) Using…
A: Dear learner, hope you are doing well , I will try my best to answer this question. Thank You!!
Q: Write a program that converts a time from 24-hour notation to 12-hour notation. The following is a…
A: Let us consider a Java program that converts a time from 24-hour notation to 12-hour notation and…
Q: Write a JAVA program that determines the alert level for the COVID-19 based on the percentage of new…
A: Algorithm: Start Read number of new cases nCases Read number of PCR cases pcrCases Calculate…
Q: In python can you make a world of Zull style adventure game. The game has to have a start and end,…
A: In python can you make a world of Zull style adventure game. The game has to have a start and end,…
You need to write a command-line program that asks the employee how many adults, teenagers, and children will be attending the event. The program should then calculate how many soft drinks, glasses of champagne, slices of pizza, and pieces of cake are needed for the event. You must determine on your own what you think a reasonable amount of each of these should be for each type of guest. Note that you may need to defend your determination with your lab group. The program should then present to the employee how much of each item they should buy and bring on board for the event.
Step by step
Solved in 3 steps with 1 images
- The client wants to be able to downgrade all employee’s security levels, if the employee has a specific role.Only an employee with a role of Security should be able to downgrade all employee’s security levels basedon their role.For example the client decides that all employees with a role of Scientist should no longer have access tosecurity level 2 rooms and wants to be able to downgrade their security level from 2 to 1. An employeewith the role of Security will then execute this program to downgrade all employees security level’s withthe role of Scientist. An employee’s security level should never be below 1. If an employee tries to executethis program with a role that is not Security then security should be alerted with the employee’s name.Again, I was unsure how to achieve this, but I have started a flowchart. Could you please finish theflowchart so that I can implement this within a programming language.I am learning C++, and I am confused about the double command. I hope you could explain to me when and where I should use this one.Write a python program that keeps track of evidence from 25 forensic cases. The user should be able to enter a case number and will be given the option to see the current amount of evidence items for that specific case. The user should also be provided with an option to increase/ decrease the number of evidence items by a case-by-case basis
- write a java program that determine the alert level for the COVID-19 based on the persentage of new cases out of the PCR tests carried out as indicated in the following table Green <3% Yellow Bwtween 3% and 6% (inclusive) Orange Between 6% and 9% (inclusive) Red 9% or above % new cases = (number of new cases/number of PCR tests)*100 The program should ask the user to input the number of new cases and the number of the PCR tests that we carried out. The program should display the percentage of new cases and the alert level.Develop a python program that prompts the user to enter the number of times he / she wants to play the “Guess Heads or Tails” game. For each attempt to guess, inform the player if they have guessed correctly and give a status report on the number of plays, the number of correct guesses, the number of incorrect guesses and the correct percentage. At the end of the number of plays, evaluate the player’s record and give an evaluation rating based on the correct percentage. 0 to 30 % poor guesser 31 to 60 % fair guesser 61 to 80 % good guesser 81 to 95 % genius guesser 96 to 100 % you must be cheatingcan you implement it where if the major is comp sci or cyber sec it adds 1000 to their amount and if its both then it adds 2000 to their amount.
- provide a simple python script following the guidelines below with an explanation of how it functions, please. I've attached to pictures of the desired outcome. write a program that simulates the “Rock-paper-Scissors” game. In this game the user and the computer each pick “rock”, “paper” or “scissors”. The winner of each round is decided by the following rule: Scissors wins over Paper (it can cut the paper) but loses to Rock (itcan get crushed by the rock)Paper wins over Rock (it can wrap the rock) but loses to Scissors (it can be cut by scissors)Rock wins over Scissors( it can crush the scissors) but loses to Paper (it can be wrapped by paper)You repeat the rounds until userpicks “(q)uit” to quit the game. Specifically, the program 1.Welcomes the user and prints the rules of the game. 2.While the user pick is not “q”, repeats steps a-e: a.Generates computer’s pick using random function. b.Decides the winner based on the above rules. c.Prints the user and computer pick and…I need help with this problem. I know how to solve it to get the answers, but if I put them on the same page, either both of them are incorrect, or only one is correct and the other is incorrect. You are given the number of days that you have been driving, and you will write a Python script to work out the equivalent number of years and weeks. Aim Write a script that takes user input as days and converts the days into years, weeks, and days, and then prints them out. We can ignore leap years. The aim of this activity is to use different arithmetic operators to split days into years, weeks, and days. Steps for Completion Go to your main.py file. On the first line, ask the user how many days they've been driving for and declare the user input. It's an integer, so cast the string. Then calculate the number of years in that set of days. Next, convert the remaining days that weren't converted to years into weeks. Then, get any remaining days that weren't converted to weeks.…Write an assembly language program to convert Fahrenheit temperatures to theirequivalent in Celsius. The formula is:Celsius= ( 5/9 ) * (Fahrenheit - 32)Prompt the user for the Fahrenheit temperature and then display the Celsius temperatureas an integer.Remember that 5/9 = 0 with a remainder of 5!For most of you, you will lose points because you did not test your code well enough.Make sure and think of as many realistic test cases as possible. Using a similar format to the program below with dosbox
- Develop a program to determine the price for a custom shop sign. The price is determined by the number of colors in the sign, if the sign will have lighting, and if an old sign must be removed. Lighted signs cost 25% more than the base price, and removal of an old sign costs 10% of the base price of the new sign. You must validate the input; make sure the number of colors is greater than 0. You must use switch to calculate base price based on the number of colors. The total cost must be represented in currency ($) and two digits decimal points. Your program’s prompt and messages should look similar to the sample provided. The fee schedule is shown below: Colors in the sign Base Price 1 $250 2 $325 3 $450 4 $625 5 or more $850 For example: Num Base Price Light Remove With Light With Remove Total Cost 1 $250.00 Y Y $312.50 $25.00 $337.50 1 $250.00 Y N $312.50 $0.00 $312.50 1 $250.00 N Y…Using Python and this online interpreter, write a program that will calculate the total cost of purchasing thumb drives. An 8-gigabyte (GB) thumb drive costs $6.99, and a 32-GB thumb drive costs $12.99 if purchased in quantities of 1–5. Note: You must use different cost values than the examples provided. If you purchase 6–20, there is a 10% discount. If you purchase 21–50, there is a 15% discount. If you purchase 51–100, there is a 20% discount. There is a 25% discount for any quantity over 100. Each of the discounts will be determined by Boolean logic. An example of the necessary interaction is as follows: Enter total number of 8-GB thumb drives to purchase: 10 Enter total number of 32-GB thumb drives to purchase: 76 Total cost: $852.70 When completed, take a screenshot of your Python source code along with the example output using appropriate inputs to the running application.Write a script that takes user input as days and converts the days into years, weeks, and days, and then prints them out. We can ignore leap years. The aim of this activity is to use different arithmetic operators to split days into years, weeks, and days. On the first line, ask the user how many days they've been driving for and declare the user input. It's an integer, so cast the string. Then calculate the number of years in that set of days. Next, convert the remaining days that weren't converted to years into weeks. Then, get any remaining days that weren't converted to weeks. Print everything out.In python please