Answer:
scores = []
total = 0
count = 0
highest = 0
lowest = 10
while True:
score = int(input("Enter quiz score: "))
if score == 99:
break
if score < 0 or score > 10:
print("Score must be between 10 and 0")
else:
total += score
count += 1
scores.append(score)
if score > highest:
highest = score
if score < lowest:
lowest = score
average = total / count
print("Scores:")
for s in scores:
print(s, end=" ")
print()
print("The highest score is " + str(highest))
print("The lowest score is " + str(lowest))
print("The arithmetic average is " + str(average))
Explanation:
*The code is in Python.
Initialize the values
Create an indefinite while loop. Inside the loop, ask the user to enter the quiz score. If the score is 99, stop the loop. If the score is smaller than 0 or greater than 10, warn the user. Otherwise, add the score to total, increment the count by 1, and add the score to the scores list. Then, determine the highest and lowest value using if statements.
After the loop, calculate the average.
Print the valid scores, highest score, lowest score and arithmetic average
Answer:
changing layout options
resizing the image
adding and editing shapes
adding and editing styles
Explanation:
Inserting screenshots requires no sort of editing. Also, no editing is required for inserting the tables and graphs. However, the options being mentioned in the answer section is an example of editing. Changing layout options is editing, resizing the images is editing, adding and editing shapes is editing as well as adding and editing styles is editing. Hence, the choices mentioned in the answer section are the correct options.
Answer:
int main()
{
int a,b,max,min;
cout<<"Enter 2 numbers\n";
cin>>a>>b; //asking numbers from user
max= a>b ? a : b; //using conditional operator to find larger
min= a>b ? b : a; //using conditional operator to find smaller
cout<<"\nLarger is "<<max;
cout<<"\nSmaller is "<<min;
return 0;
}
OUTPUT :
Enter 2 numbers
56
34
Larger is 56
Smaller is 34
Explanation:
- In the above program, first user is asked to enter 2 numbers which needs to be compared.
- Conditional operator - This operator contains syntax - (condition ? true : false) . This is a ternary operator in which first operand checks the condition and if its true second operand is returned otherwise third is returned.
- Then conditional operator is used twice first to find larger number and then smaller.
- At last both numbers are printed.
A batholith is an intrusive igneous rock.
Click Tools, Internet options. ...The Internet Options window will open. ...Click Apply, OK to close the window.Click the wrench icon in the top-right corner of the browser.Select Options.In the 'On startup' section, select Open the home page.options window will open. Go to the Startup section and select When Firefox starts: Show my home page.. In the Home Page field, type in the website address you want to use as your home page.Click OK.