Hint: Use a loop inside a loop to complete drawTriangle(). The outer loop is responsible for outputting the asterisk line, and the inner loop is responsible for building the asterisk line with the appropriate length by concatenating asterisks to a single string.

Answers

Answer 1

I didn't quite understand your answer... however... here you have a program which makes an equilateral triangle (not taken into account that the terminal isn't made of squares) made of asterisk lines.

(It was quite hard accually)

Hint: Use A Loop Inside A Loop To Complete DrawTriangle(). The Outer Loop Is Responsible For Outputting

Related Questions

How APIs can be useful for data collection ?​

Answers

Answer:

These softwares are a program that is a connection between computer networks, which can be useful for storing data.

What is the code space for the Unicode based on 10FFFFHex?

What percentage of the Unicode code-space is utilized as of September, 2021?


Any help would be appreciated!

Answers

The percentage of the Unicode code-space that has been  utilized as of September, 2021 is about 288,512 (26%).

What a Unicode implies?

The term Unicode is known to be the universal character representation standard. The Unicode Standard is said to be used world wide to stand for the standard used in text  of computer processing.

Conclusively, studies has shown that thee Unicode 14.0 that was said to have been released in September 2021 shown that it make use of 288,512 that is about 26% of its code points are known to be allocated.

Learn more about Unicode from

https://brainly.com/question/13151086

#SPJ1

what does it mean by an operating system plays the 'middle person's role between the hardware and the application software?​

Answers

Answer:

The hard ware holds the operating system, and the operating controls the application software.

Explanation:

I just need the flowchart and pseudocode.No need program.

Q1.Write a program to process a collection of savings account transactions (deposits or withdrawals). Your program should begin by reading in the previous account balance and then read and process each transaction. Enter a positive value for a deposit and a negative value for a withdrawal. For each transaction, print the message “Withdrawal” or “Deposit” and the new balance. Print an error message if a withdrawal would result in a negative balance and do not change the balance. Use a sentinel value of 0 to signal end of the transactions.

Answers

The pseudocode algorithm for the given program is:

PROCESS saving account transactionsREQUEST for previous account balanceFOR every deposit made, (+)FOR every withdrawal made (-)

What is a Pseudocode?

This refers to the use of plain language to describe the sequence of steps for solving a problem in human language.

Hence, we can see that the complete step is given below:

5. DISPLAY "Withdrawal" when (-) is used.

6. DISPLAY "Deposit" when (+) is used

7. ELSE

8. PRINT "Error"

#SPJ1

Read more about flowcharts and pseudocodes here:

https://brainly.com/question/24735155

advantages and disadvantages of memory mapped I/O?

Answers

Explanation:

Advantages : The advantage of memory mapped I/O is that all instructions and addressing modes can be used for I/O access. This makes programming easier. When Direct I/O is supported, many microprocessors provide limited instructions and addressing modes for I/O access.

Dis Advantages : But there are also disadvantages: An I/O error on a memory-mapped file cannot be caught and dealt with by SQLite. Instead, the I/O error causes a signal which, if not caught by the application, results in a program crash.

What kind of internal factors influence the process of business enterprise

Answers

Answer:

The three main internal factors are:

Human resources

Finance

Current or modern technology

Explanation:

Financial resources like funding, investment opportunities, and sources of income.

Physical resources like the company's location, equipment, and facilities.

Human resources like employees, target audiences, and volunteers.

Customized packages are a type of application software true or false

Answers

Answer:

donno, but i guess its true

Explanation:

u dont need a external hardware or plug something to have them, u can just install

Which of the following statements about markup languages is true?
• Markup languages are used to write algorithms.
Markup languages are used to structure content for computers to interpret
JavaScript is an example of a markup language.
Markup languages are a type of programming language.

Answers

The most widely used markup languages are SGML (Standard Generalized Markup Language), HTML (Hypertext Markup Language), and XML (Extensible Markup Language).

B .Markup languages are used to structure content for computers to interpret is true.

What is a markup language in programming?

A markup language is a type of language used to annotate text and embed tags in accurately styled electronic documents, irrespective of computer platform, operating system, application or program.

What does a markup language used to identify content?

Hypertext markup language is used to aid in the publication of web pages by providing a structure that defines elements like tables, forms, lists and headings, and identifies where different portions of our content begin and end.

