Answer:
The Lightbulb is the dependent variable.
Explanation:
The dependent variable is defined as the variable that the researcher is measuring or testing and it observes the direct effect/change brought by manipulation in the independent variable. In the given experiment, the lightbulb would be characterized as the dependent variable as it is being tested by the researcher. He controls the independent variable(by using different wires) to observe its direct impact on the way the lightbulb lits. Thus, it(lightbulb) is the dependent variable.
This program outputs a downwards facing arrow composed of a rectangle and a right triangle. The arrow dimensions are defined by user specified arrow base height, arrow base width, and arrow head width.(1) Modify the given program to use a loop to output an arrow base of height arrowBaseHeight. (1 pt)(2) Modify the given program to use a loop to output an arrow base of width arrowBaseWidth. Use a nested loop in which the inner loop draws the *’s, and the outer loop iterates a number of times equal to the height of the arrow base. (1 pt)(3) Modify the given program to use a loop to output an arrow head of width arrowHeadWidth. Use a nested loop in which the inner loop draws the *’s, and the outer loop iterates a number of times equal to the height of the arrow head. (2 pts)(4) Modify the given program to only accept an arrow head width that is larger than the arrow base width. Use a loop to continue prompting the user for an arrow head width until the value is larger than the arrow b
Answer:
Here is the JAVA program:
import java.util.Scanner; // to get input from user
public class DrawHalfArrow{ // start of the class half arrow
public static void main(String[] args) { // starts of main() function body
Scanner scnr = new Scanner(System.in); //reads input
int arrowBaseHeight = 0; // stores the height of arrow base
int arrowBaseWidth = 0; // holds width of arrow base
int arrowHeadWidth = 0; // contains the width of arrow head
// prompts the user to enter arrow base height, width and arrow head width
System.out.println("Enter arrow base height: ");
arrowBaseHeight = scnr.nextInt(); // scans and reads the input as int
System.out.println("Enter arrow base width: ");
arrowBaseWidth = scnr.nextInt();
/* while loop to continue asking user for an arrow head width until the value entered is greater than the value of arrow base width */
while (arrowHeadWidth <= arrowBaseWidth) {
System.out.println("Enter arrow head width: ");
arrowHeadWidth = scnr.nextInt(); }
//start of the nested loop
//outer loop iterates a number of times equal to the height of the arrow base
for (int i = 0; i < arrowBaseHeight; i++) {
//inner loop prints the stars asterisks
for (int j = 0; j <arrowBaseWidth; j++) {
System.out.print("*"); } //displays stars
System.out.println(); }
//temporary variable to hold arrowhead width value
int k = arrowHeadWidth;
//outer loop to iterate no of times equal to the height of the arrow head
for (int i = 1; i <= arrowHeadWidth; i++)
{ for(int j = k; j > 0; j--) {//inner loop to print stars
System.out.print("*"); } //displays stars
k = k - 1;
System.out.println(); } } } // continues to add more asterisks for new line
Explanation:
The program asks to enter the height of the arrow base, width of the arrow base and the width of arrow head. When asking to enter the width of the arrow head, a condition is checked that the arrow head width arrowHeadWidth should be less than or equal to width of arrow base arrowBaseWidth. The while loop keeps iterating until the user enters the arrow head width larger than the value of arrow base width.
The loop is used to output an arrow base of height arrowBaseHeight. So point (1) is satisfied.
The nested loop is being used which as a whole outputs an arrow base of width arrowBaseWidth. The inner loop draws the stars and forms the base width of the arrow, and the outer loop iterates a number of times equal to the height of the arrow. So (2) is satisfied.
A temporary variable k is used to hold the original value of arrowHeadWidth so that it keeps safe when modification is done.
The last nested loop is used to output an arrow head of width arrowHeadWidth. The inner loop forms the arrow head and prints the stars needed to form an arrow head. So (3) is satisfied.
The value of temporary variable k is decreased by 1 so the next time it enters the nested for loop it will be one asterisk lesser.
The screenshot of output is attached.
What Information Technology is Walt Thomas responsible for?
Answer: employee productivity and activity management, selling the vast.
Explanation:
Often used in connection with a business
A: fair use
B: copy right
C: public domain
D: commercial use
E: Creative Commons
Answer:
I would have to say public domain (but i am not sure)
Which phrase best describes a scenario in Excel 2016?
Answer:
what are the phrases?
Explanation:
Which of the following are signatures for constructors in the Rectangle class?
----Choose all options that apply.-----
A. Rectangle(double len1, double len2, double len3, double len4)
B. Rectangle(double len)
C. Rectangle(int len)
D. Rectangle(int len, int wid)
E. Rectangle()
F. Rectangle(double len, double wid)
constructor is a special method that's also called once memory is allocated for a freshly constructed object to initialize it, and further discussion can be defined as follows:
It has the same identity as the class or struct, so it normally sets up the new object's data members.In the Rectangle class if it calculates the area. so, it takes two parameters that are "length, width", that is equal to "Rectangle(int len, int wid)".Therefore, the final answer "Option D".
Learn more:
brainly.com/question/14239397
how dependent are we on technology?
very independent : ) we use it for everything
Xcode, Swift, and Appy Pie are all tools for doing what? A: Writing code in Java. B: Creating smartphone apps. C: Creating apps to run on a desktop or laptop. D: Writing code in C#
Answer:
Creating smartphone apps
Explanation:
Took the test, got 100, read the lesson on slide 3 towards the bottom
SOMEONE HELP PLZZZZ!!!!
Answer:
D
Explanation
LAN = Local Access Network
The IT worker works on networks.
Which graphic file format would you choose if you needed to make an animated graphic for a website?
ai
png
gif
py
please help
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The correct option for this question is gif.
Gif is a series of images that are used as animated graphics for a website. A gif is the file format of an animated image. You may have seen many animated images on websites like stickers etc.
other options are not correct because:
ai: is adobe illustrator file format
png: png is an image file format but not for an animated image
py: py is a file extension of the python file.
Answer:
gif
Explanation:
What is the technical term of a native programming language?
Native Code Or Machine Language
What type of data is the result of each of the following lines of code?
str(2.34)
int('2')
float(2)
Answer:
snag
Explanation:
I need to know how to input this into python on zybooks. I've been stuck on this for days and I keep running into "invalid syntax" or "unknown word red" Summary: Given integer values for red, green, and blue, subtract the gray from each value. Computers represent color by combining the sub-colors red, green, and blue (rgb). Each sub-color's value can range from 0 to 255. Thus (255, 0, 0) is bright red, (130, 0, 130) is a medium purple, (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (In other words, equal amounts of red, green, blue yield gray). Given values for red, green, and blue, remove the gray part. Ex: If the input is 130 50 130, the output is: 80 0 80 Find the smallest value, and then subtract it from all three values, thus removing the gray.
Answer:
Here is the C++ program:
#include <iostream> //to use input output functions
using namespace std; //to identify objects cin cout
int main() { //start of main method
int red,green,blue,smallest; //declare variables to store integer values of red,green, blue and to store the smallest value
cout<<"Enter value for red: "; //prompts user to enter value for red
cin>>red; //reads value for red from user
cout<<"Enter value for green: "; //prompts user to enter value for green
cin>>green; //reads value for green from user
cout<<"Enter value for blue: "; //prompts user to enter value for blue
cin>>blue; //reads value for blue from user
//computes the smallest value
if(red<green && red<blue) //if red value is less than green and blue values
smallest=red; //red is the smallest so assign value of red to smallest
else if(green<blue) //if green value is less than blue value
smallest=green; //green is the smallest so assign value of green to smallest
else //this means blue is the smallest
smallest=blue; //assign value of blue to smallest
//removes gray part by subtracting smallest from rgb
red=red-smallest; //subtract smallest from red
green=green-smallest; //subtract smallest from green
blue=blue-smallest; //subtract smallest from blue
cout<<"red after removing gray part: "<<red<<endl; //displays amount of red after removing gray
cout<<"green after removing gray part: "<<green<<endl; //displays amount of green after removing gray
cout<<"blue after removing gray part: "<<blue<<endl; } //displays amount of blue after removing gray
Explanation:
I will explain the program using an example.
Lets say user enter 130 as value for red, 50 for green and 130 for blue. So
red = 130
green = 50
blue = 130
First if condition if(red<green && red<blue) checks if value of red is less than green and blue. Since red=130 so this condition evaluate to false and the program moves to the else if part else if(green<blue) which checks if green is less than blue. This condition evaluates to true as green=50 and blue = 130 so green is less than blue. Hence the body of this else if executes which has the statement: smallest=green; so the smallest it set to green value.
smallest = 50
Now the statement: red=red-smallest; becomes:
red = 130 - 50
red = 80
the statement: green=green-smallest; becomes:
green = 50 - 50
green = 0
the statement: blue=blue-smallest; becomes:
blue = 130 - 50
blue = 80
So the output of the entire program is:
red after removing gray part: 80 green after removing gray part: 0 blue after removing gray part: 80
The screenshot of the program along with its output is attached.
So this is not exactly a question but I can’t find the answer anywhere else. Also if you answer this, please do, I will give you brainliest.
What does the blue circle with the i in it mean on EBay?
Answer: Well, in transit means "in the process of being transported" according to Merriam Webster, so I would think that would mean that it is being shipped from China over to America (Or wherever you may live) currently. Hope this helped!
Explanation:
Each Main Tab in the Ribbon has different Groups containing icons.
True Or False
Answer:
i think true
Explanation:
true or false Output is a tool with a power system that takes advantage of certain scientific laws that make the tool work better
Answer: True
Explanation: While digital evidence exploitation is a relatively new tool for law investigation when digital evidence is limited or does not exist. Do with the disappearance and death; searches found some mies; in fact, he was well-liked and often left his home open could take particular advantage, given the more limited poten.
He made me so angry when he didn’t let me make my point that I had to stalk after him.
a.
follow
c.
stem
b.
shoot
d.
branch
Answer: follow
Explanation:
Answer: A) follow
Explanation:
Y’all know any movie sites I can go on?
Answer:
Tinseltown
Explanation:
What does Tristan need to do to add a row at the bottom of the table shown?
He needs to put the insertion point at the end of 8.8 and press the Tab key.
He needs to put the insertion point at the end of 8.8 and press the Enter key.
He needs to put the insertion point at the end of freezers and press the Tab key.
He needs to put the insertion point at the end of freezers and press the Enter key.
Answer:
He needs to put the insertion point at the end of 8.8 and press the Tab key.
Explanation:
Answer:
A
Explanation:
When was JavaScript founded?
Write in this format:
mm/yy
Answer:
It was founded in 09/95
Explanation:
Answer: 09/1995
JavaScript was founded in the September of 1995, in early fall. It is a very common dynamic computer programming language.
I wrote the answer in mm/yy format, so this answer should meet the requirements.
Hope this helps! Best of Luck!
what is a document you can create with word processing software________?
Answer:
I think like Microsoft Word, Google Docs/Slides, or maybe other Microsoft writing services.
Explanation:
hope this helps!
does anyone or has anyone ever done it?? please help it’s for like skills!
Answer:
is this mathmatics
Explanation:
does anyone have a pdf of the greatest by eddie van der meer????
Answer
aight' so im finding it but i have to asnwer before someone else so look in the comments for it.
Explanation:
Just wait i getting it rn
Write a program Gas.java that computes and displays the price a person will pay for gas at the gas station. The program takes three command-line arguments: two double arguments referring to the price per gallon, and the number of gallons of gas, and one boolean argument referring to whether the person pays cash or credit (true for cash, false for credit). If the person pays with a credit card, there is an extra charge of 10% of the total price. Gas is never free. A person stopping to buy gas will always buy some amount of gas. Print the error message "Illegal input" if any of the double inputs is zero or negative, and end the program.
Answer:
double price, number, total;
boolean payment;
Scanner input = new Scanner(System.in);
System.out.print("Enter Amount of Gas: ");
price = input.nextDouble();
I've added the full source file as an attachment.
Where I used comments to explain difficult line
Explanation:
Which utility causes the computer to run slow? defragmentation utility OR compression utility?
Answer:
compression
Explanation:
idk just anwser this and get get some points lol
Answer:
ok thxxxxx :)
Explanation:
Answer:
thank you
Explanation:
when four consecutive numbers are added the sum is 46 find the integers plss anyone help me
Answer:
The integers are 10,11,12,13
Explanation:
At first form an equation,
Let,
x = first number
x + x+1 + x+2 + x+3 = 46
Now solve the equation and youll get the answer,
x=10
For the other numbers,
x+1=11
x+2 = 12
x+3 = 13
Do the binary numbers 001101 and 00001101 have the same value or different values
Answer:
Yes, the both have the same value.
Explanation:
This is the answer because:
001101 = 13
00001101 = 13
Hope this helps! :D
IT professionals should help to protect users’ personal information, such as bank account information or Social Security numbers, to prevent
A.software piracy.
B.identity theft.
C.moonlighting.
D.corporate espionage.
Answer:
B
Explanation:
Answer:
b
Explanation:
how has input device helped u
Answer:
Today, input devices are important because they are what allows you to interact with and add new information to a computer. For example, if a computer had no input devices, it could run by itself but there would be no way to change its settings, fix errors, or other various user interactions
Explanation:
Answer: well it allows u to ad new info to your pc/ basically an easier way to transfer from one device to another
Explanation: i would give a better answer but i'm feeling lazy today srry
When would you use database software instead of spreadsheet or word processing software?
Answer: When I need to see table relationships and sort data by custom fields.
Explanation:
Answer: When I need to see table relationships and sort data by custom fields.
Explanation: took the quiz