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
hichkok12 [17]
3 years ago
5

write a program using if condition and print fail and try again if student marks are less than 33 using if condition and print f

ail and try again if student marks are less than 33
Computers and Technology
1 answer:
Aliun [14]3 years ago
6 0

Answer:

Following are the program to this question:

#include <iostream>//defining a herader file

using namespace std;

int main()//defining main method

{

   int marks, i=35;//defining integer variables

   cout<<"enter your marks in a percent: ";//print message

   cin>>marks;//input marks value

   if(marks<i)//defining if block that checks marks less then i

   {

       cout<<"fail and try again";//print message

   }

   else//defining else block

   {

       cout<<"You are qualified";//print message

   }

   return 0;

}

Output:

enter your marks in a percent: 33

fail and try again

Explanation:

In the above-given, C++ language code inside the main method "marks and i" two integer variable is declared, in which the "i" variable holds a value.

In the next step, if block is defined, that checks "marks" value is less than "i", if the value is true, it will print "fail and try again".

Otherwise, it will go to the else block, in this, it will print "You are qualified".

You might be interested in
What protections do not apply to the content in a wiki?
Kipish [7]
1. Imminent?
2. Copyright?

4 0
3 years ago
Read 2 more answers
Any computer and technology experts?
nalin [4]

Answer:

file is the common storage unit in a computer, and all programs and data are "written" into a file and "read" from a file. A folder holds one or more files, and a folder can be empty until it is filled. A folder can also contain other folders, and there can be many levels of folders within folders.

a subfolder is an organizational folder on a computer that is located within another folder

Explanation:

sorry i dont know all

3 0
2 years ago
Marx and engels identified two social classes: the ______ who possess the means of production and ______ who must do all the wor
Morgarella [4.7K]

Marx and Engels identified two social classes: the exploiters who possess the means of production and exploited  who must do all the work.

<h3>What is a Social class?</h3>

A social class is known to be a kind of a grouping of people and it is one that is made where people are said to be shared into a set of hierarchical social stages  or groups.

Note that the most common are the upper, middle and lower classes. Membership in a social class is seen to be based on  or dependent on education, wealth, occupation, and others.

Hence, Marx and Engels identified two social classes: the exploiterswho possess the means of production and exploited  who must do all the work.

Learn more about social classes from

brainly.com/question/1065123

#SPJ1

8 0
2 years ago
What does the Sort feature allow you to do with a database?
bagirrra123 [75]
In a database it allows you to filter out the key info which you are looking for so its simpler for you.
Hope this helped :P
3 0
3 years ago
Read 2 more answers
You are an online training company and stream a lot of training videos from your
Yuri [45]

I think It would be have to be tovuti

5 0
3 years ago
Other questions:
  • A ____ is a program that is installed without the permission or knowledge of the computer user, that is designed to alter the wa
    11·1 answer
  • Difference between implicit and explicit type casting
    7·2 answers
  • Which of the following is good practice to ensure that you do not get malware on your computer from an online source?
    5·1 answer
  • Explain briefly why the discovery phase is a favorite with many developers
    5·1 answer
  • What needs to be true of data used in consolidation
    14·1 answer
  • An incurred cost that cannot be recovered, which is irrelevant for all decisions about the future, is included in the projected
    14·1 answer
  • How and why does the daily path of the sun across the sky change for different locations on Earth?
    7·1 answer
  • . Create an abstract Dollar class with two integer attributes, both of which are non-public (Python programmers - it is understo
    10·1 answer
  • ANSWER ASAP GIVING BRAINIEST FIVE STAR AND HEART!
    5·2 answers
  • Cho lược đồ CSDL “Quản lý BÁN HÀNG” có các bảng như bên dưới. (Thuộc tính in đậm và
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!