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
bookmark question for later what database did zach choose? microsoft excel microsoft access db2 oracle
Veronika [31]

Zach chooses the databases is Oracle

<h3>Explain about the databases?</h3>

Information that is organized into a database is made available for quick administration, updating, and access. Network databases, object-oriented databases, and hierarchical databases are all types of databases.

According to the TOPDB Top Database index, Oracle is the most widely used database with 32.09% of the market share. Computer databases often hold collections of data records or files containing information, such as sales transactions, customer data, financials, and product information My SQL, with a score of 16.64, is in second place, while SQL Server, with a score of 13.72 percent, is third. Since at least 2006, Oracle has dominated global database searches, making it the most used database not just in 2022.

To learn more about databases refer to:

brainly.com/question/28255661

#SPJ4

5 0
1 year ago
When Building a resume what would i put when it says field of study especially when your still going to high school?​
Nastasia [14]
Just put Still attending or Enter Highschool then if they ask you about it just let them know your still attending, that’s what I did and got the job on the spot
6 0
3 years ago
Drag the tiles to the correct boxes to compete the pairs. Identify the types of chemical reactions occurring in the chemical equ
ioda

The question is incomplete. The complete question is :

Drag the tiles to the correct boxes to compete the pairs. Identify the types of chemical reactions occurring in the chemical equations.

combustion reaction , photosynthesis , respiration

water + carbon dioxide + sunlight → oxygen + glucose

methane + oxygen → water + carbon dioxide + heat

glucose + oxygen → carbon dioxide + water + energy

Solution :

The chemical reactions that is occurring in the following chemical equations are :

<u>Photosynthesis</u>

water + carbon dioxide + sunlight → oxygen + glucose

Plants uses the light energy from the sun in the presence of water and carbon dioxide produces food by the process of photosynthesis. It produces glucose and oxygen.

<u>Respiration</u>

glucose + oxygen → carbon dioxide + water + energy

The cellular respiration process produces ATP with the breakdown of the glucose and oxygen. During respiration process, carbon dioxide is obtained along with water and energy.

<u>Combustion reaction</u>

methane + oxygen → water + carbon dioxide + heat

Combustion reaction is a chemical reaction in which methane is the main ingredient. Combustion takes place as things burn in the presence to methane and oxygen to form carbon dioxide, water and heat.

8 0
3 years ago
FOR PYTHON 3
VLD [36.1K]

Answer:

Complete Python code with step by step comments for explanation are given below.

Python Code:

# creating a function named scrabble_number that will take num as input argument

def scrabble_number(num):

   # print the original number  

   print("The original number is: ",num)  

   # we can implement the required logic by using python built-in functions join() and zip()  

   scrambled = ''.join([char[1]+char[0] for char in zip(num[::2], num[1::2])])  

   # print the scrambled number

   print("The scrambled number is: " + str(scrambled))  

Driver code:

scrabble_number('123456')

Output:

The original number is: 123456

The scrambled number is: 214365

5 0
3 years ago
Please hurry Arrange the steps of the engineering design process in the correct sequence.
AnnZ [28]

Answer:The Nine steps  of the engineering design process

  1. <u>Identify the Problem</u>-Defining the problem
  2. Finding solutions through Brainstorming technique
  3. Conducting a background research/Survey
  4. Developing the solution-Creating an array of solutions
  5. Selecting the best solution
  6. Building a prototype
  7. Testing and redesigning
  8. Improve the design-Specifying the requirement
  9. Communicating the result

6 0
3 years ago
Other questions:
  • Alonzo collects bugs. He has created a fascinating display of large insects. Collecting bugs is a(n) _____ to Alonzo.
    10·2 answers
  • People with healthy media diets:
    12·1 answer
  • Re-write the following arithmetic expressions as Scheme expressions and show the result of the Scheme interpreter when invoked o
    13·1 answer
  • You are performing a manual WLAN RF site survey in a location that has several long hallways with small offices on both sides. Y
    8·1 answer
  • Can some one help me on 4&amp;5
    6·1 answer
  • Which of the following is least likely to be a scientific experiment?
    11·2 answers
  • Write down the functions of network layer in your own words.ASAP
    14·1 answer
  • 1.
    15·1 answer
  • What the advantages and disadvantages of file sharing to the users​
    9·1 answer
  • Tape is magnetic tape which sound ca be recorded , true or false?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!