Write a C program to do the following tasks:

a) Read the grades of students in the class from the keyboard (assume the grades are

integer in the range 0 to 100).

b) Find the average of the grades that are less than 50. If there are no grades less than 50, then display the message "No grades < 50".

c) Find the average of the grades that are greater than or equal 50. If there are no

grades greater than or equal to 50, then display the message "No grades >= 50".


The program should terminate if the input grade is negative. (Hint: Use sentinel-controlled repetition structure). Note that average of the grades might not be an integer and design your program considering that

Answers

Answer 1

Answer:

#include<stdio.h>

void main()

int marks;

printf("Enter your marks ");

scanf("%d",&marks);

if(marks<0 || marks>100)

printf("Wrong Entry");

else if(marks<50)

printf("Grade F");

else if(marks>=50 && marks<60)

printf("Grade D");

else if(marks>=60 && marks<70)

printf("Grade C");

else if(marks>=70 && marks<80)

printf("Grade B");}

else if(marks>=80 && marks<90)

printf("Grade A");

else:

printf("Grade A+");

#may need to replace spaces with tab

Explanation:

it works ( I hope, if it doesn’t tell me what the error is)


Related Questions

Ian needs to extract the day from the date 5/31/2017 entered in cell A1. Which formula can he use to do this

Answers

A cell is a box which can be seen in an Excel sheet. Ian needs to write the formula "=day(A1)".

What is Cell in an Excel?

A cell is a box which can be seen in an Excel sheet, this box is named A1, B2, etc. The name of a cell depends upon the column and the row in which it is present.

In case, if Ian needs to extract the day from the date from cell A1. He needs to write the formula:

=day(A1)

This will give the output as 31.

In case, if Ian needs to extract the weekday from the date in cell A1. He needs to write the formula,

=weekday(A1,1)

This will return a number between 1 to 7 which will represent Sunday to Saturday respectively.

Learn more about Excel:

https://brainly.com/question/3441128

#SPJ1

The loss of customer trust because of security problems are ________ that created ________.

Answers

The loss of customer trust because of security problems are Hacking or negligence that created data breaches.

What are data breaches?

A data breach is known to be an incidence where information of customers have been stolen from a system without the authorization of the owner of the system.

Note that customer trust can be destroyed when there is security problems such as  Hacking or negligence that leads to data breaches and loss of customers information.

Learn more about customer trust from

https://brainly.com/question/26872475

1. What is the difference between background sound and nat sound

Answers

Answer:

(nat) sound punctuates your piece between interview clips and helps to drive your narrative arc. Background sound can help to set the mood and give a sense of place to your viewer. If you record sound too loudly or too softly, the quality diminshes.

Explanation:

Your configuration specifies to merge with the ref.

Answers

Explanation:

In my case, my local branch and remote branch had different capitalization.

To resolve this I deleted my local branch $ git branch -d branch-name, then checked out the remote branch again using $ git fetch and $ git checkout Branch-name.

Your colleague is asking about a storage device that uses flash memory chips but doesn't use magnetic platters. What type of device is he asking about

Answers

Answer:

solid state drive or SSD

Explanation:

They use flash memory called NAND

3D printers, also known as ________, create three-dimensional shapes by adding very thin layer after layer of material until the final shape is fully formed.

Answers

Answer:

Additive Manufacturing

Hope this Helps!

3D printers, also known as additive manufacturing create three-dimensional shapes by adding very thin layer after layer of material until the final shape is fully formed.

What is additive manufacturing?

This is known to be tool that is often used to make three-dimensional shapes as  the process of makes an object by building it one layer at a given time.

Therefore,3D printers, also known as additive manufacturing create three-dimensional shapes by adding very thin layer after layer of material until the final shape is fully formed.

Learn more about additive manufacturing from

https://brainly.com/question/19484863

#SPJ9

Which osi layer is responsible for setting up, maintaining, and ending ongoing information exchanges across a network

Answers

So the network is really important you get pairs about 100k a year to make you start network is to be nice

what is internet filtering

Answers

Explanation:

internet filtering is a technology that stops users from viewing certain URLs or websites by preventing their browsers from loading pages from these sites.

Answer:  by specifying content patterns – such as text strings or objects within images – that, if matched, indicate undesirable content that is to be screened out.

Explanation:

So it blocks things so they can not be looked at.

Question 1 of 10
What should you use to convert an algorithm to a format that a computer can
understand?
A. An if-then statement
B. An iteration
cha prototype
D. A programming language
SUBMIT

Answers

D. A programming language

Answer:

I believe that it's D.

Explanation:

original equipment manufacturer (OEM) software, that can typically be used to cut
and paste, crop, enlarge, and retouch your images?

A. third-party software
B. proprietary software
C. user-friendly software
D. external watermark software

Answers

Since it's OEM most likely Its B

As an object moves up and to the right on the program area, what happens to the X and Y coordinates?

