Answer:
In Python
for i in range(-13,0,6):
print(i)
Explanation:
Required: A program to display the given output
From the program, we observe the following:
The output begins at 13 i.e begin = 13
The output ends at -1 i.e end = 1
And the difference between each output is 6.
i.e. 
So, the syntax of the for loop is: (begin, end + 1, difference)
The program explanation goes thus:
<em>This iterates through the -13 to 1 with a difference of 6</em>
for i in range(-13,0,6):
<em>This prints the required output</em>
print(i)
Answer:
D
Explanation:
Its probably your best bet all the other ones seem fishy.
Answer:
Explanation:
The necessary hardware components that a computer requires to run properly are the following.
Motherboard, this is the main circuit board that interconnects all of the components and allows them to interact with each other.
CPU, this is the brain of the computer where all calculations and processes are handled.
Video Card, this component handles all the visual data, rendering that the computer needs in order to get a proper image.
RAM, these components are the physical memory where temporary data is stored and used.
Hard Disk, this is the main storage drive where all your data will be saved including the operating system.
PSU, this is the power supply of the unit that distributes the correct amount of power to every other component in the system.
Sound Card, this component handles all the input and ouput audio signals for a computer.
Answer:
See explaination
Explanation:
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE * file_object;
char file_name[100];
char ch;
int characters=0, words=0;
printf("Enter source file name: ");
scanf("%s", file_name); //asking user to enter the file name
file_object = fopen(file_name, "r"); //open file in read mode
if (file_object == NULL)
{
printf("\nUnable to open file.file not exist\n"); //check if the file is present or not
}
while ((ch = fgetc(file_object)) != EOF) //read each character till the end of the file
{
if (ch == ' ' || ch == '\t' || ch == '\n' || ch == '\0') //if character is space or tab or new line or null character increment word count
words++;
else
characters++; //else increment character count this assures that there is no spaces count
}
printf("The file story.txt has the following Statistics:\n"); //finally print the final statistics
if (characters > 0)
{
printf("Words: %d\n", words+1); //for last word purpose just increment the count of words
printf("Characters (no spaces): %d\n", characters);
}
fclose(file_object); //close the file object
return 0;
}