To learn more about A markup language, refer

https://brainly.com/question/12972350

#SPJ2

Which layer is responsible for creating data frames?

Answers

Answer:

The data link layer.

Explanation:

In the OSI model, the second layer is responsible for the framing of data packets.

How CPU evolved over time ?

Answers

Answer:

From 1971 to 1972 the era of the first generation came which brought microprocessors like INTEL 4004 Rockwell international PPS-4 INTEL 8008 etc. The second generation marked the development of 8-bit microprocessors from 1973 to 1978. Processors like INTEL 8085 Motorola 6800 and 6801 etc came into existence.

Clock speeds have also suffered due to extreme miniaturization. For the past 5 years, clock speeds on mainstream processors have been stuck at around 3.7 GHz – 4 GHz. Higher clock speeds mean more energy use and therefore more heat buildup. A higher core count also helps with the problem of stagnated clock speeds.

Intel 4004

The Intel 4004 is a 4-bit central processing unit (CPU) released by Intel Corporation in 1971. Sold for US$60, it was the first commercially produced microprocessor, and the first in a long line of Intel CPUs.

Answer:

The Power of Exponential Growth

This essentially means that as time goes on, engineers are able to compress more and more building components (transistors) into the same amount of space. More transistors indicate that there are more units available to execute instructions, resulting in a quicker processor with more functionality.

What are the reasons for breaking up a long data transmission into a number of frames?

Answers

Answer:

Buffer size may be limited.

what are the technological innovations of microprocessors?

Answers

Answer:

Microprocessors and microcontrollers enable the modern world to produce devices that comprehend the environment and react to situations producing a much desired effect. The operating speed of modern day computers has increased over a thousand times in the past twenty years.

Explanation:

What are the languages spoken in South Africa

Answers

Answer:

Afrikaans

English

Xhosa

Zulu

Southern Sotho

Venda

Tswana

Northern Sotho

Tsonga

Swati

Ndebele

Explanation:

These are most all of them.

Answer: English, Afrikaans, Xhosa, Ndebele, Zulu, Tswana, Swati, Sotho, Southern Sotho, Venda, and Tsonga

Explanation:

Many languages are spoken in South Africa. The country recognizes 11 official languages in its constitution. These include English, Afrikaans, Xhosa, Ndebele, Zulu, Tswana, Swati, Sotho, Southern Sotho, Venda and Tsonga.

While these are the only official languages in South Africa, there are a variety of other languages that you can find being spoken in South Africa. These include Dutch, German, Hindi, Swahili, Portuguese, Italian, and more.

Zulu is the most spoken language in South Africa, followed by Xhosa, Afrikaans, and English.

Which of the following best describes the impact of Creative Commons?

Creative Commons gives creators of digital content the ability to indicate how their works can be legally used and distributed, enabling broad access to digital information.

Creative Commons gives Internet users the right to legally use and distribute any previously copyrighted work, enabling broad access to digital information.

Create Commons provides lossless transmission of messages, enabling reliable distribution of digital information.

Creative Commons provides private transmission of messages, enabling secure distribution of digital information.

Answers

Answer:

it’s just a screenie hope it helps

Given int n, return an int[] that contains the numbers 0, 1, .. n-1, n, n-1, ... 1, 0. For example, if n = 5, then the array should be 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0.
Make sure its in the coding language Processing, Java, or Javascript

Answers

Answer:

// Given int n, return an int[] that contains the numbers 0, 1, .. n-1, n, n-1, ... 1, 0.

// For example, if n = 5, then the array should be 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0.

function mirrorArray(max) {

 const firstHalf = [];  // initalize the first half (without max)

 let count = 0;  // we're gonna count up from 0 to the max

 

 while (count < max) {  // whilst the count is less than the max provided

   firstHalf.push(count);  // add the value of count to the array firstHalf

   count++;  // increment count by 1

 }

 const secondHalf = firstHalf.slice().reverse();

 // we first chane the .slice() method which has no arguments

 // this means we can copy our array before reversing it.

 // if we did firstHalf.reverse(), we'd end up changing what's inside firstHalf too.

 // we don't want that!

 

 return [...firstHalf, max, ...secondHalf];

 // ... is the spread operator

 // it is used to remove the square brackets [] from an array

 // for example:  ...[1, 2, 3]  becomes  1, 2, 3

}

