1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
mezya [45]
3 years ago
9

Write a program that reads a list of scores and then assigns grades python

Computers and Technology
1 answer:
weqwewe [10]3 years ago
3 0

I've attached a picture of how to answer this problem :)

You might be interested in
A shop will give discount of 10% if the cost of purchased quantity is more than 1000. Ask user for quantity suppose, one unit wi
Mamont248 [21]

Answer:

The program in C++ is as follows:

#include <iostream>

using namespace std;

int main(){

   int qty;

   float discount = 0;

   cout<<"Quantity: ";

   cin>>qty;

   int cost = qty * 100;

i f (cost > 1000) {        discount=cost * 0.10;        }

   cout<<"Cost: "<<cost - discount;

   return 0;

}

Explanation:

This declares the quantity as integer

   int qty;

This declares and initializes discount to 0

   float discount = 0;

This prompts the user for quantity

   cout<<"Quantity: ";

This gets input for quantity

   cin>>qty;

This calculates the cost

   int cost = qty * 100;

If cost is above 1000, a discount of 10% is calculated

i f (cost > 1000) {        discount=cost * 0.10;        }

This prints the cost

   cout<<"Cost: "<<cost - discount;

4 0
3 years ago
A company wants to ensure that the validity of publicly trusted certificates used by its web server can be determined even durin
Natali [406]

Answer: OCSP

Explanation:

Ocsp(online certificate status protocol) is used to maintain the security status of the server and also to determine the status of SSL/TLS certificates used by the webserver.

5 0
3 years ago
Calculate the wait time and turnaround time for FCFS, shortest remaining time, and round-robin by drawing a diagram or chart. As
lidiya [134]

Answer:

id id d

Explanation:

4 0
2 years ago
Read 2 more answers
What is <br> computer.write its example<br>​
aniked [119]
The definition of a computer is a person or electronic device that makes and stores quick calculations or processes information. An example of a famous human computer is Ada Lovelace. An example of a computer is the MacBook.
3 0
3 years ago
This program will store roster and rating information for a soccer team. Coaches rate players during tryouts to ensure a balance
strojnjashka [21]

Answer:

#include<stdio.h>

//function declaration

int search(int jersey[],int n);

void display(int jersey[],int rating[],int n);

int main()

{

char choice = ' ';

int jersey[5];

int rating[5];

int j=0,r=0,index;

for(int i=0;i<5;i++)

{

printf("Enter player's %d jersey number: \n",i+1);

scanf("%d",&j);

jersey[i] = j;

printf("Enter player's %d rating: \n",i+1);

scanf("%d",&r);

rating[i] = r;

}

while(choice != 'q')

{

printf("u- Update player rating\n");

printf("a- Output player above rating\n");

printf("r- Replace\n");

printf("o- Output roaster\n");

printf("q- Quit\n");

printf("Enter your choice(u,a,r,o,q): ");

scanf(" %c",&choice);

switch(choice)

{

case 'u':

printf("Enter jersey number: ");

scanf("%d",&j);

printf("Enter a new rating for a player: ");

scanf("%d",&r);

index = search(jersey,j);

rating[index] = r;

break;

case 'a':

printf("Enter a rating: ");

scanf("%d",&r);

display(jersey,rating,r);

break;

case 'r':

printf("Enter jersey number: ");

scanf("%d",&j);

index = search(jersey,j);

printf("Enter a new jersey number: ");

scanf("%d",&j);

jersey[index] = j;

printf("Enter a rating of new player: ");

scanf("%d",&r);

rating[index] = r;

break;

case 'o':

for(int i=0;i<5;i++)

{

printf("Player %d -- Jersey number: %d, Rating: %d\n",i+1,jersey[i],rating[i]);

}

break;

case 'q':

break;

default:

printf("You have enter wrong choice\n");

break;

}

}

}

int search(int jersey[],int n)

{

int i;

for(i=0;i<5;i++)

{

if(jersey[i] == n)

break;

}

return i;

}

void display(int jersey[],int rating[],int n)

{

for(int i=0;i<5;i++)

{

if(rating[i] >= n)

{

printf("Player %d -- Jersey number: %d, Rating: %d\n",i+1,jersey[i],rating[i]);

}

}

}

Explanation:

5 0
3 years ago
Other questions:
  • 48. What is another word for processor?
    7·1 answer
  • The 'client area' of a window is the area used to display the contents of the window (thus a title bar or border would lie outsi
    12·1 answer
  • Write a function named firstLast2 that takes as input an array of integers and an integer that specifies how many entries are in
    14·1 answer
  • How do you merge on excel?​
    5·1 answer
  • Write a simple hello world program in python 3
    8·2 answers
  • Why might reading a product review be a good idea before purchasing a product?
    5·2 answers
  • Explain why you cannot the Apple OS install on a regular windows computer and vice versa, without the aid of a virtualization so
    5·1 answer
  • Write a method that prints on the screen a message stating whether 2 circles touch each other, do not touch each other or inters
    12·1 answer
  • 4.15 LAB: Password modifier
    14·1 answer
  • Please complete the following questions. It is important that you use complete sentences and present the questions and answers w
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!