You have been hired by a local organic sod company to write coverage calculator for their website. Organic sod is cut into rectangles 9 square foot in area for lawn installation. Your program will prompt the customer for the length and the width of a rectangular area being covered with sod. Implement the following "pseudocode" to obtain the number of pieces to order. • Compute the area of the rectangle to be covered Divide the area by 9 • Convert the result to an integer and then add 1 Below is a sample run with Python output in blue and user input in black. Enter length:200 Enter width:40 You should order 889 pieces.
Q: Could someone give me an example of how to design a UML/class diagram for a Python program? Mainly j...
A: UML class diagram: In the project tool window, right-click an item for which you want to create a di...
Q: drawn pl
A: The file robot supervisor interface.py, which defines the complete API for sensory communication and...
Q: Create a c++ program and flowchart, algorithm. that will input for prelim, midterm and finals then c...
A: Start Read prelim score Read midterm score Read final score Calculate average If average>50 print...
Q: Type two statements. The first reads user input into person_name. The second reads user input into a...
A: HI THEREI AM ADDING ANSWER IN PYTHON BELOWPLEASE GO THROUGH ITTHANK YOU
Q: Give two information systems that are used in Medicine field and who are its users, its cost?
A: 1)Electronic Health Record (EHR):- An electronic health record (EHR) is a digital version of a patie...
Q: What's the difference between an Availability Zone and a Region?
A: Introduction: AWS Regions are big and widely spread geographically. Availability Zones are discrete ...
Q: How many distinct arrangement of 8 letters taken from a set of from 21 consonants and 5 vowels such ...
A: First we need to select 4 letters from 26 letters. This can be done using combinations formula nCr ...
Q: Difference between NFA & DFA? Explain
A: DFA is the short form for the deterministic finite automata and NFA is for the Non-deterministic fin...
Q: implementation of the Caesar cipher (Section 5.3 in the textbook), which we discussed in class. Caes...
A: Java code for Caesar Cipher import java.util.Scanner; public class CaesarCipher{ public static Stri...
Q: Explain how in-database analytics works.
A: In-database analytics are those that are carried out within the database rather than through the dat...
Q: describe the input
A: Introduction: Data entered into or received by a computer is referred to as an input. A user hitting...
Q: Is an incubator the best solution for start-ups to find funding? Why or why not?
A: Please upvote me please. I need it badly. I am providing you the correct answer below.
Q: How can Amazon Route 53 ensure high availability while maintaining low latency?
A: Introduction: Amazon Route 53 ensure high availability while maintaining low latency Amazon Route...
Q: 1.) Create a c++ program to find the roots of a quadratic equation by taking a, b and c as an input ...
A: As per our guidelines we are supposed to answer only one question kindly repost other question as a ...
Q: What is the definition of page fragmentation ?
A: Introduction: Fragmentation is an unwelcome condition in the operating system in which processes are...
Q: Create a program that uses C language that solves the function below: f(x) = 3x = ex
A: C code for ex to show the value equal to f(x) #include <stdio.h> float exponential(int a, floa...
Q: Construct a truth table for the Boolean expression given below. f (x, y, z) = x(yz +z) %3D
A: INTRODUCTION: A truth table is a mathematical table used in logic, specifically in relation to Bool...
Q: what is nextjs
A: Lets see the solution.
Q: mainc Tests Executions 4. Fill in the Gaps by CodeChum Admin E Run Tests The foundation for our buil...
A: C Code: #include<stdio.h> int main() { int i,j,n[9999],m,t; scanf("%d",&m); for(i=1;i...
Q: Java langauge
A: Given :- A car's mile per gallon can be calculated with the above given formula as, MPG = Miles driv...
Q: Python Big-O Coding pls answer only if u know Big-O!! Note for correct answers: Fi...
A: T(a,n)=T(aT(n/b) + o(a(n)) T(x,y)=2T(n/2)+O(1)
Q: this file is named HW3.Java can someone run it through a GNU compiler and please show me the outputs...
A: The output is shown below.
Q: Let R1 and R2 be the relations on {1, 2, 3, 4} given by R, = {(1,1), (1,2), (3,4), (4,2)} R, = {(1,1...
A: answer - (i) Given: R1 = {(1,1),(1,2),(3,4),(4,2)} R2 = {(1,1),(2,1),(3,1),(4,4),(2,2)} Therefore R1...
Q: The IEEE single-precision representation 0x42c88000is equivalent to thedecimal value Blank 1
A: in single precision, first bit is sign bit .next 8 bit is exponent and other will be mantissa.
Q: The problem is from Introduction to Programming and Data Structures with C++, 4th edition (Algebra:...
A: Program Explanation: Declare the header files Define the main function Declare three variables a,...
Q: Given: Consider the function below written in Python3: def foo(a, b=[1]): if a <= 1: return b b_new ...
A: Given: Given the function of the code in python 3 We have to answer Worst case time complexity of...
Q: When does Oracle 12c construct an index automatically for a table?
A: An index is an optional structure associated with tables and collections, which you can explicitly c...
Q: Why is Rocket Internet Controvesial?
A: Rocket Internet is a German based organization that provides internet services.
Q: Question 7 Consider the following code fragment. What would be the expected output given age = -10? ...
A: Answer is option (B) "Invalid age. less than 0." Code: #include <iostream> using namespace s...
Q: 14. In this c++ program. Create a flowchart and Algorithm
A:
Q: To vary your reporting, you decided to include graphical representation. Create a clustered column ...
A:
Q: Which of the following is printed to standard output when the following expression is executed fprin...
A: The Syntax of fprintf() is wrong in the given question so it won't print any options which are given...
Q: Write an ALP for 8085 to obtain 2's complement of 16 bit number present in memory location "MEM1" an...
A: Assume MEM1 is lower bit location = 2000H and MEM2 is higher bit location = 2001H and result locati...
Q: ort, and bubble sort in the language of your choice and compare their performance on random arrays o...
A: a) Before starting the array would be S H E L L S O R T I S U S E F U L n = 17, k = 17/2 = 8 ...
Q: ou just recently opened a business that will be selling items on the Internet. You don’ t actually h...
A: You just recently opened a business that will be selling items on the Internet. You don’ t actually ...
Q: + n
A: given - PLS SHOW STEP BY STEP OF BOTTOM UP RECURSION SOLUTION TO 1 + 2 + 3 + ... + n
Q: Is there any part of a network that can give less severe security so that a web server can be more e...
A: Because only a limited number of broadcasts will occur in the broadcast domains, hackers or viruses ...
Q: write assembly x86-64 language function to take an array of integers and find out average.
A: Assembly x86-64 language function to take an array of integers and find out average DATA SEGMENT ...
Q: This site can't provide a secure connection ievolvecontent.ultimatix.net sent an invalid response. T...
A: this is the proxy issue when you are connecting with some secure site with a company asset this issu...
Q: set is orthog
A: given - Justify why an instruction set is orthogonal by describing what it means in terms of symmetr...
Q: Hello therei I am a robot that was made to read and analyze numbers of all sorts. Ive been doing sim...
A: PROGRAM INTRODUCTION: Include the required header files. Declare the required variables. Take the s...
Q: What is a firewall's principal purpose? What are the general guidelines for using packet filtering?
A: What is a firewall's principal purpose?What are the general guidelines for usingpacket filtering?
Q: In a database, how can you utilize a sequence?
A: An object tied to a schema, a sequence creates a list of numbers. For a variety of applications, uni...
Q: describe how hybrid cloud platforms such as Dropbox work in detail.
A: Introduction: A hybrid cloud system combines public and private cloud services.
Q: When does Oracle 12c construct an index automatically for a table?
A: Index Index on a table helps to access the data faster. Means, when search the data base table us...
Q: Computer operating systems are not responsible for prioritizing and controlling the tasks performed ...
A: Operating system is the user interface which allows users to interact with hardware to execute tasks...
Q: What is an ASP (Application Service Provider) and why is this an attractive purchasing alternative?
A: Solution: An Application Service Provider (ASP) is defined as an enterprise that delivers applicati...
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- The Research team led by Bernadette Wolowitz at Cal-tech University has discovered a new Amoeba that grows in the order of a Fibonacci series every month. They are exhibiting this amoeba in a national. conference. They want to know the size of the amoeba at a particular time instant. If a particular month's index is given, write a program to display the amoeba's size. For Example, the size of the amoeba on month 1, 2, 3, 4, 5, 6,... will be 0, 1, 1, 2, 3, 5, 8.... respectively.Using Java and using only the scanner class: Part B: For Loop Program Write a program to compute the sum of the first N Fibonacci numbers, where N is an integer that is input by the user. Once it computes the sum, the program will prompt the user for a new value of N. The program will exit if the user enters a non-integer number or string (such as “quit”) instead of an integer. Additionally: For both the above problems, the first four numbers of the Fibonacci sequence are: 0, 1, 1, and 2. Part A must use While loops only. Part B must use at least one For loop, but may also use while loops. Sample output and a suggested flowchart is provided for Part A, but not part B.Write a simple calculator which supports add subtract multiply and divide. Prompt the user for two numbers and an operation. Use number 1-4 for menu options. If divide is selected and the second number is zero, output an error message. If an invalid menu option is selected, output an error message. If all is well, perform the operation and output the result to one decimal. Please write in Java that results like test case examples. Thanks
- 7) The ideal gas law allows the calculation of volume of a gas given the pressure(P), amount ofthe gas (n), and the temperature (T). The equation is:V = nRT / PSince we only have used integer arithmetic, all numbers will be integer values with nodecimal points. The constant R is 8.314 and will be specified as (8314/1000). This givesthe same result. Implement the idea gas law program where the user is prompted for andenters values for n, T, and P, and V is calculated and printed out. Be careful toimplement an accurate version of this program. Your program should include a properand useful prompt for input, and print the results in a meaningful mannerC++ In this task, you are required to write a code that converts an Octal number into its equivalent Decimal value or vice versa. The user first selects the conversion choice by inserting 1 or 2. Choice 1 is followed by inserting an Octal integer and getting its Decimal equivalent value as an output. Choice 2 requires inserting a Decimal integer and prints out its Octal equivalent. The Octal numeral system, is the base-8 number system, and uses the digits 0 to 7, that is to say 10 octal represents 8 Decimal and 100 octal represents 64 Decimal. Convertion from an Octal integer into Decimal In the Decimal system, each number is the digit multiplied by 10 to the power of its location (starting from 0). For example: 74 decimal = 7 x 10^1 + 4 x 10^0 1252 decimal = 1 x 10^3 + 2 x 10^2 + 5 x 10^1 + 2 x 10^0 each number is the digit multiplied by 8 to the power of its location (starting from 0). For example: 112 octal = 1 x 8^2 + 1 x 8^1 + 2 x 8^0 Converting an Octal integer into…For My Java class, this being my first programming class, I have been asked to complete the following to learn Loops. Next is arrays but I was hoping to get help understanding this first. Thanks 1-Design a program that asks the user to enter a series of positive numbers. The user should enter a negative number to signal the end of the series. After all the positive numbers have been entered, the program should display their sum. 2-The distance a vehicle travels can be calculated as follows: Distance = Speed x Time Design a program that asks a user for the speed of a vehicle in miles per hour and how many hours it has travelled (Assume the two values are integers). Your program should then use a loop to display the distance the vehicle has traveled for each hour of that time period. (For example, entering 50 mph and 4 hours should produce output like: Hour 1: 50 miles, Hour 2: 100 miles, Hour 3: 150 miles, Hour 4: 200 miles. ) 3-Design a program that uses nested loops to display a…
- Can you write a new code in Java language with the values I sent you, just like this output? There are two files named group1.txt and group2.txt that contain course information and grades of each student for each class. I will calculate each course average for each group and show in simple bar graph. Use "*" and "#"characters for group1 and group2, respectively. I will see the number -999 at the end of each line in the input files. This value is used for line termination and you can use it to verify that you have arrived at the end of the line. The averages of each group should also be calculated and printed at the end of the file. Group 1: CSC 80 100 70 80 72 90 89 100 83 70 90 73 85 90 -999 ENG 80 90 80 94 90 74 78 63 83 80 90 -999 HIS 90 70 80 70 90 50 89 83 90 68 90 60 80 -999 MTH 74 80 75 89 90 73 90 82 74 90 84 100 90 79 -999 PHY 100 83 93 80 63 78 88 89 75 -999 Group 2: CSC 90 75 90 75 80 89 100 60 80 70 80 -999 ENG 80 80 70 68 70 78 80 90 90 76 -999 HIS 100 80 80 70 90 76 88…By looking at this formula, F=9/5C+32, it can be used to convert Celsius temp to Farenheight. Write a program that shows a TABLE of all celsius temps 0-20 with the Farenheight equivalency next to it in table. , use while loop and "F" is the Farenheight temperature and "C" is the Celsius temperature. Thanks!!! Not sure how to make a "table" in Java and this would help a lot. :)Write a program that asks the user to enter 10 numbers, that range from 10-100. Make sure that you do not accept any numbers less than 10, if a user enters a number that is less than 10 then ask him again. Once the user enters all 10 numbers, sort the numbers entered in ascending order and print them out. CSharp
- in java Integer numInts is read from input representing the number of integers to be read next. Use a loop to read the remaining integers from input into variable value. For each integer from 0 to numInts minus 1, inclusive, output the integer followed by " grapes". End each output with a newline. Click here for exampleEx: If the input is: 2 14 12 then the output is: 14 grapes 12 grapes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import java.util.Scanner; public class NumberOfGrapes { publicstaticvoidmain(String[] args) { Scannerscnr=newScanner(System.in); intnumInts; intvalue; inti; numInts=scnr.nextInt(); /* Your code goes here */ } }(Python) Given the code that reads a list of integers, complete the number_guess() function, which should choose a random number between 1 and 100 by calling random.randint() and then output if the guessed number is too low, too high, or correct. Import the random module to use the random.seed() and random.randint() functions. random.seed(seed_value) seeds the random number generator using the given seed_value. random.randint(a, b) returns a random number between a and b (inclusive). For testing purposes, use the seed value 900, which will cause the computer to choose the same random number every time the program runs. Ex: If the input is: 32 45 48 80 the output is: 32 is too low. Random number was 80. 45 is too high. Random number was 30. 48 is correct! 80 is too low. Random number was 97. # TODO: Import the random moduleimport random def number_guess(num): # TODO: Get a random number between 1-100 ran_num = random.randint(1,100) # TODO: Read numbers and compare to…(Python) Given the code that reads a list of integers, complete the number_guess() function, which should choose a random number between 1 and 100 by calling random.randint() and then output if the guessed number is too low, too high, or correct. Import the random module to use the random.seed() and random.randint() functions. random.seed(seed_value) seeds the random number generator using the given seed_value. random.randint(a, b) returns a random number between a and b (inclusive). For testing purposes, use the seed value 900, which will cause the computer to choose the same random number every time the program runs. Ex: If the input is: 32 45 48 80 the output is: 32 is too low. Random number was 80. 45 is too high. Random number was 30. 48 is correct! 80 is too low. Random number was 97. code: # TODO: Import the random module insert code here def number_guess(num): # TODO: Get a random number between 1-100 insert code here # TODO: Read numbers and compare to random…