console.log(mirrorArray(5));  // here we're calling our function, and providing a max of 5

Explanation:

Everything that needs explaining should be in the comments I've put in the code! If you need more help, please ask!

I decided to use JavaScript because I think it reduces the amount of extra code needed to get my intentions across to the computer.

P.S.: I've also attached a screenshot of my IDE because it can be hard to read code if it's not colored in!

Don't worry about the array's items being displayed above each other, it is just what my IDE does.

What is the purpose of a host operating system?

It allows one guest to access software at a time.
It controls who can access software.
It stands between the guest OS and the hardware.
It is used to monitor network traffic.

Answers

Answer:

It controls who can access software.

Explanation:

In cell E4, enter a formula using relative cell references that multiply cell C4 by cell D4

Answers

Enter this formula into cell E4 (even the equals is needed)

=PRODUCT(C4:D4)

CodeHS Python: Using a while loop, print out a list of numbers from 5 to 55 by fives

Answers

Answer:

i = 5

while i < 56:

 print(i)

 i += 5

Explanation:

I basically started off with a value and said keep adding on to this value by 5, while not going past 55.

How to write a C++ program that lets the user guess if a randomly generated integer is even or odd then the computer lets them know if they are correct or incorrect

Answers

#include <iostream>

using namespace std;

int main() {

 string input;

 string rand_type;

int number=rand()%100+1; //number between 1 and 100

if ( number % 2 == 0)

   rand_type= "even";

 else

  rand_type="odd";

 cout << "your guess: ";

 cin >> input;

 if ( input== rand_type)

   cout << "correct.\n";

else

   cout << "incorrect.\n";

 return 0;

}

You can save your work in bluegriffon using either _____ or _____
A. The format: Primary toolbar; the menu bar
B. The format: Secondary toolbar; Wysiwg view
C. Hyperlink; the "View" dropdown menu bar
D. Source view; a hyperlink

Answers

Answer:

A-the format: primary toolbar, the menu bar

The Greater Than sign (>) is an example of
operator.

Answers

Answer:

logical

Explanation:

the greater than sign (>) is an example of logical operator.

A > sign asks if the first value is greater than the second value. That is, is the value or expression to the left of the > sign greater than the value or expression to the right side? For example, the statement (A > B) is true if A is greater than B

https://brainly.in/question/6901230

Which of the following questions should you ask when testing your website? Choose all answers that are correct.
A. How can I insert an e-mail hyperlink?
B. Do all elements of my website work?
C. Does my website look the way I want it to?
D. Is my website user-friendly?​

Answers

Answer:

B

C

D

Explanation:

give brainliest pls

The questions that are important to ask, while testing a website are all options. Therefore, options A, B, C, and D are correct.

What is a website?

A website is a collection of web pages that are hosted on a server and can be accessed via the Internet using a web browser. A website is typically used to provide information about a business, organization, or individual, or to offer products or services to customers.

It can contain various types of content, such as text, images, videos, and interactive features. Websites can range in complexity from simple static pages to dynamic web applications that offer advanced functionality and interactivity.

They are an important tool for individuals and organizations to communicate with their audience, share information, and conduct business online. Thus, options A, B, C, and D are correct.

Learn more about websites, here:

https://brainly.com/question/6107621

#SPJ2

In the program below, which two variables have the same scope?

def usernameMaker (strFirst, strLast):
return strFirst + strLast[0]


def passwordMaker (strA, numC):
answer = dogName[0:3]
return answer + str(numC)

# the main part of your program that calls the function
username = usernameMaker ('Chris', 'Smith')
dogName = 'Sammy'
favoriteNumber = 7
password = passwordMaker (dogName,favoriteNumber)

Answers

Answer:

The answer would be dogName and favoriteNumber.
Both these variables are part of the global scope. That is, not inside of any function. Is that a satisfying answer?

3. Which part of the computer is used
for typing?
a. Mouse
b. Keyboard

Answers

Hey!

Your answer is B.Keyboard

-Whats a keyboard?-

-A keyboard is something we use for typing. Infact, im typing on a keyboard right now.-

Keyboards are used for almost all devices..

They are used on..

laptopstabletsphones sometimes even tvs!

Hope this helps!

_natty_

