Answer:
Here is the Python code:
mystery_string = "Hello! What a fine day it is today."
mystery_character = "a"
counter = 0
for i in range(len(mystery_string)):
if (mystery_string[i] == mystery_character):
counter+=1
print (counter)
Explanation:
The above program has two variables mystery_string which contains the string Hello! What a fine day it is today and mystery_character which contains character a. The program counts and prints the number of times character a appears in the string.
It has a counter variable to store the number of times mystery_character appears in the mystery_string.
The loop has a variable i that moves through the mystery_string character by character and the loop continues to execute till i reaches the length of the mystery_string. If the character at position i is equal to the mystery_character, then counter variable counts it and increments its value to 1 each time the mystery_character is found in the mystery_string.
When the loop terminates it finally returns the number of times mystery_character appears in the mystery_string.
The screenshot of the program along with its output is attached.
Answer:
<!DOCTYPE html>
Explanation:
Now i could be wrong but this is what we go with in html5 witch is what web browser uses. I sent a photo you could use to help from the W3C website
Answer:
Spreadsheet is used to make calculation of daily personnel expense and income easily.
Explanation:
In personnel finance we need to manage all income and expenditures on daily, weekly or monthly basis. To track our income and expense records, we use Excel spreadsheets to mange our budget.
The major advantages of Spreadsheet are given below:
1. In spreadsheets we can easily enter, edit or delete data.
2. We can perform any type of calculations on our data easily.
3. we can plot graphs or other visualizations to analyze the expenditures and income graphically.
4. We can calculate tax and future forecast with the help of spreadsheet.
Answer:
The answer to this question can be given as:
Method Definition:
void printGrade(char x) //declare method with parameter.
{
//method body
System.out.println("Grade: "+x);
//print value in new line.
}
Explanation:
In the above method definition, we define a method that's name is already given in the question that is printGrade. This method does not return any value because its return type is void. In this method, we pass a char variable as a parameter. Then we define the method body in the method body we print the value of the char variable in the new line. To print the value in the new line we use the println function in java.
Answer: Cancel all Print Jobs
Explanation: Whoever gave you this clearly doesn't know how to themselves cause the exact wording to cancel all print jobs is as follows
"Cancel All Documents". if this was a teacher tell them to read up on their technology skills before they give the next test. I'm currently working on my Master's in computer Programming and have been working with Computers for over 15 years. I could put a better multiple choice quiz together in less than 10 mins. I wonder how long it took this idiot to put that quiz together.