Constant Real GRAVITY = 9.81 Display "Rates of acceleration of an objet in free fall:" Display "Earth: ", GRAVITY, " meters per second every second." Set GRAVITY = 1.63 Display "Moon: ", GRAVITY, " meters per second every second."
Q: the code that divides the screen into a grid of N by N squares. Use turtle graphics.
A: the code that divides the screen into a grid of N by N squares. Use turtle graphics.
Q: Write a program that uses scroll bars or slidersto select the color for a text, as shown in Figure .…
A: The following program is written in Java programming language. Save the program code with…
Q: Write a program that displays ten balls with random colors and placed at random locations, at shown…
A: Program Plan: • Create a python file with name 9_26PE.PY. In the file, • Import all definitions from…
Q: The following program rotates a cube with color interpolation , where colors are assigned to the…
A: OpenGL : OpenGL (Open Graphics Library) is a cross-language, cross-stage application programming…
Q: Rohan bought a gallon of milk with an original price of $4.25; today he gets a 15% discount before a…
A: price = 4.25discount = 15tax = 5 # after discount priceprice = price - price * discount/100 #Final…
Q: 178. The parameter that refers to the recording and broadcasting of the picture is a. Text b.…
A: Text: It is a written form of any data or information. Audio: It is a sound or noise that is in the…
Q: To prepare the drawing to display .2 :on the screen we use gluOrtho2D (GLdouble left, GLdouble…
A: Given - To prepare the drawing to display on the screen we use the different commands in OpenGL.…
Q: The approximate word is when the value on the left of th word is equal to the total value on the…
A: I have provided JAVASCRIPT CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT----------
Q: Write a loop that displays all possible combinations of two letters where the letters are 'a', or…
A: Note : Since the coding language is not mentioned, I have done the code in C++. Algorithm : Step 1…
Q: .• 3. Rearrange these lines of code to construct a square, then another square that touches the…
A:
Q: def color(paint): This problem was inspired by the fun little Mathologer video “Secret of Row 10”…
A: '''The below colour_trio function takes a string containing r y b characters which represents red…
Q: ent an application that will compute and display the INTEGRAL image feed along with the stereo and…
A: Note : Answering the question in python as no programming language is mentioned. Task : Given the…
Q: last three of z number is 457. please solve all parts. thank you! Simulate a 3D point cloud of a…
A: Given : Given the value of Z = 457 Generate the value of three coordinates for the sphere in excel.
Q: #this is a python program topic: operation overloading, Encapsulation please find the…
A: code : - class Dolls: # constructor def __init__(self, doll, price): self.doll…
Q: Two products are sold from a vending machine, which has two push buttons P, and P. When a button is…
A: Introduction :P1 and P2 variables are given , when button is pressed price shown in the 7-segment…
Q: Compile and run the ImageGen01 application.
A: ANSWER: Compile: Accumulating is the change from Source Code (comprehensible) into machine code. A…
Q: Write an interactive program that gives you the option to generate one of the turtle graphics…
A: import turtle def fun1(turtleObject): # define the function # for triangle def…
Q: the huntington high school basketball team has five players named art, bob, cal, dan, and eli.…
A: Since the programming language is not mentioned in the question, we will answer this question in the…
Q: (Use Scrol1Bar and Slider) Write a program that uses scroll bars or sliders to select the color for…
A: (Use Scro11 Bar and S1 slider) Write a program that uses scroll bars or sliders to select the color…
Q: The approximate word is when the value on the left of th word is equal to the total value on the…
A: Algorithm - Create a function with argument a string. define the two variable with sum of left…
Q: implement image online via picturebox using the link of Google Photos or Google Drive
A: Here have to determine about implement image online via picturebox using the link of Google Photos…
Q: In this exercise you will use an Ultrasonic Distance Sensor and a Seven-Segment Display. We check…
A: The program is written in C Language. Check the program screenshot for the correct indentation.…
Q: State the (approximate/exact) number of colours that can be declared using the RGBA and HSLA method.
A: The terms “RGBA” and “HSLA” are used to denote the types of colors used in CSS. Here, “RGBA” stands…
Q: In python, Old-fashioned photographs from the nineteenth century are not quite black and white and…
A: In python, Old-fashioned photographs from the nineteenth century are not quite black and white and…
Q: Q3: Write Program in Visual Basic to input the age , Name of collage of the students in the collage…
A: Given: Goal:Write VB program to input name,age and college name of student.
Q: When we want the perpendicular projection on a specific object in the first angle, the arrow the…
A: You first understand how the angle projection mechanism works. Think of VP and HP as being…
Q: Use the turtle graphics library to write programs that reproduce each of the designs shown in Figure…
A: from turtle import * #Define the function def drawing1(): p = Pen()…
Q: The correct choice to draw lines from point (160,120) to point (160,250) is 40,250 160,250 260,250…
A: Your answer is given below.
Q: 1. Write a program to rotate frame wire teapot and decrease the rotation speed by coding the right…
A: Answer is given below-
Q: Subject Name: Image processing Questions: - Write a program to display both the images in one figure…
A: Dear learner, hope you are doing well!, I will try my best to answer this question. According to our…
Q: Q1. Write a JavaFX program to display the text College of Applied figure. Show Text College of…
A: The following is the Java code for the given application:
Q: In this exercise you will use an Ultrasonic Distance Sensor and a Seven-Segment Display. We check…
A: Ultrasonic sensor and 7 Segment Display Interfacing int pin[9] = {2,3,4,5,6,7,8,A0,A1};//…
Q: #this is a python program topic: operation overloading, Encapsulation Please find the attached…
A: Algotithm Step1: create the class with name marks Step2: Create the constructor and pass the…
Q: 1. Use a 3 by 3 outline of a square. For the field (screen, table) use a 2-dimensional array of 10…
A: /* The purpose of the program is to create a bouncing screensaver (C++). 1. Use a 3 by 3 outline of…
Q: In order to edit a chart, you should. Select one: a. Single Click and drag the chart object b.…
A: Answer : correct answer is C ( Double click the chart object )
Q: This is an object in the System.Drawing Class which is used to draw lines and points Select one: O…
A: c.pen
Q: Write T if the sentence is true and F if the sentence is false and correct the false sentence.…
A: 1). The plot is used to plot more than one set of axes in the same window. ANS: - False The above…
Q: python code modify the cannonball animation so that the input dialog window stays on screen at all…
A: Projectile motion in Visual Python, The cannon fires when the mouse is clicked in the window.
Q: Computer graphics topic 2D rotation. _______ is the rigid body transformation that moves object…
A: Given, Topic = 2D rotation We have to find what is the rigid body transformation that moves objects…
Q: A unit square is shown below. What will be the image of unit square after horizontal and vertical…
A: We have the following graph in which we have to find out the vertical and horizontal expansion. 1)…
Q: Scaling by a fraction move the point closer to the origin True or false
A: Scaling by a fraction move the point closer to the origin
Q: 1. Draw the following exercise using Lucidchart then, screen shot the output. 2. The image must be…
A: Lucidchart is a flowchart software used to draw flowchart of algorithms.
Q: C++. Need help writing a program that plays the game of Hangman. The program should pick a word…
A: Solution:-- 1)The given question is expecting for the solution to be provided with the help of the…
Q: Circumference of a circle = C = 2ar Volume of a cylinder=V=rr*h Area of a cylinder A = 2arh+2r?…
A: Here we have to create the three classes. The first one will be circle having only field as radius…
Q: A hospital would like to visualize the count of patients they have per disease type. The disease…
A: I have answered the question in step 2.
Q: Draw a Program flowchart that shows a Christmas tree using asterisk character in the attached image.…
A: A Program flowchart should be presented to display a Christmas tree using the asterisk characters.…
Q: Can you write a function that will ask the questions on the screen without printing them to the…
A: Input means to provide the program with some data to be used in the program and Output means to…
Q: struct Vec3 { float x, y, z; }; // Struct holding 4 components of a Quaternion. Used to…
A: Lets see the solution.
Constant Real GRAVITY = 9.81
Display "Rates of acceleration of an objet in free fall:"
Display "Earth: ", GRAVITY, " meters per second every second."
Set GRAVITY = 1.63
Display "Moon: ", GRAVITY, " meters per second every second."
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Moon effect. Some people believe that the Moon controls their activities. If the Moon moves from being directly on the opposite side of Earth from you to being directly overhead, by what percentage does (a) the Moon's gravitational pull on you increase and (b) your weight (as measured on a scale) decrease? Assume that the Earth-Moon (center-to-center) distance is 3.82 x 10° m, Earth's radius is 6.37 x 106 m, Moon's mass is 7.36 x 1022 kg, and Earth's mass is 5.98 x 1024 kg. (a) Number 6.89 Units percent (b) Number i 6.8713e-4 Units percentSubject= Computer Graphics Please give proper ExplanantionBackground and formula: Ellipse has two types of axis - Major Axis and Minor Axis. The longest chord of the ellipse is the major axis. The perpendicular chord to the major axis is the minor axis, which bisects the major axis at the center as shown in Figure 1. Ellipse is different with circle which has only one radius. There is no simple formula to calculate the exact or accurate value of perimeter of an ellipse. Therefore, we use approximation formulas to calculate the approximate value of an ellipse's perimeter. One of the approximation methods is called Ramanujan Formula as follows: p zn[3(a+b) – Г(За + b) (а + зь)| where a is the semi major axis and b is the semi minor axis of the ellipse, respectively, as shown in Figure 1. be major axis Figure 1. Ellipse The problem An input file, data.txt has the following information: data.txt 4 3 8 4 3 2 7 Write a complete C++ program that read the values of major axis and minor axis from input file, data.txt; and then compute its perimeter…
- Summary When you borrow money to buy a house, a car, or for some other purposes, then you typically repay it by making periodic payments. Suppose that the loan amount is L, r is the interest rate per year, m is the number of payments in a year, and the loan is for t years. Suppose that i = (r / m) and r is in decimal. Then the periodic payment is (first image which R=....): You can also calculate the unpaid loan balance after making certain payments. For example, the unpaid balance after making k payments is (second image which L'=....) : where R is the periodic payment. (Note that if the payments are monthly, then m = 12.) Instructions Write a program that prompts the user to input the values of L, r, m, t, and k. The program then outputs the appropriate values. Your program must contain at least two functions, with appropriate parameters, to calculate the periodic payments and the unpaid balance after certain payments. Make the program menu driven and use a loop so that the…Background and formula: Ellipse has two types of axis - Major Axis and Minor Axis. The longest chord of the ellipse is the major axis. The perpendicular chord to the major axis is the minor axis, which bisects the major axis at the center as shown in Figure 1. Ellipse is different with circle which has only one radius. There is no simple formula to calculate the exact or accurate value of perimeter of an ellipse. Therefore, we use approximation formulas to calculate the approximate value of an ellipse's perimeter. One of the approximation methods is called Ramanujan Formula as follows: p z n[3(a + b) – (3a + b)(a + 3b)] where a is the semi major axis and b is the semi minor axis of the ellipse, respectively, as shown in Figure 1. b (major axis data.txt 4 8 5 7 Write a complete C+ program that read the values of major axis and minor axis from input file, data.txt; and then compute its perimeter using the Ramanujan Formula. The first column in the input file is the major axis, while the…Write phython code A ball of mass 5kg is located at position m. It is fired vertically upward with an initial velocity of v= m/s. Due to Moon's gravitational force acting on the object, it reaches a maximum height and falls back to the ground (since we cannot represent infinite ground, use a large thin box for it). Simulate the motion of the ball. Print the maximum height that the object reaches. Create a ball and the ground using the provided specifications. Write a loop to determine the motion of the object until it comes back to its initial position. Plot the graph on how the velocity of the object changes along the y-axis with respect to time..
- Time scaling is an operation performed on a.Both dependent and independent variable. b.Neither dependent nor independent variable. c.Dependent variable. d.Independent variable.HW2 In an experiment to determine the spring constant of an elastic cord of length 0.60 m, a student hangs the cord from a rod as represented and then attaches a variety of weights to the cord. For each weight, the student allows the weight to hang in equilibrium and then measures the entire length of the cord. The data are recorded in the table below Į Weight (N) 0 10 15 20 25 Length (m) 0.60 0.97 1.24 1.37 1.64 1- Plot the force/elongation curve using Matlab. 2- Deduce the spring constant of the cord.The Harris-Benedict equation estimates the number of calories your body needs to maintain your weight if you do no exercise. This is called your basal metabolic rate, or BMR. The calories needed for a woman to maintain her weight is: WBMR = 655 + (4.3 × weight in pounds) + (4.7 × height in inches) − (4.7× age in years) The calories needed for a man to maintain his weight is: MBMR = 66 + (6.3 × weight in pounds) + (12.9 × height in inches) − (6.8 × age in years) A typical chocolate bar will contain around 230 calories. Write a java program that allows the user to input his or her weight in pounds, height in inches, and age in years. The program should then output the number of chocolate bars that should be consumed to maintain one’s weight for both a woman and a man of the input weight, height, and age. NOTE: This is an application of a selection statement! Input Data: Use a named constant for the number of calories in a “typical chocolate bar.” Use Scanner methods to enter the…
- Friend’s Party Circle: There are a few friends living in the same area. They have a party every weekend and the place of party change each week. It is always a difficult task to select a place which is nearest for everyone. They all decided to take advantage of Computer Science to solve this problem. Names of friends are Ahmed, Rehman, Careem, Basit, Dawood, Ghani, and Farid. Ahmed lives at 5 minutes’ walk from rehman and at 10 minutes’ walk from Careem. Careem lives at 3 minutes’ walk from Dawood. Rehman lives at 4 minutes’ walk from Basit and 2 minutes’ walk from Dawood. Dawood lives at two minutes’ walk from Farid. Ghani lives at 2 minutes’ walk from Basit. If we represent a graph G = V (V, E) in which set of vertices are home of each Friend and an edge represents a path between two homes. Provide the adjacency matrix of directed graph of the graph G. In above directed graph G. You are required to devise an algorithm to find all possible paths.Monte Carlo methods are a class of computational methods that rely on repeated random sampling to compute their results. In this problem, you will use the Monte Carlo method to estimate the temperature at an arbitrary point in a uniform solid. Specifically, we will consider the solid object shown below. The temperatures of all surfaces are 500 des F with the exception of the two shaded surfaces, which are at 0 deg F. Inputs to the program should be: 1. The number of random walkers. 2. The (x,,2) coordinates of the point at which the temperature is to be estimated. 3. Plot interval (eg., you may want 1,000,000 random walkers in the simulation but may want to plot after every 10,000). Output from the program should be: 1. A graph of the estimated temperature, plotted according to the plot interval 2. Numerical value of the estimated temperature.Decrease-by-Constant-Factor Fake-Coin puzzle method in Java or C++ to find the fake coin out of n coins. Assume the false coin is lighter. Randomly place the false coin among the n coins. Submit results images and code files.