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
patriot [66]
3 years ago
5

Write a program to display the roll number of students who have scored 100 in math. display appropriate message if none have sco

red 100 in math. assume 10 array elements. (Blue J)
Computers and Technology
1 answer:
SVEN [57.7K]3 years ago
5 0

Answer:

# include<iostream>

#include<conio.h>

using namespace std;

main()

{

int mathmarks[10];

int highestmarks = 100;

int check =0;

for(int i= 1; i<=10; i++)

{

cout<<"\nMarks of student "<<i<<"in maths =";

cin>>mathmarks[i];

}

for (int j= 1 ; j<=10; j++)

{

    if (mathmarks[j] == highestmarks)

    {

    check = 1;

    break;

    }

}

if (check = 1)

{

cout<<"The student having 100 marks in class having roll # ="<<j;

}

else

{

cout<<"No Student Have 100 Marks in Class";

}

getch();

}

Explanation:

In this program, we need to find the student who have got 100 marks and print his roll number. if no students have 100 marks then print "No students got 100 marks in class". So, we take and integer type array named mathmarks of size 10. Two integer variables named highestmarks to store 100 and check to check the condition in if else. Initially check = 0, if we found the student having 100 marks then this will be updated as 1 and we print our required output, else we print no student got 100 marks.

You might be interested in
What are the TV resolutions
Leokris [45]
Numbers like 1080p and 4K refer to a TV's<span> screen </span>resolution and<span> the more pixels a screen has the more picture detail it can show.</span>
6 0
3 years ago
suppose as a head software engineer you assign the job of creating a class to a subordinate. You want to specify thirty-eight di
Goryan [66]

Answer:

jskjsjsjsjskdmsnjsnsnsns

8 0
4 years ago
When using correct ergonomic technique be sure to _____.
adell [148]
It is A my boy ✊✊✊✊✋✋☝
6 0
3 years ago
Read 2 more answers
"Rights and duties are two sides of the same coin." Explain with examples​
telo118 [61]

Answer:

Find the explanation below.

Explanation:

Rights are privileges that citizens or members of a community are entitled to by law. Duties are the responsibilities required of them. These two work together and are dependent on each other. Performing our duties help to safeguard our rights.

For example, the law specifies the right to life for people. This is an entitlement that should be respected by the individual and others around him. It is therefore the duty of the individual and others to respect this right to life and never compromise it in any way.

The law allows the right to free speech. It is also our duty to be patriotic and this would prevent compromising the right to free speech by saying unpatriotic things that can cause political tensions.

3 0
3 years ago
What does SIP stand for?
agasfer [191]
Session Initiation Protocol, brainliest ?
4 0
4 years ago
Read 2 more answers
Other questions:
  • Why was unicode invented
    12·2 answers
  • How do you make a 'does not equal' symbol on the computer? you know the equal sign with a line through it..?
    6·1 answer
  • Which of the following ways is NOT one of the ways that the census is
    5·1 answer
  • Biosolids are used as a chemical free natural choice for fertilizing.
    5·1 answer
  • Describe how operating system use the following security tools: firewall, automatic updating, antivirus software, spyware and ma
    11·1 answer
  • Sandra has composed a draft of her essay in Microsoft Word. She now wants to revise the essay. Which tool can she use to store t
    9·1 answer
  • Websites not only give us information, but they also inspire designers in their layouts, illustrations, images, typefaces, and c
    6·1 answer
  • What is collaboration
    14·1 answer
  • Explain how a magnetic hard disk drive (HDD) operates.
    12·1 answer
  • Why can’t a computer use source code
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!