a
X and Y both get smaller

b
X and Y both get bigger

c
X gets smaller and Y gets bigger

d
X gets bigger and Y gets smaller

Answers

The answer should be B: X and Y both get bigger. Since when an object goes up, Y gets bigger, and when an object goes right, X gets bigger (becomes a bigger number down the line)

A ________ takes data from multiple data sources, cleans and processes the data, and stores the data.

Answers

Answer:

A Data Warehouse is the answer

What are the supercomputers and where are they used? ​

Answers

Answer:

Giant Tech Company mostly

Explanation:

they used it as their server or storing data, right now example we googling by that we send the requests from our computer to supercomputers and those computer will find that information your and send back the respond (e.g. website Brainly). Supercomputers = computers sample as that.

Every HTML will be marked as html document at the very beginning.


1. True


2. False

Answers

Answer:

True

Explanation:

HTML will be marked as HTML document

Write a statement that defines a Product structure variable named chips.

Answers

The statement that declares the variable using the  Product structure is: Product chips;

How to define the structure variable?

The product structure definition is given as:

Product {

.........

};

To declare a variable named chips, we use the following syntax:

Structure-name Variable-name;

The structure name is Product and the variable name is chips

Hence, the statement that declares the variable is: Product chips;

Read more about variables at:

https://brainly.com/question/15683939

______ is a human-readable text format for data interchange that defines attributes and values in a document.

Answers

Answer:

JavaScripts Object Notation (JSON)

Explanation:

Harry learned how to design and build computer games from his programming foundations class in college and wants to tackle creating his first
mobile app game. What essential tools does Harry need if he already has the skills?
A OA storyboard, computer hardware, music and sound effects, and programming code.
B
60
o A mobile tablet, game engine software, and programming code.
Co A computer hardware, game engine software, graphical art design application, and programming code.
Do Programming code, game engine software, and game design.

Answers

Coded information is needed to create a program like OS or other applications. Essential tools required by Harry are hardware, gaming software, graphical art designing tool, and programming codes.

What are programming codes?

Programming codes are the set of instructional data and rules in the programming language used to create operating systems and applications based on games, learning, entertainment, etc.

To create a gaming application one must have program codes or rules, computer hardware for storing and writing data, gaming engine software, and designing applications to develop the graphics of the game.

Therefore, Harry needs option C. hardware, software, graphical app, and programming codes.

Learn more about programming codes here:

https://brainly.com/question/14378523

#SPJ1

distinguish between a computer drive and computer driver​

Answers

Answer:

The word Drive typically refers to a mechanical hard drive or solid-state hard drive used to store the OS, data and programs. A driver is software code that interfaces the various devices in the computer with the processing system.

Explanation:

..............................................................

_____is an early-stage software acceptance testing; performed to identify possible issues/bugs before showing the product to everyday users or the general public

Answers

I’d say alpha/beta testing

PLEASE HURRY ITS DUE TODAY AND DO NOT GIVE ME NO ANSWERS

1. What would be the best material to make a backpack?

A. wood

B. reinforced paper fibers

C. canvas

D. plastic

2. Is a design brief necessary in researching problems?

A. no

B. yes

3. How many types of research are used

A. one

B. two

C. Three

D. Four

E. Five

F. there is no set number

4. Research is a _________? Multiply choice

A. conclusion

B. process

C. variable

D. report

5. Which of the following is "not" a part of the research process?

A. list the problem

B. gather data

C. make a prototype

D. analyze the data

E. make a conclusion

Answers

Answer:

(c) canvas(b) yesN/A(c) variable(c) making a prototype i think

please correct me if im wrong

In a distributed IDS, the ____________________ module analyzes LAN traffic and reports the results to the central manager.

Answers

Answer:

LAN monitor agent

Explanation:

Can we use a data type as a condition in C++?
For example, if a user enters a number in a string input user prompt, it executes a certain set of instructions(code). Because when I enter a number instead of a character in the terminal, it skips all cin inputs and keeps printing cout until the end of the code.

Answers

No you can’t use a data type as a condition but you can use function overloading or templates to attempt to bypass this.

Which two statements describe the design principle of unity??
a. Uses opposing elements to draw attention to a specific message.
b. Assigns relationships between elements based on their size.
c. Conveys a consistent message to users.
d. Is a point around which elements mirror each other.
e. Displays order in its layout, style, and structure. ​

Answers

I think it is D
Hope this help you?!

Answer:

C- Conveys a consistent message to users.E- Displays order in its layout, style, and structure.

Computer-aided design software is used by ________.

Answers

Answer:

by Architects?

Explanation:

not sure

When heading styles have been applied to a document, the user has the option to navigate through the document using which tab on the navigation pane?.

Answers

When heading styles have been applied the user can nagivigate documents using the Headings tab

What is mearnt by the term Navigation?

In Computing, navigation is use to mean routing or moving from one screen or one page on a website to another.