Calvin is creating a 3D shell of a turtle. He is creating a sculpted, intricate design for the pattern he wants on the shell, but wants it to tile across the surface of the shell. What tool can he use to do this?

A.
Dynamic Topology

B.
Symmetry

C.
Remesh

D.
Masking
(This is a question from edmentum's 3d modeling class)

Answers

A is right I did this

what is network days function

Answers

Answer:

The NETWORKDAYS Function calculates the number of workdays between two dates in Excel. When using the function, the number of weekends are automatically excluded. It also allows you to skip specified holidays and only count business days. It is categorized in Excel as a Date/Time Function.

Identify the calculation performed by the following code.
function calcArea(length, width) {

var rectArea = length*width;

return rectArea;

}

var x = 8;

var y = 6;

calcArea(x, y);

a.
48
b.
96
c.
28
d.
56

Answers

Answer:

48

Explanation:

The function returns length * width

In the function call, the values are legnth: 8 and width: 6 this means the function is returns 8 * 6 wich is 48.

100 PTS! The first network was called:

A. the Internet
B. ARPANET
C. the network
D. networking

Answers

Answer:

B

Explanation:

.....................

Answer: B. ARPANET

Explanation:in full Advanced Research Projects Agency Network, experimental computer network that was the forerunner of the Internet.

what effects have computers had on the practise?​

Answers

Answer:

new designs of vehicles and other transportation were made; entertainment became more entertaining, medical science made more cures for disease

Explanation:

explain the pros and cons of touchscreen, non-touchscreen, and hybrid devices:

Answers

Answer:The customer reviews of touchscreen laptops like the Lenovo Ideapad 3 Laptop show that it allows faster navigation. It is based on touch-screen technology that improves the functionality of your computer. This allows you to perform tasks that are difficult to do on a traditional laptop. It is easy to use and you can operate it without requiring any additional attachment.

Explanation:

A touch screen laptop is easier to use, fun to navigate, and comes in sleeker models. The non-touch laptop is a traditional laptop variant that takes input from the built-in touchpad and keyboard. Both the laptops are similar in many aspects. At first, the touchscreen feature was only available in high-end business laptops, but now you can buy a touch screen laptop at an affordable price. In this blog, we compare Touch Screen Vs Non-Touch Laptops and help you understand their advantages and disadvantages.

Other Questions
How many grams of NaCl required to form a 500ml solution with a molarity of 0. 5M , the molar mass of NaCl is 58. 5g/mol? Determine if the sequence below is arithmetic or geometric and determine the common difference/ratio in simplest form 125,25,5 A tree of 14 m height is broken by the wind so that its toptouches the ground and makes an angle 60 with the ground. Findthe length of the broken part of the tree. In the early 1800s, many mentally ill poor people were confined to where If Joanne can swim 4 km in 45 min, what is her rate of change? a sphere has a volume of 179.6 cubic cm which value is closest to the radius of this sphere in cm HELP ME PLEASEEEEEEEEEEEEEEEEEEEE I need help problem in the picture below Prepare 100. ml of 0.1 N H2SO4 by diluting from original H2SO4.Eq. wt. of H,SO4 = 98/2=49 .d H2SO4= 1.08 Purity =98% Which of these is a narrow topic for an informal talk?A. The history of farmingB. The different groups within the animal kingdomC. How to cookD. How to give a dog a bath PLEASE HELP ASAPMore info on picture.This relationship is known as Graham's Law of Effusion. How many times heavier is the heavy gas compared to the light gas?(In 3a and 3b the heavy gas took 118 seconds while the light gas took 41 seconds) TEN POINTSSelect the correct answer.Solve the following quadratic equation.(x+4)^2=25A. x=9 and x=-1B. x=-9 and x=-1C. x=-9 and x=1D. x=9 and x=1 Please help. I need the answer 5) What different views of the role of the church in government did the Eastern andWestern churches? Anything accepted for payment of goods and services or repayments of debts can be considered __________.A.cashB.moneyC.creditableD.transferable Please help.Solve for a Given h(x)=-x+2h(x)=x+2, find h(4)h(4). 1 and 2 are linear pair. If m1 = 3x + 4 and m2 = 2x 9, find x. What happens when Cinder opens up the prince's android?O ashe finds a gold coinOb It explodes in her faceShe finds the extra chip that was jammed in there.OdShe found a broken wire How did European nations first gain the land they colonized in North America?