Answer:
C code
Explanation:
#include <stdio.h>
void histrogram(int counters[])
{
int i,j;
int count;
for(i=0;i<26;i++)
{
count=counters[i];
printf("%c ",i+97);
for(j=0;j<count;j++)
{
printf("="); //= is used
}
printf("\n");
}
}
int main()
{
FILE* fp;
int i;
int arr[26];
char c;
int val;
// Open the file
fp = fopen("story.txt", "r");
if (fp == NULL) {
printf("Could not open file ");
return 0;
}
else
{
for(i=0;i<26;i++)
arr[i]=0;
for (c = getc(fp); c != EOF; c = getc(fp))
{
if(c>='a' && c<='z')
{
val = c-97;
//printf("%d ",val);
arr[val]++;
}
}
histrogram(arr);
}
}
Answer:
software
Explanation:
A software program consists of a set of related instructions which are executed by the computer to carry out the intended operations.
Communities are used for social networking and sharing of information.
Storage utilities are used for storing of data and content.
GUIs or Graphic User Interface is used to provide a intuitive interface for the end user to facilitate ease of interaction.
Answer:
The python program to this question as follows:
Program:
usernum= 2000 #define variable usernum and assign value
x=2 #define variable x and assign value
result = '' #define variable result
for i in range(4): #loop for calculate value
usernum =usernum//x #divide value
result += (' '+str(usernum)) #collect value
print(result) #print value
Output:
1000 500 250 125
Explanation:
In the above python program code firstly, two integer variable is defined that is "usernum and x" in which variable usernum holds a value that is "2000" and variable x holds a value that is "2", and a string variable result has defined, that store the calculated values.
- In the next step, a for loop is declare that runs four times, in which the usernum variable divides its value by variable x and stores all the values in string variable result.
- In the last print, function is used to print result variable value.
Answer:Increasing self awareness
improving quality of life
developing skills
Explanation: core
my answer would be true
All materials are made up from atoms, and all atoms consist of protons, neutrons and electrons. Protons, have a positive electrical charge. Neutrons have no electrical charge (that is they are Neutral), while Electrons have a negative electrical charge. Atoms are bound together by powerful forces of attraction existing between the atoms nucleus and the electrons in its outer shell.
When these protons, neutrons and electrons are together within the atom they are happy and stable. But if we separate them from each other they want to reform and start to exert a potential of attraction called a potential difference.
Now if we create a closed circuit these loose electrons will start to move and drift back to the protons due to their attraction creating a flow of electrons. This flow of electrons is called an electrical current. The electrons do not flow freely through the circuit as the material they move through creates a restriction to the electron flow. This restriction is called resistance.