Suppose one of your friends, who paints the insides of houses, has asked you to develop a program that determines and displays how much paint is needed to paint a room if the length and width of the room is input. What information are you lacking that you need to write this program? Write at least three questions that you would need to ask your friend before starting the project.
Q: Design a Geometry class (Geometry.java) with the following methods:
A: Program with commented explanation and output is below.
Q: One of the great things about a numerical simulation is that you can easily adjust it to account for…
A: - We have to explain what the code fragment is doing. - The code fragment :: if r[i+1] <= 0:…
Q: Sometimes we write similar letters to different people. For example, you might write to your parents…
A: Note: Since no programming language is mentioned in the question, the program has been provided in…
Q: Write a program to simulate showing an NBA Team on a Basketball court. Here is an example of the…
A: Given Data:- The code is given below on step 2
Q: Create an algorithm (either flowchart or pseudocode) that you will use to write the program. Place…
A:
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: You require an algorithm that will receive the dimensions of a fish tank from the screen (length,…
A: Write an algorithm to find the volume of a fish tank. Get the dimensions of the fish tank in the…
Q: Write a program called CashRegister.cpp. The program should prompt the user for each item they are…
A: Create two seperate vector one store item price and second one atore item list. Don't write full…
Q: Try to design a game in which the user has to guess a number and If it is in 100 to 125 then you…
A: Ans: Code: import java.util.*;public class Main{ public static void main(String[] args) {…
Q: In geometry, an octagon is an eight-sided polygon. Each internal angle is 135 degrees. Based on what…
A: Turtle graphics : right(angle): rotate the pen in the clockwise direction by an angle x.…
Q: For the first part of you will write a program similar to the classic Guess My Number game. To start…
A: First we import random module using import random Now we use the randit function of random module…
Q: Write a program to replace a forbidden word with asterisks in a set of text and prints the text to…
A: Please find the answer below :
Q: In geometry, an octagon is an eight-sided polygon. Each internal angle is 135 degrees. Based on…
A: Each octagon side has a length of 40 units. Each octagon has a different color. The border lines…
Q: Write a program that calculates and displays the total travel expenses of a businessperson on a…
A: Travel Expenses using functions: C++ program that calculates and displays the total travel…
Q: This is for a Java program that I did in the past..just going over some old code and wanted to…
A: Given that Write a java program that prompts the user to inpu the amount of rice , in pounds, in a…
Q: Write a program that simulates a fortune cookie. The program should display one of five unique…
A: The solution for the above-given question is given below:
Q: Problem John is developing a python program that comes up with a number and allows the user to guess…
A: Algorithm Steps for the required guess function:- In the first If statement, check if…
Q: Can someone code a text-based game that have 6 'rooms' and each room has a task ( a question that…
A: Below is the required python program: - Approach: - Define the main Declare the variable good to…
Q: The box Problem: You have been given a flat cardboard of area, say 70 square inches , to make an…
A: Declare a variable's length, width, height, and volume and initialize the default values. Read the…
Q: Input The input begins with an integer 1 ≤ ? ≤ 10000, the number of frosh. For each frosh, a line…
A: Here I have the code in C++ but you can apply converter and get it in your language.
Q: or Luigi could be described as this thing if you are talking about them in technical Debugging ?…
A: Here the question is to match the following thing to its correct options: here various things given…
Q: Suppose you shop for rice and find it in two different- sized packages. You would like to write a…
A: Program to get better price
Q: I need to make a Java game program where the user picks one of three categories. And each of those…
A:
Q: Please help me create a trivia game using java. Please make the trivia game similar to games like…
A: Code implementation: //The below is a number guessing gameimport java.util.Arrays;import…
Q: de with comments and output screenshot .
A: Here, From question Java code to calculate the average waiting time In the SJF algorithm is given…
Q: It has been suggested that the control software for a radiation therapy machine, used to treat…
A: N-version programming is a useful approach to improve the quality of software, especially for…
Q: We want to create a program that draws a diamond or a triangle with a size that the user selects…
A: The required Java code is: import java.util.Scanner;public class pattern { public static void…
Q: Write a program that creates two rectangular shapes and then animates them. The two shapes should…
A: Write a program that creates two rectangular shapes and then animates them. The two shapes should…
Q: In a 50-person class, students with grades below 70 are considered unsuccessful. Write an algorithm…
A: Algorithm: Step 1: Start Step 2: Declare grade variable Step 3: Input grade Step 4: if…
Q: In PyCharm, write a program that prompts the user for their name and age. Your program should then…
A: PROGRAM CODE: # take name of user as inputuser_name = input("What is your name? ")# take age of the…
Q: Find the cut point of the line that cuts the grid at a 30 degree angle, then find the distances…
A: #include <bits/stdc++.h>using namespace std; #define pdd pair<double, double> void…
Q: Please look at the images for the programming question. I am not sure sure where I should start on…
A: Few things to consider are: 1. variable balance must be available to all methods. Therefore, make…
Q: write a program that reads a line of text and then displays the line, but with the first occurrence…
A: Given below program reads the first occurrence of “hate” and displays “love “ in place of “hate”.
Q: How to initialize a screen to a given size How to use an image as your background How to move the…
A: Here, I have to write a python solution to the above question.
Q: a) (Please name this program Lab2b_Prog2a.py.) Write a program that will take two observed 3D…
A: ####################################################################…
Q: A room has one door, two windows, and a built-in bookshelf and it needs to be painted. Suppose that…
A: Since you are not mentioning the programming language, here we are using C++ to complete the…
Q: Suppose your instructor gives three exams during the semester and you want to write a program that…
A: Program: using System; using System.Collections.Generic; using System.ComponentModel; using…
Q: Write a program that will help you to learn multiplication. The program prompts the user to enter…
A: As there is no programming language mentioned in this question so program is attempted in c++…
Q: annot be "hard" programmed. The display parameter will therefore be the position in the window and…
A: Using predefined function using System; public class GFG { public static int HexToDec(String n)…
Q: Write a program that resembles a phone book, which stores and displays the names, the addresses…
A:
Q: I need help programming a flower that blooms (I want it to open and close). Eventually, I will…
A: Please upvote please. I am providing you the required code in java.Please upvote I need it badly.…
Q: Help with Java Programming Create a program that simulates a meeting reservation system. This…
A: Code : package in.twister; import java.util.ArrayList;import java.util.Comparator;import…
Q: s that are to be added, such as: 247+129 = The program should wait for the student to enter the…
A: Code : #include <iostream>#include <iomanip>#include <cstdlib>#include…
Q: The first image is the question, and the second one is my answer. Please check my answer and write…
A: domains = { 'V1': [1, 2, 3,4], 'V2': [1, 2, 3,4], 'V3': [1, 2, 3,4], 'V4': [1, 2, 3,4],…
Q: Write a program that converts an input inch(es) into its equivalent centimeters.
A: here in this question we have asked to write a program that convert inches to centimeter.
Q: Write an Arduino program that simulates a robot car using: • Two gear motors (DC motors) • One motor…
A: Answer is given below-
Q: Write a program that prints out the name of my favourite dinosaur, Tyrannosaurus Rex: Tyrannosaurus…
A: As given, I need to write a Python program that prints the name of a dinosaur, Tyrannosaurus Rex. I…
Suppose one of your friends, who paints the insides of houses, has asked you to develop a program that determines and displays how much paint is needed to paint a room if the length and width of the room is input. What information are you lacking that you need to write this program? Write at least three questions that you would need to ask your friend before starting the project.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Bob is playing a game. He and his team have come up with a plan to throw a ball so that it can hit the target object. The target is at a distance of X meters from Bob. He is at a height of Y meters from the ground and the target is at a height of Z meters from the ground. Bob can throw the ball with a certain speed Task Determine the speed that he should throw the ball. Notes He is aiming at an angle parallel to the ground. Assume acceleration due to gravity is 10m/s² Example Assumptions • X = 2 • Y=5 • Z=2 Approach It can be calculated that he needs to fire at speeds 2.58m/s at an angle parallel to the ground respectively. The answers are taken up to 2 decimal places only. Hence, the answer is 2.58 m/s. Function description Complete the solve function provided in the editor. This function takes the following 3 parameters and returns the minimum speed required: • X Represents an integer denoting the distance of the target from Bob • Y Represents an integer denoting the height of Bob…Write a C# program that plays a guessing game with the user. Your program should select a random number between 1 and 50 and then let the user try to guess it. The program should continue asking the user for a number until he guesses correctly. (See below for some tips on random numbers). CHALLENGE #1: Modify your program so that it only allows the user 10 guesses, and then declares them to be an inadequate guesser if they haven’t gotten it correct. Your program should output the random number chosen. CHALLENGE #2: Modify your program so that after they guess a number (or get declared inadequate, if you do Challenge #1) that it asks them if they want to play again, and responds accordingly.Write a C# program that plays a guessing game with the user. Your program should select a random number between 1 and 50 and then let the user try to guess it. The program should continue asking the user for a number until he guesses correctly. (See below for some tips on random numbers). CHALLENGE #1: Modify your program so that it only allows the user 10 guesses, and then declares them to be an inadequate guesser if they haven’t gotten it correct. Your program should output the random number chosen. CHALLENGE #2: Modify your program so that after they guess a number (or get declared inadequate, if you do Challenge #1) that it asks them if they want to play again, and responds accordingly. Some Random Number Generation HintsRandom rndNumber = new Random();Console.WriteLine(rndNumber.Next()); //random integerConsole.WriteLine(rndNumber.Next(101)); //random integer between 0 and 100Console.WriteLine(rndNumber.Next(10, 43)); //random integer between 10 and…
- The Yukon Widget Company manufactures widgets that weigh 9.2 pounds each. Write a program that calculates how many widgets are stacked on a pallet, based on the total weight of the pallet. The program should ask the user how much the pallet weighs by itself and with the widgets stacked on it. It should then calculate and display the number of widgets stacked on the pallet.create a Python application that applies concepts of decorators in Python. Scenario: You are creating a text-based adventure game that will give the player a scenario and will allow them to pick a variety of actions that they can perform, which will then lead to another scene with another set of actions. The theme or story of the text-based adventure game will be up to you to decide. You can either base it on an existing story or come up with an original story of your own. If you are basing your story on an existing story, please tweak it or add some unique changes of your own to distinguish your story. Your text-based adventure game should have a minimum of 5 "levels" or "steps" in the story. In other words, the text-based adventure game should allow the player to make 5 actions in a row minimum that will not result in a game over for the player. This means that you can have "game over" states that end after the 1st or 2nd action, but at least one string of actions must have 5 actions…In various applications, you are often asked to compute the mean and standard deviation of data. The mean is simply the average of the numbers. The standard deviation is a statistic that tells you how tightly all the various data are clustered around the mean in a set of data. For example, what is the average age of the students in a class? How close are the ages? If all the students are the same age, the deviation is 0. Write a program that prompts the user to enter any number of values into a double array, and then calculates and displays the mean and standard deviations of these numbers using the following formulas: mean)? 2i +x2 + .. + xn i=1 i=1 mean = deviation = п - 1
- In various applications, you are often asked to compute the mean and standard deviation of data. The mean is simply the average of the numbers. The standard deviation is a statistic that tells you how tightly all the various data are clustered around the mean in a set of data. For example, what is the average age of the students in a class? How close are the ages? If all the students are the same age, the deviation is 0. Write a program that prompts the user to enter any number of values into a double array, and then calculates and displays the mean and standard deviations of these numbers using the following formulas: (z - mean) z+z3+ *** +zn deviation = mean = n-1 Required Methods You must write your program so that the following methods are defined/implemented and used (called): • /* Compute the deviation of double values */ public static double deviation (double[] x) • /* Compute the mean of an array of double values */ public static double mean (double[] x) Sample Run (user input…A junior magician has picked a secret number. He has hidden it in a variable named secret_number. He wants everyone who run his program to play the Guess the secret number game, and guess what number he has picked for them. Those who don't guess the number will be stuck in an endless loop forever! Unfortunately, he does not know how to complete the code. Your task is to help the magician complete the code in the editor in such a way so that the code: will ask the user to enter an integer number; will use a while loop; will check whether the number entered by the user is the same as the number picked by the magician. If the number chosen by the user is different than the magician's secret number, the user should see the message "Ha ha! You're stuck in my loop!" and be prompted to enter a number again. If the number entered by the user matches the number picked by the magician, the number should be printed to the screen, and the magician should say the following words: "Well done,…In this homework assignment, you are going to code a java program which uses random numbers to create a guessing game. This will give you practice with random numbers and loops while allowing you to explore and understand a little more Java code. You will also need to test out this program to ensure the correctness of the algorithm and code. You will need to develop test data that will represent all possible kinds of data that the user may enter. You are going to write a program that allows the user to play a simple guessing game in which your program thinks up an integer between 1 and 100 and allows the user to make guesses until the user gets it right. (The program also counts how many tries it took to get the correct number). For each incorrect guess you will tell the user whether the right answer is higher or lower. Your program is required to exactly reproduce the format and behavior of the log of execution. Program should output: (Sample user output written in bold) This program…
- A python program that lets the user play the game of Rock, Paper, Scissors against the computer. The program should work as follows: When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. (Don’t display the computer’s choice yet.) The user enters his or her choice of “rock,” “paper,” or “scissors” at the keyboard. The computer’s choice is displayed. A winner is selected according to the following rules: If one player chooses rock and the other player chooses scissors, then rock wins. (Rock smashes scissors.) If one player chooses scissors and the other player chooses paper, then scissors wins. (Scissors cuts paper.) If one player chooses paper and the other player chooses rock, then paper wins. (Paper wraps rock.) If both players make the same choice, the game must be played…C++ coding In order to paint a wall that has a number of windows, we want to know its area. Each window has a size of 2 ft by 3 ft. Write a program that reads the width and height of the wall and the number of windows, using the prompts Wall width: Wall height: Number of windows: Then print the area with two digits after the decimal point: Area: ...During the course of the semester, we worked on understanding the fundamentals of computer science. When teaching, I would explain things and if someone in the class didn't understand, I would go over this subject with them again. If everyone understands it I would move onto the next topic. Your goal is to write a class simulator. Follow the steps: 1. Generate a random number between 1 - 3 to represent the number of topics I need to cover that day. 2. Loop through each of these "subjects" 3. Print out the word "Teaching" followed by subject number (numbers 1, 2 or 3) 4. Generate a random number between 1-5 to represent the chance that everyone understands. 5. Print out the word "Understanding" followed by the chance everyone understands. 6. Repeat steps 4 and 5 until Understanding is at a 5. 7. Repeat steps 2 - 6 until all topics are complete 8. Print "All Done" at the end of the program. This part does not repeat. Example Run (This will not match everyone because of the random…