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
s2008m [1.1K]
3 years ago
11

Write a program that prompts the user to enter a grade, which is aninteger in the range of 0 - 100. Using if statements, have th

eprogram output an error message of the score is too low or toohigh.
Computers and Technology
1 answer:
nika2105 [10]3 years ago
6 0

<u>C program prompts the user to enter a grade</u>

#include<stdio.h>

int main()//driver function

{

int grade;

printf("Please enter grades\n");//taking input from user

scanf("%d",&grade);

if(grade<0)/*checking whether the grade is less than zero(0)*/

printf("Error-Score is too low");

if(grade>100)/*checking whether the grade is higher than 100*/

printf("Error-Score is too high");

if(grade>=0 &&grade<=100)/*checking whether the grade is in 0-100*/

printf("you got %d ",grade);

}

<u>Output</u>

Please enter grades

103

Error-Score is too high

Please enter grades

77

you got 77

Please enter grades

-3

Error-Score is too low

You might be interested in
What is a logical grouping of related records called?.
irakobra [83]

Answer:

File

Explanation:

Files are frequently classified by the application for which they are primarily used (employee file). A primarily key in a file is the field whose value identifies a record among others in a data file

6 0
3 years ago
. Which of the following is NOT a
joja [24]

Answer:

solution

Explanation:

The correct option is - solution

Reason -

To solve a problem,

Firstly we give input , then system will process that input which then gives output.

Solution is not a part of the process.

So, Solution is not a significant part of a simple problem.

7 0
3 years ago
This assignment is about making a simple multi-page "online dating" site that processes HTML forms with PHP. Online dating has b
xxMikexx [17]

Answer:

THE FOLLOWING FILES ARE:

  1. nerdluv.php
  2. signup.php
  3. signup-submit.php
  4. matches.php
  5. macthes-submit.php
  6. common.php

Explanation

<em>The provided nerdluv.php has a header/footer and links to singup.php and matches.php. This file's contents are complete, but larger parts of it are repeated on other pages. The repeated parts should be turned into functions in common.php that are called by each page. The sign up link leads to singup.php and check matches to matches.php.</em>

<em>The signup.php page has a header logo, a form to create a new acount, and footer notes/images. You must write the HTML code for the form, the form should contain the labeled fields such as name, gender, age, personality tipe, favorite OS, seeking age, and sign up.</em>

<em>The signup-submit.php code should creat a line representing the new user's information and add it to the end of the file. The resulting page has the usual header and footer and text thanking the user. The text log in to see your matches links to matches.php.</em>

<em>Use functions, parameters/return, included files/code, loops, variables, etc, to avoid redundancy. If you have HTML or PHP code that is shared or redundant between multiple pages, place it into functions in common.php. You can include your common.php in your other pages.</em>

8 0
3 years ago
The query [windows], English (US) has two dominant interpretations: the operating system and the windows in a home.
Flauer [41]

Answer:

B. False

Explanation:

Microsoft Windows is a graphics user interface operating system that uses windows query to search for information in its directory. There are different versions and updates of the windows OS, with latest being window 10 1903. The different version of the windows 10 OS is windows professional, Home, Enterprise etc. As time goes on, more updates will be released for better and advanced security.

3 0
4 years ago
When the CSS property of position is set to ____ it moves the element relative to its original position and allows other element
Anvisha [2.4K]

Answer: Absolute

Explanation: The Cascading Style Sheet is used to describe the style of a Hypertext Markup Language document. The cascading style sheet has different property value for setting the position of elements. When the property value to absolute, it moves the element relative to its original position and allows other elements to flow into the space that the absolutely positioned element would have otherwise occupied. Element is relative to browser window when set to fixed. Element is positioned relative to its original position when property value is set to relative.

7 0
3 years ago
Other questions:
  • You are creating a database for your computer club. Most of the students live in your town, Durham. How can you make Durham appe
    11·1 answer
  • How do we call a very small video,that is repeating unlimitedely
    10·2 answers
  • Using the _______ list, you can select the number of photos that will appear on each slide.
    10·2 answers
  • Which statements identify what astronomers currently know and think will happen with our universe? Check all that apply.
    15·2 answers
  • What federation system technology uses federation standards to provide SSO and exchanging attributes?
    7·1 answer
  • What is the Keyboard shortcut to change the case of selected text?
    6·1 answer
  • You are evaluating three branch prediction strategies: (1) predict always taken, (2) predict always not taken and (3) use the 2-
    14·1 answer
  • What allows a programmer to write code quickly and efficiently for an action that must be repeated?
    14·1 answer
  • A vpn is used primarily for which purpose?
    10·1 answer
  • I'm doing a VHDL program in Vivado, using a zyboz7 20, which would have 2 teams, each of them with different buttons and led lig
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!