Answer:
#include <stdio.h>
#include <ctype.h>
void printHistogram(int counters[]) {
int largest = 0;
int row,i;
for (i = 0; i < 26; i++) {
if (counters[i] > largest) {
largest = counters[i];
}
}
for (row = largest; row > 0; row--) {
for (i = 0; i < 26; i++) {
if (counters[i] >= row) {
putchar(254);
}
else {
putchar(32);
}
putchar(32);
}
putchar('\n');
}
for (i = 0; i < 26; i++) {
putchar('a' + i);
putchar(32);
}
}
int main() {
int counters[26] = { 0 };
int i;
char c;
FILE* f;
fopen_s(&f, "story.txt", "r");
while (!feof(f)) {
c = tolower(fgetc(f));
if (c >= 'a' && c <= 'z') {
counters[c-'a']++;
}
}
for (i = 0; i < 26; i++) {
printf("%c was used %d times.\n", 'a'+i, counters[i]);
}
printf("\nHere is a histogram:\n");
printHistogram(counters);
}
Answer:
mylist = [ ]
for i in range(7):
mylist.append (int(input("Enter the number of bugs for each day ")))
print(mylist)
print("The highest number of bugs is ")
print(max((mylist)))
Explanation:
- Create and Initialize an empty (mylist)
- Using the .append method, we request and add the bugs for each day into the list
- print out the list
- Use the max function to find the highest number of bugs in the list and print it out
Answer:
Configure Reservations
Explanation:
The reason you do this, is because you are getting a permanent IP address assignment.
Hope this helps!
Answer:
Resource Monitor
Performance Monitor
Computer Management and Administrative Tools
Advanced User Accounts Tool
Disk Cleanup
Local Group Policy Editor
There is alot do u want them all?
If the language is zero indexed:
a[ 33 ]