A factory manufactures electricity lamps, all of which are tested to find their lamp Lighting Level. Lamps are classified as either High Quality or Low Quality as follows: SAMPLE INPUT/OUTPUT Enter Lighting levels (negative to stop) 65 90 45 35 12 -1 Average of High Quality Lamps = 77.5 High Quality Lamps 2 Lighting Level Lamp Quality Low Quality Lamps 3 High Quality Low Quality If greater than 50 Otherwise
Q: An electrical utility company charges the domestic customers with the rate provided below: For the…
A: Flowchart is the pictorial representation of step by step process in solving a task.
Q: using greedy algorithm, write a c/c++ code In your program: a. Implement the problem above using…
A: Code:- #include <stdio.h> int main() { /*variables: max_weight_truck- max weight a…
Q: When a car arrives at the toll gate, the gate is closed. the gate opens as soon as the driver has…
A: In order to decide this, the machine is in one of the following six state at any moment during the…
Q: Q3/ The electric field at a point situated at a distance d from straight charged conductor is (a)…
A: The electric field at a point situated at a distance d from straight charged conductor is None of…
Q: 4. A mini 2m? solar panel energy harvester is designed to convert sun light (temperature) into…
A: ANSWER:-
Q: value of x(t) = rect (t/4) cos(0.5πt) will be
A: It is defined as the value required for the system to perform the functions.
Q: Show the average of 74 (Failed),75 (Passed), and others Output: : CAGADAS Enter First Name : ROLAN :…
A: As given, I need to write a Java code according to the given outputs. I have provided the complete…
Q: The position as a function of time of a squirrel running on a grass field is given in polar…
A: The complete answer is given below .
Q: A ______ is a delay that occurs between the time a person writes a check and the time the check…
A: A ______ is a delay that occurs between the time a person writes a check and the time the check…
Q: Calculate income tax for the given income by following the below rules: Total Income Rate (in %)…
A: In the above code, it has been asked to print the income tax on the given income, in the following…
Q: Question: An automobile company manufactures both a two wheeler (TW) and a four wheeler (FW). A…
A: Algorithm - Take input from user. Now use the below logic - if ((w & 1) || w < 2 || w…
Q: A jeans factory employees pay roll system works in a manner that if employee v hrs. they are paid…
A: Required: Write python code that:a) create a cv file using panda libraryb) write at least 5 records…
Q: Suppose a quality control chemist at a pharmaceutical company is tasked with checking the accuracy…
A: The mean of the 5 samples for the dispenser 1, 2 and 3 are 284, 296 and 286 respectively, whereas…
Q: In an old house in Russia several chests of full of hollow dolls have been discovered. These dolls…
A: ANSWER:-
Q: Objective/s: Apply logical functions given certain conditions 1. Open a new workbook and type the…
A: excel, and computation of logical functions in excel:
Q: If A=[1,2,3;4,5,6;7,8,9], then B=A([1 2],[1 2]) is
A: Given A = [1,2,3; 4,5,6; 7,8,9] So, A looks like 123456789
Q: The electricity accounts of residents in a very small town are calculated as follows: a) If 500…
A: ip = [200, 500, 700, 1000, 1500]; for i=1:5 un = ip(i); ct = 0; if un <= 500 ct = un * 0.02;…
Q: An analyst has made the following statements: Statement 1: Excel's KURT function computes Excess…
A: Here is the explanation regarding KURT function.
Q: vending machine
A: put_money: this is the first state after ‘idle’, here the customer puts in the coins.2)in_5: If the…
Q: vending machine (FSM MOORE MACHINE) sells drinks that costs $1 each. Moreover, we have only 3 types…
A:
Q: If x=5 and y=2, then not(x%y==1 and x//y>=1) will be
A: x = 5 y = 2
Q: A working example (in fact) that negative multiplied by negative equals positive
A: A less difficult algebraic evidence This algebraic evidence from Benjamin Dickman is a whole lot…
Q: An electricity distribution company wants to calculate the electricity fee to be paid by the…
A: We are given An electricity distribution company wants to calculate the electricity fee to be paid…
Q: Certain airplane component failures may be classified as mechanical, electrical, or otherwise. Two…
A: The complete answer is solved below using R Programming Langue:
Q: You want to buy carpet for your home having three rooms. Room1 is labeled as your name, Room2 as…
A: As no programming language is mentioned, it is solved using basic C++ Input all the values into…
Q: Suppose we have a nice young couple who borrow $700000 from the bank, at an annual interest rate of…
A: monthly.payment<-2000 im<-(1+3.124/100)^(1/12) # annual interest is in percentage convert into…
Q: e given. The method of assigning grade is as: Percentage More than or equal to 85 Grade A B Less…
A: Flow chart is a pictorial representation of flow of program
Q: In the figure below, let vc(0) = 60 V. Determine vc, Vz and i, for t > 0. %3D 8Ω + 12 Q 6Ω Vx | L +
A:
Q: Homework İTÜ A laboratory test was performed to obtain the change of concentration with time. Test…
A: I have implemented the code find the value at t=20 display the result as per the given description.…
Q: Phillip Heer has a gas station with one pump and one hose. Cars can fill up, one at a time, on…
A: It is defined as a term which is often used in programming and algorithm based fields. It is a…
Q: thermostat, which will turn the heat on when the room temperature drops h degrees below its set…
A:
Q: A certain grade of steel is graded according to the following condition: Hardness must be greater…
A: Actually, given information: A certain grade of steel is graded according to the following…
Q: Design the test case for boundary value analysis of the following consider a program that prompts…
A: Solution:-- 1)As per given in the question is to design the test case for the boundary value…
Q: The electric flux density D at the point M (0,4,0) in the region about a uniform line charge of 1…
A:
Q: Objective/s: Apply logical functions given certain conditions 1. Open a new workbook and type the…
A: The answer is given below:-
Q: calculations: The above function is maximized when it is differentiated and output equates to zero.…
A: I have given calculation to given question in python.
Q: An arcade machine accepts $0.50 and $0.75 tokens. Once the machine accepts at least $1.00, it stops…
A: DFA refers to deterministic finite automata. DFA machine reads an input string one symbol at a time.
Q: We have the time and we need to find out the angle of minute needle from the time as we know there…
A: #include <iostream>using namespace std; int main(){ int hr, min;…
Q: Employees of KB and SONS Consultants Limited are paid at an hourly basics of 25GHS per an hour for…
A: Answer:- Note: since you have not mention about programming language we have provided solution in…
Q: Given the following linear programming model; When building the initial board, what is the input…
A: This question comes from Number Theory which is a part of COMPUTER SCIENCE. Let's discuss it in the…
Q: When a car arrives at the toll gate, the gate is closed. the gate opens as soon as the driver has…
A: From the given data: The objective is to Construct the state transition table for the above…
Q: You are given an exam with questions numbered 1, 2, 3, . . . , n. Each question i is worth pi points…
A: Given that: Let S(i) be the highest possible cumulative score from questions I through n. Any such…
Q: -wheelers as well as four-wheelers need to manufacture as per the given data. Input Format First…
A: As not mentioned I have solved the question in C++ Code: #include <bits/stdc++.h>using…
Q: A parking lot charges different rates depending on the type of vehicle (C Semi, B- Bus). Туре Type…
A: This is a simple cpp question where we use logical or operator and relational operators in if else…
Q: insurance company, you have installed trackers into several of your customers’ cars to monitor their…
A: c code: #include <stdio.h>int bonusCheck(int acceleration[5][10],int index){ float sum=0;…
Q: To withdraw money from an ATM machine you have to insert a positive integer number that is of…
A: Here, you have to insert a positive integer number that is of multiples of 5 and does not exceed…
Q: the electricity accounts of resident in a very small town are calculated as following: *if 500 units…
A: In the above code, the input, output and the code screenshot along with the output has been…
Step by step
Solved in 3 steps with 1 images
- In C++ language, create a program that gets quarterly sales from a user, and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example that should be used/followed when executed The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications: Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters. Please make sure the average is ROUNDED 2 places to get the output 16489.74 instead of 16489.73Write a program that gives simple math quizzes. The program should display two randomnumbers that are to be added, such as:247+ 129The program should allow the student to enter the answer. If the answer is correct, a message of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed.Write a program that asks users when their birthday is. Use information provided to give them their astrological sign. Each of the twelve signs should display a different horoscope. Use the following dates for each sign, keeping in mind that both month and day must be evaluated for an accurate result. Aries: March 21–April 20 Taurus: April 21–May 21 Gemini: May 22–June 21 Cancer: June 22–July 22 Leo: July 23–August 22 Virgo: August 23–September 23 Libra: September 24–October 23 Scorpio: October 24–November 22 Sagittarius: November 23–December 21 Capricorn: December 22–January 20 Aquarius: January 21–February 19 Pisces: February 20–March 20
- plz solve it asap ????????: Write a program for a game that consists of two players. The rule of the game is that player 1 inputs a random number from 1-100. Player 2 will input 5 numbers. If the summation of those numbers is equal to the number OR less than or greater than the number by 3 (+3 or -3), then player 2 wins. Otherwise, player 1 wins. Test Case 1 Input Player 1, enter a number: 50 Player 2, enter a number: 10 Player 2, enter a number: 10 Player 2, enter a number: 20 Player 2, enter a number: 5 Player 2, enter a number: 7 Output Player 2 wins Explanation: The summation of 10,10,20,5 and 7 is 52 which is greater than 50 by 2. According to the rule, player 2 wins. Test Case 2 Input Player 1, enter a number: 50 Player 2, enter a number: 10 Player 2, enter a number: 10 Player 2, enter a number: 20 Player 2, enter a number: 5 Player 2, enter a number: 1 Output Player 1 wins Explanation: The summation of 10,10,20,5 and 1 is 46 which is less than 50 and also doesn’t…One interesting application of computers is drawing graphs and bar charts.Write a program that prompts the user to enter 5 integers, and then outputs abar chart consisting of asterisks. The number of asterisks in each line of thebar chart must be equal to the number the user entered. You may assume theuser will enter only positive integers or 0. C++ please.In PyCharm, write a program that prompts the user for their name and age. Your program should then tell the user the year they were born. Here is a sample execution of the program with the user input in bold: What is your name? Amanda How old are you? 15 Hello Amanda! You were born in 2005 import datetimename = input("What is your name? ")age = int(input("How old are you? "))year = datetime.datetime.now().yearprint("Hello " +name + " you were born in "+str((year-age))) this is my code but it is only displaying in PyCharm "what is your name?" I feel something is wrong
- Create a program that takes in a student’s full names and marks for 3 In-class exercises, then calculate the average of this marks. This average mark is then categorized as follows: Marks obtained Grade Level Message 80 – 100 1 Magnificent!! 70 – 79 2 Excellent!! 60 – 69 3 Good work!! 50 – 59 4 Good!! 0 – 49 0 Fail – Try again next Year!! Greater than 100 or less than 0 X Invalid Marks!!, Marks too high. Or Invalid Marks!!, Negative marks not allowed. Sample run 1: Enter student full names: Goodluck Johnathan Enter 3 marks separated by spaces: 78 94.6 88 Output: Student name: Goodluck Johnathan Grade Level: 1 Comment: Magnificent!! Sample run 2: Enter student full names: Ellen Johnson Sirleaf Enter 3 marks separated by spaces: 200 104.87 99.9…A certain CS professor gives 5-point quizzes that are graded on the scale5-A, 4-B, 3-C, 2-D, 1-F, 0-F. Write a program that accepts a quiz score asan input and prints out the corresponding grade.A certain CS professor gives 100-point exams that are graded on the scale90-100:A, 80-89:B, 70-79:C, 60-69:D, <60:F. Write a program that accepts an exam score as input and prints out the corresponding grade.
- Write a program that prompts the user to enter two inputs: some text and a word. The program outputs the starting indices of all occurrences of the word in the text. If the word is not found, the program should output “not found”. Example1:Input1: my dog and myself are going to my friend Input2: myOutput: 0 11 31Example 2:Input1: Programming is funInput 2: myOutput: not foundThis is a program written in C programming language. The wrong this is that this must be an iterration. The program must ask first to input his password. then the next input will be asking the password again. if the input was not the same it must be repeating, saying incorrect, asking for the password again until the input is correct. like thisinput password: shaaalaenter your password: shfhfhincorrect!enter your password: fjdbifjincorrect!enter your password: shaaalacorrect!something like thathere is my code please fix it: #include <stdio.h>int main(){ int pass = 3456; int value; printf("enter a your password: "); scanf("%d", &value); if (value == pass) { printf("password correct\n"); } else { printf("password is incorrect\n"); } return (0);}Write a computer program for calculating carburization heat treatments. The program should ask the user to provide an input for the carbon concentration at the surface (cs), and the concentration of carbon in the bulk (c0).