Write a program to which inputs the response for each student and which computes / outputs the required percentages. Assume that 25 students were surveyed. Your prompt should have the following format: Do you walk, drive or live on campus. Use W – if you walk D – if you drive L – if you live on campus Use the following data for the execution of your program: W D D L L W D D L L W W D D W L W L L D W L W L D
Q: Write a Java program to print 'Hello' on screen and then print your name on a separate line.…
A: As per our company guideline, we are supposed to answer only one question per question and kindly…
Q: We can assign a value to each character in a word based on their position in the alphabet (a = 1, b…
A: Code function balanced(word) { let alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',…
Q: in javascript please create a function that does the following and is named as such please don't…
A: Given: This function takes two numeric inputs, start and step, and returns a function of no inputs.…
Q: Write a program for a pharmacy to generate bills. The program should ask about the code associated…
A: The program is written in C++ #include <iomanip> #include <iostream> using namespace…
Q: There are N students in a class. Each student got arr[i] (1 <= i <= N) marks in mathematics exam.…
A: As no programming language is mentioned, it is solved using basic C++
Q: When analyzing data sets, such as data for human heights or for human weights, a common step is to…
A: The answer is
Q: Given the following: Group A (Tom 40, Dave 67) Group B (Jade 30, Molly 25) Group C (Max 50, Comfort…
A: Algorithm : Step 1 : declare variables. Step 2 : assign the marks of each student in each variable.…
Q: Scenario: A teacher wants a computer program that will allow her to enter the raw test scores for…
A: IPO chart stands for Input Processing Output chart. It is the visual representation of the…
Q: There are N students in a class. Each student got arr[i] (1 <=i<= N) marks in mathematics exam. Geek…
A: Answer of the given question Here is the python code of the given problem: OUTPUT:
Q: 4- Given the following table for letter grades and their corresponding remarks, write a JavaScript…
A: Given: Java script code for Grade: GRADE OUTPUT A You are excellent B You are good C You…
Q: Design a program to do the administration for a fun run competition. Participants can run a distance…
A: NOTE : SINCE THE PROGRAMMING LANGUAGE IS NOT DEFINED. SO THE PROGRAMMING LANGUAGE USED HERE IS…
Q: Write a C# program that accept a student biodata; names, age, sex and address. You should also do…
A: The detailed answer is given below:
Q: A University have decided to provide each employee a personal contact number. But they want to flag…
A: In this question we have to write a shell script where We have to code and identify the category a…
Q: Write a "Wizard Duel Matching" program in Python. In this program, two wizard names will be taken as…
A: import math as m #function to get wizard names from usersdef getWizardNames(): wizard_name =…
Q: In a library catalog, the followings are stored about each book: the author and the title, available…
A: Sol: Algorithms Step1: First of all we have taken input n for count the book Step2 then we have…
Q: We can assign a value to each character in a word based on their position in the alphabet (a = 1, b…
A: We can assign a value to each character in a word based on their position in the alphabet (a = 1, b…
Q: 3. Write a program to keep track of a hardware store inventory. For each item in the store the…
A: The following is the required C++:- #include<iostream>#include<iomanip>using namespace…
Q: Define function print_popcorn_time() with parameter bag_ounces. If bag_ounces is less than 3, print…
A: Herecour task is to write a python program for the task mentioned in the question. Let's prepare the…
Q: Construct a program to enter a list of names of pupils in a class and their corresponding marks for…
A: //The program is with C++ programing language with object oriented approach class Students{…
Q: Computer Science In python, how do I make a function that will initiate a round of a game, in a…
A: The code is given below.
Q: Direction: Create a simple Java Program that will output the grades of 1 student in different…
A: Find Your Answer Below
Q: There are N students in a class. Each student got arr[i] (1 <=i<= N) marks in mathematics exam. Geek…
A: - We have to write a code to find the number of students who have got marks greater than x in the…
Q: 2. Write a program calculating the statistics for tests of a hospital by getting data from the user…
A: Algorithm Start Var t, pt, nt, ptr, ntr Accept total test in t Accept total positive test in pt…
Q: This assignment deals with processing the monthly transactions of the clients of a bank. For each…
A: The answer for the above given program is given below:
Q: n an ancient land, the beautiful princess Eve (or handsome prince Val) had many suitors. Being…
A: Step 1: Prompt and accept the number of suitors, n. Step 2: Iterate n times and add the suitors to…
Q: et of data where each row represents a day of the week and each entry on the row represents a block…
A: Timesheet.java :-
Q: A program that accepts insurance policy data, including a policy number, customer last name,…
A: Answer: I given in the form in hand written
Q: In a chemistry class there are ten students and each the students has taken 5 tests.The total mark…
A: #include <iostream>using namespace std;/* Student class*/class Student{ public:…
Q: Lets say we are creating a python game. A word is displayed gets displayed on the screen. The…
A: - We need to know what datatype we should use for the word game problem.
Q: javascript 9. Return a Boolean if a number is divisible by 10 Here, you'll create a function…
A: Function to return true if number is divisible by 10, otherwise return false is following: function…
Q: Design a program to do the administration for a fun run competition. Participants can run a distance…
A: Program:-(in python3)…
Q: have to enter before there is a match? Write a program called birthday.py that accepts trials (int)…
A: Coded using Python 3.
Q: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making…
A: // iostream in C++ is the standard library which implement stream based input/output capabilities…
Q: This is a JAVA programming assignment. Program a Genetic Algorithm to find an integer number between…
A: int select (int popsize, double sumfitness,pouplation pop) { partSum=0; rand= Random*sumfitness;…
Q: C There is a road, the starting coordinate is 0, and the coordinatesof the line are given to draw a…
A: 1. Input the length 3.Calculate the total length 4.Calculate no of overlaps 5.Calculate max no of…
Q: (3) (a) A fair coin is flipped, if it lands on the head side, one dice is rolled and X is the…
A: a) A fair coin is flipped,if it lands on the head side,one dice is rolled and X is the resulted…
Q: Create a program that takes in a student’s full names and marks for 3 In-class exercises, then…
A: Since the programming language is not mentioned in the question. So, we have solved this question…
Q: Write a Python program that inputs five positive integer numbers, sorts them in descending order and…
A: Code: #Function to enter positive and distinct integers.def getValue():#Variable that runs loopflag…
Q: e a function called print_hangman() that takes no arguments and prints a hangman corresponding to…
A: We need to implement print_hangman() as given below:
Q: Suppose you have an investment plan where you invest a certain fixedamount every year. Modify futval…
A: #asking user to enter fiexed amount p=float(input("Enter the fixed amount : ")) #ask user to enter…
Q: Write a function shampoo_instructions() with parameter num_cycles. If num_cycles is less than 1,…
A: Q: Write function for given definition. (language: python)
Q: The greatest integer function is defined by int(x) = the greatest integer that is…
A: GREATEST INTEGER FUNCTION: The Greatest Integer Function [X] is also called the floor of X. This is…
Q: In python I have N unique coupons that are included in boxes of the cereal being sold. A consumer…
A: All the lines included after the #(hash) are python comments.To print the N unique coupons:for loop…
Q: Develop a program that allows the user to enter a start value of 1 to 4, a stop value of 5 to 12 and…
A: Hello student Greetings Hope you are doing great. As you have not mentioned any particular language…
Q: I'm running a 5-star restaurant and I can only have the best items on my menu. My menu offers 6…
A: Here we have given code in c++ for the question asked. You can find the code in step 2.
Q: write a program that creates as many child processes as the value of x. For each process, you must…
A: In this solution we write a program that creates as many child processes as the value of x (say…
This
campus, the percentage who drive to campus and the percentage who live in residence on campus.
The results of the survey are recorded as follows:
W
D
D
L
.
.
.
This data is to be interpreted as follows: the first person surveyed said that he walks – hence W is
recorded, the second person said that he drives – hence D, the third person said that he drives –
hence D, and the fourth person said that he lives on campus – hence L.
Write a program to which inputs the response for each student and which computes / outputs the
required percentages. Assume that 25 students were surveyed.
Your prompt should have the following format:
Do you walk, drive or live on campus. Use
W – if you walk
D – if you drive
L – if you live on campus
Use the following data for the execution of your program:
W D D L L W D D L L W W D D W L W L L D W L W L D
Step by step
Solved in 7 steps with 4 images
- This program deals with processing the results of a survey which was recently conducted. This survey was intended to determine the percentage of students who walk tocampus, the percentage who drive to campus and the percentage who live in residence on campus.The results of the survey are recorded as follows: WDDL... This data is to be interpreted as follows: the first person surveyed said that he walks – hence W isrecorded, the second person said that he drives – hence D, the third person said that he drives –hence D, and the fourth person said that he lives on campus – hence L. Write a C program to which inputs the response for each student and which computes / outputs therequired percentages. Assume that 25 students were surveyed. Your prompt should have the following format: Do you walk, drive or live on campus. UseW – if you walkD – if you driveL – if you live on campusUse the following data for the execution of your program: W D D L L W D D L L W W D D W L W L L D W L W L DDevelop a program that takes a set of pairs of data values (e.g. sales and month), fits a straight line to the data, and displays the results in a table and chart. Fitting a line or equation to data is done in many fields including business and scientific research. __________________________________________________________ #include <iostream> // Needed for cout and cin#include <iomanip> // Needed for setw and others#include <fstream> // Needed for ifstream#include <string> // Needed for string data type#include <cmath> // Needed for pow #include "Graph.h" // Used to graph the results using namespace std; // To use cout instead of std::cout // Function prototypesbool readArrays(ifstream& inFile, double x[], double y[], int size); int main() { // Do "Press return to continue..." on exit atexit([] {system("pause"); }); // Prompt for the name of the data file and store it in a string variable named fileName. // Put your code…I'm running a 5-star restaurant and I can only have the best items on my menu. My menu offers 6 items, each represented by a number from 1-6. If an item on my menu does not sell or does not sell that much compared to others, I must act and replace it with something that sells! Identify which dishes do not sell. If every dish sells, print the set of dishes that were ordered least. Input: A single line containing the dish number that were ordered. Treat as one number. INPUT: 156356231 Output: The list of dishes not ordered in numerical order. If every dish sells, print the set of dishes that were ordered least. Separate each number with a new line. OUTPUT: 4
- Scrabble is a word game in which words are constructed from letter tiles, each letter tile containing a point value. The value of a word is the sum of each tile's points added to any points provided by the word's placement on the game board. Write a program using the given dictionary of letters and point values that takes a word as input and outputs the base total value of the word (before being put onto a board). Ex: If the input is: PYTHON the output is: 14 tile_dict = { 'A': 1, 'B': 3, 'C': 3, 'D': 2, 'E': 1, 'F': 4, 'G': 2, 'H': 4, 'I': 1, 'J': 8, 'K': 5, 'L': 1, 'M': 3, 'N': 1, 'O': 1, 'P': 3, 'Q': 10, 'R': 1, 'S': 1, 'T': 1, 'U': 1, 'V': 4, 'W': 4, 'X': 8, 'Y': 4, 'Z': 10 } ''' Type your code here. '''C++ Write a program that simulates the minute-by-minute operation of a checkout line, such as one you might find in a retail store. Use the following parameters: Customers arrive at the checkout line and stand in line until the cashier is free. When they reach the front of the line, they occupy the cashier for some period of time (referred to as ServiceTime) measured in minutes. After the cashier is free, the next customer is served immediately. Customers arrive at the checkout line at ArrivalRate per minute. Use the function included below (customerArrived()) to return the number of customers arriving in a given minute, determined randomly. The line can only hold so many people, MaxLineSize, until new arriving customers get frustrated and leave the store without purchasing anything. The overall time of the simulation is SimulationTime, measured in minutes. The program should take 5 inputs (to be read from a text file named simtest.txt, one per line): SimulationName - a string…Imagine you are working for a lumber company, and your employer would like a program that calculates the cost of lumber for a customer order. The company sells pine, fir, cedar, maple, and oak lumber. The lumber is priced by board feet. One board foot equals one square foot that is one inch thick. The price per board foot is given in the following table: Pine 0.89 Fir 1.09 Cedar 2.26 Maple 4.50 Oak 3.10 The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4 inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). Create a blank c++ Give the customer instructions and then ask the user (customer) to identify the items they wish to purchase by inputting the type of wood, the length, width, & heights of the board, and the number of boards they desire. Allow the user to…
- Write a program that computes the fuel efficiency for a multi-leg journey. The program will first prompt for the starting odometer reading and then get information about a series of legs. For each leg, the user enters the current odometer reading and the amount of gas used (separated by a space). The user signals the end of the trip with a blank line. The program should print the miles per gallon achieved on each leg and the total MPG for the trip.You are working for a lumber company, and your employer would like a program that calculates the cost of lumber for an order. The company sells pine, fir, cedar, maple, and oak lumber. Lumber is priced by board feet. One board foot equals one square foot that is one inch thick. Theprice per board foot is given in the following table: Pine 0.89Fir 1.09Cedar 2.26Maple 4.50Oak 3.10 The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4 inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). An entry from the user will be in the form of a letter and four integer numbers. The integers are the number of pieces, width, height, and length. The letter will be one of P, F, C, M, O (corresponding to the five kinds of wood) or T, meaning total. When the letter is T, there are no…Please do this in Python Programming and provide Screenshots The output should be exact same like in the examples. If the output in the example is in 2 decimals, then it should be like that. 1c - Othello 1 Othello, is a 2-player deterministic (no use of dice), perfect information (no information only known to one of the players) board game, similar to chess or go. The goal of this assignment is to give some information about the outcome once an Othello game has finished. This information is obtained by two measurements: The percentage of black pieces of all the pieces on the board. The percentage of the board that is covered in black pieces. The Othello board measures eight squares by eight squares, making the total number of squares sixty-four. Write a program that takes the number of white pieces followed by the number of black pieces as input. Print the two percentages as output. Enter the number of white pieces on the board: 34Enter the number of black pieces on the board:…
- A circus is designing a tower routine consisting of people standing atop one another'sshoulders. For practical and aesthetic reasons, each person must be both shorter and lighter thanthe person below him or her. Given the heights and weights of each person in the circus, write amethod to compute the largest possible number of people in such a tower.Please answer it in Python Suppose we play a game where each round takes place in the following way: first, we roll a dice, and its result gives the number of points at stake. Then, the player can, if he wishes, trigger his bonus "double account" or his bonus "triple account". Then, the player answers a number of questions, and calculates his percentage of correct answers. The points awarded to the player for that round are then calculated based on the percentage of correct answers and the number of points in play rounded to the nearest integer (for example, with 50% correct answers and 6 points in play, the player gets 3 points; with 45% correct answers and 8 points in play, the player gets 4 points). Finally, this number of points is possibly multiplied by two or three if the corresponding bonus has been used. Write a function points_match that takes as an argument the percentage, the number of points at stake, and as an optional argument the multiplier (which is worth 2 in a double…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