1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
borishaifa [10]
3 years ago
5

7. Write a program in C to display the string "ARRAY" in the following format : A AR ARR ARRA ARRAY

Computers and Technology
1 answer:
Art [367]3 years ago
6 0
This program will the string array in the given format.

int main(void){
char arr[6];
int counter;
strcpy(arr[], "ARRAY");

for(counter=0; counter<6; counter++){
printf("%c", arr[counter]);
}

return 0;
)

Note: Do not forget to include all the necessary library that is needed to run this program.

You might be interested in
Create a series called 'directors' that contains each director's name and his or her average rating. Print out the type of your
sasho [114]

Using the computational language in python it is possible to write a code that we will use graphics to organize the names of the directors and the films they made.

<h3>Writing code in python:</h3>

<em>import pandas as pd</em>

<em>df = pd.read_csv('all_data/movie_metadata.csv')</em>

<em>print('Shape: ',df.shape)</em>

<em>df.head()</em>

<em>name = df[['director_name','imdb_score']] </em>

<em>directors = name.groupby(['director_name']).mean() </em>

<em>directors = directors.reset_index() </em>

<em>directors = directors.stack()</em>

<em>print(directors,'\n')</em>

<em>print(type(directors),'\n')</em>

<em>print(directors[directors=='Steven Spielberg'],'\n')</em>

<em>print(directors[102]['imdb_score'])</em>

<em>miyazaki = df[df['director_name'] == 'Hayao Miyazaki']['movie_title']</em>

<em>print(miyazaki)</em>

<em>pivot_agg = pd.pivot_table(df,values='imdb_score', index=['country'], columns=['director_name'],aggfunc=np.median)</em>

<em>pivot_agg</em>

<em>gladiator_duration = df[df['movie_title']=='Gladiator\xa0']['duration'] </em>

<em>gladiator_duration</em>

See more about python at brainly.com/question/18502436

#SPJ1

6 0
2 years ago
We have an array of Rectangles called rectangleArray and a function updateRectangle(rect) that takes a single rectangle as a par
Naddika [18.5K]

Answer:

Following are the code  

for(var k = 0; k< rectangleArray.length; k++) // iterting the loop

{

updateRectangle(rectangleArray[k]); // update the rectangle color

}  

Explanation:

  • In the given answer we have iterate over the loop will iterated until the length of rectangle array size-1
  • In every value of k, we have called the update rectangle function which changes the color of the rectangle of a rectangle class
4 0
3 years ago
Return a formatted string with numbers The function below takes three numerical inputs: num1, num2, and num3. Implement it to re
alexira [117]

Answer:

In Python:

def ret_formatted(num1,num2,num3):

   result = str(num1)+"_"+str(num2)+" ! "+str(num3)

   return result

Explanation:

This defines the function

def ret_formatted(num1,num2,num3):

This generates the output string

   result = str(num1)+"_"+str(num2)+" ! "+str(num3)

This returns the result string

   return result

3 0
3 years ago
A terrestrial biome is named according to the _____ in which a group of plants and animals occur together.
ikadub [295]

Answer:

Predominate Vegetation

Explanation:

3 0
4 years ago
A CRS is most commonly used for
BigorU [14]
It is mostly used to store and retrieve information
6 0
4 years ago
Other questions:
  • What do space stations, artificial organs, supersonic aircraft, and "high-tech”
    10·1 answer
  • Your company leases a very fast internet connection and pays for it based on usage. You have been asked by the company president
    8·1 answer
  • Choose the correct option below:Part A1. WAN link 2. Client 3. Server 4. Hub 5. Switch 6. Router 7. Media Part BA. This serves u
    9·1 answer
  • You have a computer at home. The computer is connected to the Internet through a dial-up connection. Every time you connect to t
    14·1 answer
  • anyone got a class named computer literacy? or sum similar to using Microsoft programs? i need a lotttt of help, im 3 units behi
    12·2 answers
  • By
    7·1 answer
  • Write a programmer defined function that compares the ASCII sum of two strings. To compute the ASCII sum, you need to compute th
    6·1 answer
  • Why people shouldnt get married​
    6·1 answer
  • Why did NFL equip its players with RDIF tags?
    13·1 answer
  • What does syntax error mean :-;<br>explain briefly.<br><br>thankyou!
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!