There are different types of navigation depending on the use case, they are:

Drawer NagivigationBottom NavigationTab Navigation etc.

Learn more about Navigation here:

https://brainly.com/question/2191665

#SPJ2

While shopping for new computers for his photography studio, Mel paid close
attention to select computers with a lot of RAM, or internal memory, to run software
and data. What is he MOST LIKELY trying to do for his post-production editing
process?
A. make it more organized and constrictive

B. make it faster and more efficient

C. make it slower and less efficient

D. make it more complicated and arduous

Answers

Answer:

b make it faster and more efficient

1. What is the difference between background sound and nat sound

Answers

Answer:

Well the background sound is the sound of course in the background and the nat sound is the curremt sound

Explanation:

o access an array element, use the array name and the element's ________. a. data type b. subscript c. value d. name e. None of these

Answers

Depends, it could be name, but it depends on how you are accessing the array.

Personally, I’d say None of them, since you access an array element/item with an index (the number that the element can be referred with).

E.g. In Python…

arr = [“a”, “b”, “c”]
print(arr[0] == “a”) # Output: “True”

Fiona wants to fix scratches and creases in an old photograph. Fiona should _____.

Answers

Answer:

Fiona should scan the photograph and use image-editing software to fix the image.

Explanation:

Answer:

Fiona should scan the photograph and use image-editing software to fix the image.

Explanation:

Why, during the final stage of the multistage model for e-commerce, is comprehensive customer information captured in the supplier's database

Answers

The reason why, in the final stage of the model for e-commerce, to captured in the supplier's database is  because it hasten customer service after an order had been delivery.

What is e-commerce?

The word electronic commerce  is often known as e-commerce. It is a term that connote a type of business model that gives room for firms and people to buy and sell goods and services using the Internet.

Note that the reason why during the final stage of the multistage model for e-commerce, a comprehensive customer information captured in the supplier's database is important because it boast or make faster customer service when an order have been delivery.

Learn more about  e-commerce from

https://brainly.com/question/23369154

Other Questions
Trevor is analyzing a circle, y2 + x2 = 100, and a linear function g(x). Will they intersect? y2 + x2 = 100 g(x) graph of the function y squared plus x squared equals 100 x g(x) 1 22 0 20 1 18 Yes, at positive x coordinates Yes, at negative x coordinates Yes, at negative and positive x coordinates No, they will not intersect Sequence the legislation or events related to immigration in the order in which they occurred. The Department ofHomeland Securityis created. DACA policy defersdeportation for someundocumented immigrants. The 9/11 attacks promptenhanced security need helpcomplete solution and correct aanswer Q: Judge the importance our society today places on reading and writing literature. Do you have an appreciation of literature? Why? Is this a good or a bad thing? 1 Paragraph Suppose that a cylinder has a radius of r units, and that the height of the cylinder is also r units. The lateral area of the cylinder is 882 square units. Find the value of r. x2 + 8x + 19 = 0 What is the equivilent that results from completing the square? Without evidence, your friends insist a classmate had access to the answers before a test. They accuse that student mercilessly, and you participate. You are likely demonstrating Syndrome E if you feel (5 points)aempathy for the accused classmatebguilt about your participationcemotionless and flatdangry at your classmate Please help me out ;) Which of the following best describes how Muhammad viewed Moses and Jesus? A. He saw them as the enemies of Allah. B. He saw them as messengers from God. C. He saw them as his holy leaders. D. He saw them as traitors to Islam. Unlike Kenny, Rukmani views suffering as __________.the result of evil behaviora way to spiritual enrichmenta sign of the governments disfavorsomething to be avoided at all costs Why is fish faming important in the Context of Nepal? Violating the passenger or nighttime driving restrictions imposed upon all provisional licenses may result in: What is withdrawal syndrome? Who does it affect? School is starting, and the teacher is giving each student 2 new pencils. She has 8 rows with 4 desks in each row. Which method (s) below will show her how many pencils she will need?A. 2 x 8 + 16, 16 x 4B. 2 x 4 + 8, 8 x 8C. 4 x 8 + 32, 2 x 32 The girl was happy. The birds were singing. O La fille tait heureuse. Les oiseaux ont chant.O La fille tait heureuse. Les oiseaux chantaient.O La fille tait heureux. Les oiseaux chant. O La fille as eu heureuse. Les oiseaux chantait. Please answer asap. Also, explain the process of getting the answer. Thank you! Which of the following are indicators ofpresence of illegal drugs? What ways can gifted children be included in the formal school settings and what help can be offered to them. What was the name given to Gorbechevs policy of political openness?A. glasnostB. laissez-faireC. perestroikaD. socialismE. zdravstvuyte Billy loves to eat raw seafood and does so frequently. As a result, Billy runs the risk of suffering from: a. botulism b. rashes c. hemolytic-uremic syndrome d. parasitic infection e. bovine spongiform encephalopathy