Answer:
#include <stdio.h>
#include <string.h>
void main( )
{
array flowerProp[2];
FILE *fp; // file pointer
char flower[255]; // creating a char array to store data
fp = fopen("flowers.dat","r");
if (fp == NULL){
printf("File flower.dat does not exist");
return;
}
// assuming the growing condition is next line to the flower name.
while(fscanf(fp, "%s", flower)!=EOF){
flowerProp.push(flower);
if (flowerProp.length == 2){
printf("%s: %s\n ", flowerProp[0], flowerProp[1]);
memset(flowerProp, 0,0);
}
}
fclose (fp );
}
Explanation:
The algorithm creates a pointer to the memory location to the file starting position, the character size is used to get a string from the file line by line. Then it opens and checks if the file exists.
If the file exists, the while gets the name and growth condition of the flower, saves it to an array, prints the name and condition, and clears the array for the next flower type in the loop.
Answer: All of the above
Explanation: A group is considered as the collection of two or more constituents/individuals. The characteristics of the a group are interaction , interdependence,interaction etc. There is a sense of responsibility and trust to work to achieve goal by depending on each other is described as the interdependence and for this interaction between group is needed as to maintain good communication and also there is a influence of each other on each group member.
Florida is 1,344.8 miles from oklahoma
Answer:
Python code is explained below
Explanation:
# decorator.py starts
def uppercase(fcn):
def wrapper():
original = fcn;
modified = str(fcn).upper() ;
return modified;
return wrapper();
# decorator.py ends
# greet.py starts
import decorator #to generate the decorator
def greetings(): #invokes the greetings function for output
print("Hello");
print(decorator.uppercase(greetings));
# greet.py ends