Answer:
2p
Explanation:
if she had p, then she got p again, she got two p amounts. p+p = p*2 = 2p
How much does it cost to run a 100 volt appliance at 30 amps for 2 hours at $. 02 a kwh?.
It would cost $0.12 to run a 100 volt appliance at 30 amps for 2 hours at $0.02 a kWh.
How to calculate cost of run?
To calculate the cost of running a 100 volt appliance at 30 amps for 2 hours at $.02 a kWh, we need to follow these steps:
Step 1: Convert 100 volts and 30 amps to watts using the formula P = V x I, where P is power in watts, V is voltage in volts, and I is current in amps.
P = 100 volts x 30 amps
P = 3000 watts
Step 2: Convert the time from hours to kilowatt-hours (kWh) by dividing by 1000.
2 hours = 2/1000 kWh = 0.002 kWh
Step 3: Calculate the energy used in kWh by multiplying the power by the time.
Energy used = 3000 watts x 0.002 kWh
Energy used = 6 kWh
Step 4: Calculate the cost by multiplying the energy used by the cost per kWh.
Cost = 6 kWh x $0.02/kWh
Cost = $0.12
Therefore, it would cost $0.12 to run a 100 volt appliance at 30 amps for 2 hours at $0.02 a kWh.
To learn more about kilowatt-hours (kWh), visit: https://brainly.com/question/13494371
#SPJ1
Write a program that asks the user to enter a date in MM/DD/YYYY format that is typical for the US, the Philippines, Palau, Canada, and Micronesia. For the convenience of users from other nations, the program computes and displays this date in an alternative DD.MM.YYYY format. Sample run of your program would look like this: Please enter date in MM/DD/YYYY format: 7/4/1776 Here is the formatted date: 04.07.1776 You can assume that the user will enter correctly formatted date, but do not count on having 0s in front of one-digit dates. Hint: you will need to use string addition (concatenation) here.
Answer:
In Python:
txt = input("Date in MM/DD/YYYY format: ")
x = txt.split("/")
date=x[1]+"."
if(int(x[1])<10):
if not(x[1][0]=="0"):
date="0"+x[1]+"."
else:
date=x[1]+"."
if(int(x[0])<10):
if not(x[0][0]=="0"):
date+="0"+x[0]+"."+x[2]
else:
date+=x[0]+"."+x[2]
else:
date+=x[0]+"."+x[2]
print(date)
Explanation:
From the question, we understand that the input is in MM/DD/YYYY format and the output is in DD/MM/YYYY format/
The program explanation is as follows:
This prompts the user for date in MM/DD/YYYY format
txt = input("Date in MM/DD/YYYY format: ")
This splits the texts into units (MM, DD and YYYY)
x = txt.split("/")
This calculates the DD of the output
date=x[1]+"."
This checks if the DD is less than 10 (i..e 1 or 01 to 9 or 09)
if(int(x[1])<10):
If true, this checks if the first digit of DD is not 0.
if not(x[1][0]=="0"):
If true, the prefix 0 is added to DD
date="0"+x[1]+"."
else:
If otherwise, no 0 is added to DD
date=x[1]+"."
This checks if the MM is less than 10 (i..e 1 or 01 to 9 or 09)
if(int(x[0])<10):
If true, this checks if the first digit of MM is not 0.
if not(x[0][0]=="0"):
If true, the prefix 0 is added to MM and the full date is generated
date+="0"+x[0]+"."+x[2]
else:
If otherwise, no 0 is added to MM and the full date is generated
date+=x[0]+"."+x[2]
else:
If MM is greater than 10, no operation is carried out before the date is generated
date+=x[0]+"."+x[2]
This prints the new date
print(date)
"An email comes from your boss who says his laptop, phone and wallet has been stolen and you need to send some money to an account right away".
what do you think is the type of computer security this type of email come under and what is the name of the specific security attack?
Answer: Phishing attack
Explanation:
Phishing attacks are extremely common and involve sending mass amounts of fraudulent emails to unsuspecting users, disguised as coming from a reliable source (in this case, his/her boss seems to be sending the message, which seems like a pretty reliable source.)
Also, if his phone and laptop was stolen, he proably would not be able to send an email, and it seems strange to ask one of his workers for money, instead of contatcing the police, the bank, and/or one of his family members.
Write a Python program stored in a file q1.py to play Rock-Paper-Scissors. In this game, two players count aloud to three, swinging their hand in a fist each time. When both players say three, the players throw one of three gestures: Rock beats scissors Scissors beats paper Paper beats rock Your task is to have a user play Rock-Paper-Scissors against a computer opponent that randomly picks a throw. You will ask the user how many points are required to win the game. The Rock-Paper-Scissors game is composed of rounds, where the winner of a round scores a single point. The user and computer play the game until the desired number of points to win the game is reached. Note: Within a round, if there is a tie (i.e., the user picks the same throw as the computer), prompt the user to throw again and generate a new throw for the computer. The computer and user continue throwing until there is a winner for the round.
Answer:
The program is as follows:
import random
print("Rock\nPaper\nScissors")
points = int(input("Points to win the game: "))
player_point = 0; computer_point = 0
while player_point != points and computer_point != points:
computer = random.choice(['Rock', 'Paper', 'Scissors'])
player = input('Choose: ')
if player == computer:
print('A tie - Both players chose '+player)
elif (player.lower() == "Rock".lower() and computer.lower() == "Scissors".lower()) or (player.lower() == "Paper".lower() and computer.lower() == "Rock".lower()) or (player == "Scissors" and computer.lower() == "Paper".lower()):
print('Player won! '+player +' beats '+computer)
player_point+=1
else:
print('Computer won! '+computer+' beats '+player)
computer_point+=1
print("Player:",player_point)
print("Computer:",computer_point)
Explanation:
This imports the random module
import random
This prints the three possible selections
print("Rock\nPaper\nScissors")
This gets input for the number of points to win
points = int(input("Points to win the game: "))
This initializes the player and the computer point to 0
player_point = 0; computer_point = 0
The following loop is repeated until the player or the computer gets to the winning point
while player_point != points and computer_point != points:
The computer makes selection
computer = random.choice(['Rock', 'Paper', 'Scissors'])
The player enters his selection
player = input('Choose: ')
If both selections are the same, then there is a tie
if player == computer:
print('A tie - Both players chose '+player)
If otherwise, further comparison is made
elif (player.lower() == "Rock".lower() and computer.lower() == "Scissors".lower()) or (player.lower() == "Paper".lower() and computer.lower() == "Rock".lower()) or (player == "Scissors" and computer.lower() == "Paper".lower()):
If the player wins, then the player's point is incremented by 1
print('Player won! '+player +' beats '+computer)
player_point+=1
If the computer wins, then the computer's point is incremented by 1
else:
print('Computer won! '+computer+' beats '+player)
computer_point+=1
At the end of the game, the player's and the computer's points are printed
print("Player:",player_point)
print("Computer:",computer_point)
Create a cell reference in a format by typing in the cell name or
Answer:
D. Create a cell reference in a formula by typing in the cell name or clicking the cell.
Further Explanation:
To create a cell reference in a formula the following procedure is used:
First, click on the cell where you want to add formula.
After that, in the formula bar assign the equal (=) sign.
Now, you have two options to reference one or more cells. Select a cell or range of cells that you want to reference. You can color code the cell references and borders to make it easier to work with it. Here, you can expand the cell selection or corner of the border.
Again, now define the name by typing in the cell and press F3 key to select the paste name box.
Finally, create a reference in any formula by pressing Ctrl+Shift+Enter.
What is the last valid host on the subnet 172.29.72.0/23
The last valid host on the subnet 172.29.72.0/23 is 172.29.73.254.
To determine the last valid host on the subnet 172.29.72.0/23, we need to understand the concept of subnetting and how it affects the range of available host addresses.
In IPv4, subnetting allows for the division of a network into smaller subnetworks, each with its own range of usable host addresses.
The subnet 172.29.72.0/23 has a subnet mask of 255.255.254.0. The subnet mask determines the size of the network and the number of host addresses it can accommodate.
In this case, the /23 notation indicates that the first 23 bits are used to represent the network address, while the remaining 9 bits are available for host addresses.
To find the last valid host on this subnet, we need to determine the maximum number of hosts it can support. With 9 bits available for host addresses, we have 2^9 (512) possible combinations.
However, two of these combinations are reserved, one for the network address (172.29.72.0) and one for the broadcast address (172.29.73.255). Therefore, the actual number of usable host addresses is 512 - 2 = 510.
To find the last valid host address, we subtract 1 from the broadcast address.
In this case, the broadcast address is 172.29.73.255, so the last valid host address would be 172.29.73.254.
This is because the last address is reserved for the broadcast address and cannot be assigned to a specific host.
For more questions on host
https://brainly.com/question/27075748
#SPJ8
PLEASE HELP THIS IS DUE TODAY!!! PLEAse help meeeeeeeeeeeeeeeeeee!
give a 75-100 word sentence!
Describe what you believe is the relationship between business planning and it
Business planning and IT are interrelated as they both play crucial roles in achieving a company's goals. A business plan provides a roadmap for growth, which guides decisions about IT investments. Similarly, IT infrastructure supports successful business execution by providing data, analytics, and automation to track progress and identify opportunities for improvement.
Explain IT
Information technology (IT) refers to the use of computers, software, and telecommunications equipment to process, store, and transmit information. IT encompasses various areas such as hardware and software development, network and systems administration, database management, cybersecurity, and more. IT has revolutionized the way businesses operate, and its importance continues to grow in today's digital age.
To know more about Information Technology(IT) visit
brainly.com/question/29244533
#SPJ1
2) How should you transcribe a spelled word?
a) It is transcription.
b) It is transcription. TRANSCRIPTION.
c) It is transcription. T-R-A-N-S-C-R-I-P-T-I-O-N.
d) It is transcription. T.R.A.N.S.C.R.I.P.T.I.O.N.
T_R_A_N_S_C_RIPTION.
The ways to you can transcribe a spelled word is that :
Option c) It is transcription. T-R-A-N-S-C-R-I-P-T-I-O-N.What is transcription?This is known to be a depiction in writing of the real pronunciation of a speech sound, word, or any form of piece of continuous text.
Note that the definition of a transcription is seen as anything or something that is known to be fully written out, or the act of of fully writing something out.
Transcription is known to be one that can be done word for word and there seems to be two kinds of transcription practices which is verbatim and clean read type of transcription. In Verbatim kind, one do transcribes a given text word-for-word.
Therefore, The ways to you can transcribe a spelled word is that :
Option c) It is transcription. T-R-A-N-S-C-R-I-P-T-I-O-N.Learn more about transcription from
https://brainly.com/question/3604083
#SPJ1
Write code that outputs variable numTickets. End with a new line (Java) output 2 and 5
Answer:
public class Main {
public static void main(String[] args) {
int numTickets = 2;
System.out.println(numTickets);
numTickets = 5;
System.out.println(numTickets);
}
}
Write a function gcdRecur(a, b) that implements this idea recursively. This function takes in two positive integers and returns one integer.
''def gcdRecur(a, b):
'''
a, b: positive integers
returns: a positive integer, the greatest common divisor of a & b.
'''
# Your code here
if b == 0:
return a
else:
return gcdRecur(b, a%b)
#Test Code
gcdRecur(88, 96)
gcdRecur(143, 78)
© 2021 GitHub, Inc.
Answer & Explanation:
The program you added to the question is correct, and it works fine; It only needs to be properly formatted.
So, the only thing I did to this solution is to re-write the program in your question properly.
def gcdRecur(a, b):
if b == 0:
return a
else:
return gcdRecur(b, a%b)
gcdRecur(88, 96)
gcdRecur(143, 78)
Create a simple program that calls a function call gradeCalculated, in the main area the user is asked to enter their grade from 0-100. (Python)
Answer:
def gradeCalculated(score):
if score < 60:
letter = 'F'
elif score < 70:
letter = 'D'
elif score < 80:
letter = 'C'
elif score < 90:
letter = 'B'
else:
letter = 'A'
return letter
def main():
grade = int(input("enter your grade from 0-100: "))
print("Letter grade for ",grade,"is:",gradeCalculated(grade))
if(grade>80):
print("You are doing good! keep it up!!")
else:
print("You have to get work hard")
main()
Explanation:
See attached image for output
Text and graphics that have been out of copied are stored in area called the _____
Answer:
Clipboard
Explanation:
when we cut or copy a text ,it is stored into a temporary storage called clipboard . clipboard is a temporary storage where text or graphics cut/copied is stored until it is pasted .
Answer:
Clipboard
Explanation:
Clipboard is the area which text is graphics are stored in
You are tasked with designing the following 3bit counter using D flip flops. If the current state is represented as A B C, what are the simplified equations for each of the next state representations shown as AP BP CP?
The number sequence is : 0 - 1 - 2 - 4 - 3 - 5 - 7 - 6 - 0
In the given 3-bit counter, the next state of A, B, and C (represented as A', B', and C') depends on the current state ABC.
The sequence is 0-1-2-4-3-5-7-6 (in binary: 000, 001, 010, 100, 011, 101, 111, 110).
The simplified next state equations for D flip-flops are:
A' = A ⊕ B ⊕ C
B' = A · B ⊕ A · C ⊕ B · C
C' = A · B · C
This counter follows the mentioned sequence and recycles back to 0 after reaching the state 6 (110). These equations can be implemented using XOR and AND gates connected to D flip-flops.
Read more about XOR and AND gates here:
https://brainly.com/question/30890234
#SPJ1
Which topic would be included within the discipline of information systems
, , , , , are only a few of the subjects covered within the study area of information systems. Business functional areas like business productivity tools, application programming and implementation, e-commerce, digital media production, data mining, and decision support are just a few examples of how information management addresses practical and theoretical issues related to gathering and analyzing information.
Telecommunications technology is the subject of communication and networking. Information systems is a branch of computer science that integrates the fields of economics and computer science to investigate various business models and the accompanying algorithmic methods for developing IT systems.
Refer this link to know more- https://brainly.com/question/11768396
System testing – During this stage, the software design is realized as a set of programs units. Unit testing involves verifying that each unit meets its specificatio
System testing is a crucial stage where the software design is implemented as a collection of program units.
What is Unit testing?Unit testing plays a vital role during this phase as it focuses on validating each unit's compliance with its specifications. Unit testing entails testing individual units or components of the software to ensure their functionality, reliability, and correctness.
It involves executing test cases, evaluating inputs and outputs, and verifying if the units perform as expected. By conducting unit testing, developers can identify and rectify any defects or issues within individual units before integrating them into the larger system, promoting overall software quality.
Read more about System testing here:
https://brainly.com/question/29511803
#SPJ1
Why is it useful to teach Karl new commands
Answer:
It's important to teach karl more commands so karl can do more tasks and create more complex algorithms
Explanation:
according to the definition of prolog list, which of the following statement is correct? group of answer choices there is one and only one list that is not a pair. there is one and only one pair that is not a list. all pairs are lists, except the basic pair [a | b]. all pairs are lists, without any exception.
The statement which is correct is:
⇒There is one and only one list that is not a pair.
i.e. All lists are pairs, except the empty list.
What is Prolog?
A logical and declarative programming language, Prolog is also known as PROgramming in LOGics. It is a prime example of a language from the fourth generation that allows declarative programming. This is especially appropriate for applications that use symbolic or non-numeric computing. This is the key justification for Prolog's usage as a programming language in artificial intelligence, where manipulating symbols and inferences are fundamental operations.
For Prolog to automatically solve a problem, we only need to identify the problem; we don't need to specify how it can be addressed. However, in Prolog, we are required to provide hints as a means of solution.
Basically, the prolog language contains three different components:
Facts: A fact is a statement that is true, such as "Tom is the son of Jack," which is a fact.Rules: Rules are conditional truths that have been eliminated. These prerequisites must be met for a rule to be satisfied. For instance, if a rule is defined as:grandfather(X, Y) :- father(X, Z), parent(Z, Y)
This implies that for X to be the grandfather of Y, Z should be a parent of Y and X should be father of Z.
Questions: In order to execute a prolog program, we need to ask certain questions, and the provided facts and rules can help us to find the answers to those questions.Lists in Prolog:
A common data structure used in non-numeric programming is the list. Any number of things make up a list; examples include red, green, blue, white, and dark. The colors [red, green, blue, white, dark] will be used to depict it. Square brackets will enclose the list of components.
Either an empty or non-empty list exists. The list is simply written as a Prolog atom in the first scenario, [ ]. In the second instance, the list consists of the following two items:
the first item of the list, know as the head.the remainder of the list, often known as the tail.Consider a list that looks like this:
[red, green, blue, white, dark].
The tail is [green, blue, white, dark] and the head is [red]. Another list makes up the tail.
Consider that we have a list L = [a, b, c].
The list L can be written as L = [a | Tail]
if we write Tail = [b, c]. The head and tail portions are divided here by the vertical bar (|).
Consequently, the list representation that follow is likewise valid.
[a, b, c] = [a, b, c | [ ] ]
The list for these characteristics can be defined as follows:
a data structure that has two sections—a head and a tail—or is empty. Lists are required for the tail itself.
To know more about list in prolog visit:
https://brainly.com/question/20115399
#SPJ4
Hey guys add me on TT yourstrulyyeva
Answer:
Sorry if i'm a boomer but what is "TT"?
considering the CIA triad and the Parkerian hexed what are the advantages and disadvantges of each model
Answer:
One of the advantages of CIA is that it can discuss security issues in a specific fashion, and the disadvantage is that it is more restrictive than what we need.
One of the advantages Parkerian hexad is more extensive and complex than the CIA and the disadvantage is it's not as widely known as the CIA.
how to write email abut new home your friend
Answer:
Start off with a greeting like Dear Sarah. Then you write a friendly body that tells about your home and describe it as much as you can and tell about what your bedroom theme is like and so on. Finally, top it off like a closing like Sincerely, Tessa.
Answer:
you start off by saying
Dear (name), talk about how your house is comforting and things like that... I hope thats what you were asking for.
A collection of code makes up which of the following?
O input
O output
O a program
O a device
Answer:
C. a program
Explanation:
in computers a code is 101101 aka a chain of codes
Hope that helps :) dez-tiny
3. Why is human resource plan made
Answer: See explanation
Explanation:
Human Resource Planning refers to the process whereby the future human resource requirements of an organization is predicted and how the current human resources that the organization has can be used to fulfill the goals.
Human resources planning is made as it's useful helping an organization meet its future demands by supplying the organization with the appropriate people.
Human resource planning also allows organizations plan ahead in order to have a steady supply of effective and skilled employees. It also brings about efficient utilization of resources. Lastly, it leads to better productivity and organizational goals will be achieved.
Write a program HousingCost.java to calculate the amount of money a person would pay in renting an apartment over a period of time. Assume the current rent cost is $2,000 a month, it would increase 4% per year. There is also utility fee between $600 and $1500 per year. For the purpose of the calculation, the utility will be a random number between $600 and $1500.
1. Print out projected the yearly cost for the next 5 years and the grand total cost over the 5 years.
2. Determine the number of years in the future where the total cost per year is over $40,000 (Use the appropriate loop structure to solve this. Do not use break.)
Answer:
import java.util.Random;
public class HousingCost {
public static void main(String[] args) {
int currentRent = 2000;
double rentIncreaseRate = 1.04;
int utilityFeeLowerBound = 600;
int utilityFeeUpperBound = 1500;
int years = 5;
int totalCost = 0;
System.out.println("Year\tRent\tUtility\tTotal");
for (int year = 1; year <= years; year++) {
int utilityFee = getRandomUtilityFee(utilityFeeLowerBound, utilityFeeUpperBound);
int rent = (int) (currentRent * Math.pow(rentIncreaseRate, year - 1));
int yearlyCost = rent * 12 + utilityFee;
totalCost += yearlyCost;
System.out.println(year + "\t$" + rent + "\t$" + utilityFee + "\t$" + yearlyCost);
}
System.out.println("\nTotal cost over " + years + " years: $" + totalCost);
int futureYears = 0;
int totalCostPerYear;
do {
futureYears++;
totalCostPerYear = (int) (currentRent * 12 * Math.pow(rentIncreaseRate, futureYears - 1)) + getRandomUtilityFee(utilityFeeLowerBound, utilityFeeUpperBound);
} while (totalCostPerYear <= 40000);
System.out.println("Number of years in the future where the total cost per year is over $40,000: " + futureYears);
}
private static int getRandomUtilityFee(int lowerBound, int upperBound) {
Random random = new Random();
return random.nextInt(upperBound - lowerBound + 1) + lowerBound;
}
}
Which of the following is true about media production? A. All media elements contain a certain type of editorial viewpoint. B. Producing a media text involves both print and images C. Every type of media has a different set of tools and devices available. D. Media producers are all trying to confuse their audience
Answer:
C
Explanation:
Every form of media has different resources.
In what ways can you modify the location of the neutral point?
O Change the size of the wing.
Change the size of the horizontal stabilizer.
O Change the position of the wing.
All of the above.
Answer:
The answer is "All of the above".
Explanation:
In the temperature over which transition atoms get thermoelectric energy of zero, which is between cold junction level as well as the equivalent inversion value. The Adjustments to wing length, the change in horizontal stabilizer size, as well as, the change in fullback spot will alter the neutral point position.
Describe the impact of a company’s culture on its success in a customer-focused business environment. Discuss why each is important.
The influence of a corporation's culture cannot be underestimated when it comes to achieving success in a customer-centric commercial landscape.
The values, beliefs, norms, and behaviors that constitute a company's culture have a major impact on how its employees engage with customers and prioritize their requirements.
Having a customer-centric mindset means cultivating a culture that places a strong emphasis on satisfying and prioritizing customers' needs and desires, resulting in employees who are aware of the critical role customer satisfaction plays in ensuring success.
Learn more about company’s culture from
https://brainly.com/question/16049983
#SPJ1
Your cousin gets a weekly allowance, but he always seems to be out of money anytime you buy snacks or go out to watch a movie. You recommend he create a budget, but he says, “No way! That would take so much effort, and I don’t think it’d work anyways! It’s not worth it.” What do you tell him to convince him that a budget could help?
Answer:
If you want to have more fun with your money, you need a budget. A budget is not a boring thing that tells you what you can't do. It's a smart thing that helps you do what you want to do. Here's how:
- A budget helps you save up for the things you really want, like a trip to Hawaii, a new laptop, or a debt-free life. It also helps you deal with the things you don't want, like a broken car, a hospital bill, or a late fee.
- A budget helps you stop wasting money on the things you don't care about, like snacks you don't eat, movies you don't watch, or subscriptions you don't use. It also helps you find ways to save more money on the things you do care about, like groceries, utilities, or entertainment.
- A budget helps you feel more relaxed and happy about your money. Instead of always stressing about running low on cash or owing money to someone, you can have a clear view of your finances and make smarter choices. You can also enjoy spending money on the things you love without feeling guilty or anxious.
- A budget helps you build good money skills that will last a lifetime. By learning how to budget, you will become more responsible, disciplined, and organized with your money. You will also learn how to prioritize your needs and wants, and how to balance your spending and saving.
So don't think of a budget as something that limits your fun. Think of it as something that enhances your fun. A budget is not a problem. It's a solution.
4.24 LAB: Exact change
Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies.
Ex: If the input is:
0
or less than 0, the output is:
No change
Ex: If the input is:
45
the output is:
1 Quarter
2 Dimes
The Exact change program is an illustration of conditional statements;
Conditional statements are used to make decisions
The Exact change programThe Exact change program written in java programming language, where comments explain each action purposes
import java.util.*;
public class Money{
public static void main(String [] args){
Scanner input = new Scanner(System.in);
// Declare Variables
int amount, dollar, quarter, dime, nickel, penny;
// Prompt user for input
System.out.print("Amount: ");
amount = input.nextInt();
// Check if input is less than 1
if(amount<=0) {
System.out.print("No Change"); }
else {
// Convert amount to various coins
dollar = amount/100; amount = amount%100;
quarter = amount/25; amount = amount%25;
dime = amount/10; amount = amount%10;
nickel = amount/5; penny = amount%5;
// Print results
if(dollar>=1) {
if(dollar == 1) { System.out.print(dollar+" dollar\n");}
else { System.out.print(dollar+" dollars\n"); }
}
if(quarter>=1){
if(quarter== 1){System.out.print(quarter+" quarter\n");}
else{System.out.print(quarter+" quarters\n");}
}
if(dime>=1){
if(dime == 1){System.out.print(dime+" dime\n");}
else{System.out.print(dime+" dimes\n");} }
if(nickel>=1){
if(nickel == 1){System.out.print(nickel+" nickel\n");}
else{System.out.print(nickel+" nickels\n");}}
if(penny>=1){
if(penny == 1) {System.out.print(penny+" penny\n");}
else { System.out.print(penny+" pennies\n"); }}}}}
Read more about conditional statements at:
https://brainly.com/question/11073037
#SPJ1
The ‘rect()'block has two inputs that
control where it's drawn - the x and y position. If
you wanted these commands to draw different
sizes of rectangles, what additional inputs would
you need to give the blocks?
Answer is yes beacause
The w and h, which are the width and height respectively, are additional inputs that should be given to the block to draw rectangles of different sizes.
In the Drawing drawer of the Game Lab toolbox, the rect() command is used for drawing a rectangle. It takes in four inputs as arguments. These arguments are;
i. x - the x-coordinate of the point relative to the top-left corner of the display area where the shape will begin from. This is the first argument.
ii. y - the y-coordinate of the point relative to the top-left corner of the display area where the shape will begin from. This is the second argument.
iii. w - the width of the rectangle to be drawn. This is the third argument. It is measured in pixels.
iv. h - the height of the rectangle to be drawn. This is the fourth argument. It is measured in pixels.
For example, to draw a rectangle with a height of 50px, width of 60px and starting at point (x, y) = (40, 40), the command rect() will be called as follows;
rect(40, 40, 60, 50)
Take a look at another example: To draw a rectangle with a width of 120px, height of 60px and starting at point (x, y) = (30, 50), the command rect() will be called as follows;
rect(30, 50, 120, 60)
Therefore, the width and height inputs should be specified in order to draw different sizes of rectangles.
What is the second step in opening the case of working computer
Answer: 1. The steps of opening the case of a working computer as follows:
2. power off the device.
3. unplug its power cable.
4. detach all the external attachments and cables from the case.
5. Remove the retaining screws of the side panel.
6. Remove the case's side panel.
Explanation: