This program will output a right triangle based on user specified height triangle_height and symbol triangle_char.
(1) The given program outputs a fixed-height triangle using a * character. Modify the given program to output a right triangle that instead uses the user-specified triangle_char character. (1 pt)
(2) Modify the program to use a loop to output a right triangle of height triangle_height. The first line will have one user-specified character, such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches triangle_height. Output a space after each user-specified character, including a line's last user-specified character. (2 pts)
Example output for triangle_char = % and triangle_height = 5:
Answer:
triangle_char = input('Enter a character:\n')
triangle_height = int(input('Enter triangle height:\n'))
print('')
for I in range (triangle height):
for j in range(i+1):
print(triangle_char, end = " ")
print()
Explanation:
I did this question mark brainiest please
Company ABC would like to select the topology that has the most reliability for data reaching its destination. Which topology should they choose?
bus
full mesh
partial mesh
ring
What will be printed to the screen when the following program is run?
Answer:
The answer is 20
Explanation:
Hope this helps!
Answer:
40
Explanation:
Indexes for arrays in Python start at 0, which means the first item of an array is at index 0, the second item is at index 1, the third item is at index 2, and the fourth item is at index 3.
Therefore when my_list[3] is put inside the print function, the fourth item, 40, is printed to the screen.
Hope this helps!
Can someone help me with this!!!.
Do anyone know how to code like I need someone do a code for me?
Answer:
yeah i can depends on what exactly it is but probably
What action should you take if you become aware that sensitive compartmented information has been compromised
Answer:
Report the crime to local law enforcement.
Explanation:
Which method can be used for making a robot perform a different set of functions?
a. changing a robot's sensors
b. dismantling a robot
c. creating a new robot
d. rewriting software
Answer:
D. Because rewriting it can make it preform new functions.
Explanation:
Which function allows you to display the name of the month?
>>>import time
>>>aTime = time.locatime()
>>>time.__________("%B",aTime)
Sample Output:
'March'
Answer:
strftime
Explanation:
>>> import time
>>> aTime = time.localtime()
>>> time.strftime("%B",aTime)
'May'
explain how production values can reveal the quality and accuracy of mass media.
Production values can reveal the quality and accuracy of mass media as it shows the total or full cost spent in making a quality film.
What are production values in mass media?Production value is known to be employed to know the full cost of making a film, and also the amount of money a film producer spent on props and special effects.
Note that by knowing the above, one can say that a given film reveal the quality and accuracy of mass media.
Learn more about production from
https://brainly.com/question/1501489
#SPJ1
What are the common operations performed on character strings?
•concatenation
• scanning
• substringing
• translation
• verification
if you want to remember means csstv;-)What will be printed to the screen when the following program is run?
Answer:
20
Explanation:
max(my_list) is 5 (finds the maximum value)
sum(my_list) is 1 + 2 + 3 + 4 + 5 = 15 (finds the sum of values)
=> max(my_list) + sum(my_list) = 5 + 15 = 20
Answer:
It will print 20, because you are adding all the values of your list together using the max function, and then adding the actual integers in your list together with the previous number.
2.
Select the correct answer.
Consider the following statements:
Pls "It is hot."
Q is "It is dry."
Ris "I am thirsty."
What does the sentence (P^Q)->R mean?
Ο Α.
If it is hot and dry, then I am thirsty.
B.
If I am thirsty and dry, then it is hot.
C.
If it is dry or hot, then I am thirsty.
OD.
If it is hot then I am dry and thirsty.
The structure argument can be given as, with dry and hot weather, it felt thirsty. Thus, option A is correct.
What is the structure of the argument?The argument is held valid and correct with the use of proper relationships between the sentences. The correct correlation depicts the conclusion to the sentence.
P Q means P followed by Q~R means excluding RP^Q means P and QFrom the given argumentative sentences it can be delivered as If it is dry and hot then I’m thirsty. Thus, option A is correct.
Learn more about structure of argument, here:
https://brainly.com/question/14993040
#SPJ1
Which of the following variable names best follows all of the correct naming conventions?
Answer:
B
Explanation:
The first_number would be correct.
does C supports STRINGS as a data type?
Answer:
C language does not support strings as a data type. A string is actually one-dimensional array of characters in C language. These are often used to create meaningful and readable programs.
Explanation:
Help me pleaseeeeeeeee
Answer:
2. I see that they uses space, and form.
3. Maybe it a death note that you could cut stuff with scissors and knife and you'll grasp if you got stab and it sharp.
4. To show that scissors could cut,stab and do many more other things.
25 POINTS! HELP ME PLEASE THANK YOU
Type the correct answer in each box. Spell all words correctly.
What attributes of color does the Luminosity blend mode affect?
You can use the Luminosity blend mode to match the brightness of the original color to the brightness of the new color.-_____
and______
are unaffected.
Answer:
What attributes of color does the luminosity blend mode affect?
Whereas the Color mode blends the colors of a layer while ignoring lightness values, the Luminosity mode blends the lightness values while ignoring the color information!
Explanation:
write a program using a for loop, to display number 20 to 10 in descending order
Answer:
public class MyProgram {
public static void main(String[] args) {
for (int i = 20; i >= 10; i--){
System.out.println(i);
}
}
}
Explanation:
Since we are printing in descending order, we start with an initial value of 20, keep decrementing counter by 1 (the i-- part) until i reaches 20
What will be printed to the screen when the following program is run?
Answer:
false
Explanation:
the parenthesis contains 2 true statements (5 is greater than 4 and 10 is greater than or equal to 10)
outside the parenthesis is the not, so the true parenthesis is negated to false
this means the value of a is false
You wrote a program to allow the user to guess a number. Complete the code. (Coding program: Python) (20 points!)
Answer:
guess=int(guess)
Explanation:
This is to make the input number an integer so you can compare later on
Answer:
guess = int(guess)
Explanation:
This makes the guess input number an integer
can i get help with computer language
Answer:
yes
Explanation:
because you can choose you own language
Which of the following applies to patents?
o They protect the rights of the intellectual property owner.
They represent free speech rights.
o They are pretty symbols.
o They make it OK to take other people's work.
ANSWER QUICKLY!!!
A designer plans an appropriate element mix for a website. What element does the picture illustrate?
Based on the image attached, A designer's element that the picture illustrate is a wireframe.
What is a wireframe in design?A wireframe is known to be a kind of two-dimensional depiction of a page's interface that is one that only focus on the amount of space allocation and it is one that work in the prioritization of content and others.
Note that Based on the image attached, A designer's element that the picture illustrate is a wireframe.
Learn more about designer plans from
https://brainly.com/question/9778788
#SPJ1
Question 4: Chess Game Knight's travails. Develop a data structure similar to a binary tree. Using a standard 8 X 8 chessboard, show the knight's movements in a game. As you may know, a knight's basic move in chess is two forward steps and one sidestep. Facing in any direction and given enough turns, it can move from any square on the board to any other square. If you want to know the simplest way your knight can move from one square (or node) to another in a two-dimensional setup, you will first have to build a function like the one below. knight plays ([0,0], [1,2]) == [[0,0],[1,2]] knight plays ([0,0], [3.3]) == [[0,0],[1,2), (3,3]] knight plays ((3,3), (0,0]) == [[3.3), [1,2], [0,0]] You are required to do the following:
1. Explain how you can ensure that any move do not go off the board.
2. Choosing a search algorithm for finding the shortest path for the knight's travails.
3. Defend your choice of an appropriate search algorithm to find the best possible move from the starting square to the ending square.
4. Creating a script for a board game and a knight.
5. Create a diagrammatical tree structure, to illustrate all possible moves of the knight as children in the tree structure.
In this task, you need to understand two algorithms which can be helpful, the Breadth-First Search which utilizes the Queue data structure to find the shortest path and the Depth-First Search which can traverse a Stack data structures.
Answer:
Answer: 64
Explanation:
What are the parts of TCP/IP and what do they do? Who is the primary user of TCP/IP?
TCP/IP parts include the following:
Network accessInternetTransportApplicationWhat is TCP/IP?TCP and IP stands for Transmission Control Protocol and Internet Protocol respectively and are communication protocol that links the application layer to the network layer.
Its primary user include:
BNsMANsWANsRead more about TCP/IP here https://brainly.com/question/11864481
#SPJ1
(c) Explain why a combination of ethnography and
prototyping is useful
for the requirements elicitation process
Answer:
It helps analysts discover implicit system requirements that reflect the actual rather than the formal processes in which people are involved. The verifiability of the requirements should be assessed
It permits analysts to discover implicit system requirements that reflect the actual rather than the formal processes in which individuals are involved.
What is elicitation process?
Requirements elicitation exists as the set of activities where information exists given by stakeholders, users, and customers to be involved in the design of the initiative or the solution. Elicitation exists as a perpetual procedure during project development. It exists not as a stagnant, compartmentalized activity.
Ethnography exists as an observational method that can be utilized to understand social and organizational needs. It permits analysts to discover implicit system requirements that reflect the actual rather than the formal processes in which individuals are involved. … The verifiability of the conditions should be assessed.
Prototyping exists as an agile software development methodology. It has also been suggested as a technique for obtaining the software requirements from the stakeholders. … For this, the authors present a procedure to involve and they carry out elicitation sessions with two stakeholders who have distinct familiarity with the domain.
To learn more about elicitation refer to:
https://brainly.com/question/27605015
#SPJ2
Write a menu driven program in python to convert the given temperature from fahrenheit to celsius and vice versa depending upon user's choice.
Answer:
See below
Explanation:
while(True):
print("""\nProgram to convert temperatures
Choose from:
1. Fahrenheit to Celsius
2. Celsius to Fahrenheit
3. Exit program""")
choice = int(input("\nEnter your choice: "))
#print()
if (choice == 1):
print("Converting degrees Fahrenheight to degrees Celsius\n")
F = float(input("Enter temperature in degrees Fahrenheit: "))
C = (F - 32) * 5/9
print()
print(F,"degrees Fahrenheit = ", C, "degrees Celsius\n")
elif (choice == 2):
print("Converting degrees Celsius to degrees Fahrenheit\n")
C = float(input("Enter temperature in degrees Celsius:"))
F = (C* 9/5) + 32
print()
print(C,"degrees Celsius = ", F, "degrees Fahrenheit\n")
elif (choice == 3):
print("Exiting program")
break
else:
print("Invalid Entry!. Please re-enter")
What are ways to enter a formula in Excel? Check all that apply.What are ways to enter a formula in Excel? Check all that apply.
Answers:A,B,E,F
Click on the Function Library group and select a function from the drop-down menu.
Click on the Function Library group and Insert Function.
Click on the File tab in the ribbon.
Click on the Insert tab in the ribbon and then Equation.
Type = into any cell.
Click on the formula bar above the cells.
Answer:
Click on the Function Library group and Insert Function.
MARK ME BRAINLIEST IF I HELPED :>
The groups within a tab are collectively
known as?
Answer:
the ribbon
Explanation:
Commands are organized in logical groups, which are collected together under tabs. Each tab relates to a type of activity, such as formatting or laying out a page. To reduce clutter, some tabs are shown only when needed.
Maria notices that visitors are landing on her site's home page, but they are not
navigating to any of the other pages. It's possible that having her navigation bar in a
non-standard location could be the cause of this.
Choose the answer.
True
False
Answer:
True
Explanation:
If your navigation bar is inaccessible, then visitors won't be able to navigate any further into your website.
Create a future concept on how technology will affect communication and on how the way humans will interact with each other
Technology making communication increasingly direct and fast, which can impact the way work is carried out and career development.
How does technology affect the job market?The speed with which communication processes are developed from technological tools, such as the internet, may increasingly impact commercial relations between different nations, in addition to generating more and more automation of tasks and reduction of the physical structures of companies.
Therefore, future projections for technology are related to innovation and profitable and competitive advantages, as in remote work, which is a trend that reduces costs and increases motivation.
Find out more about remot work here:
https://brainly.com/question/26512743
#SPJ1