your program to
A marathon is a long-distance race with an official
distance of 42.195 kilometres (26 miles 385 yards),
usually run as a road race or footrace.
A local marathon was organized at Bavdhan, Pune. The
distance actually covered by the participants has been
recorded in an array R[] which is an integer array
holding the values in kilometres. If there are N number
of participants who started running at a particular
time, then the size of Ris N. The participants should
cover a distance more than 0.0 km to get recorded in
array RO.
Find the maximum distances covered by 3 highest
racers excluding finishers. If there are only one or two
racers excluding finishers, give their distances covered.
R[] will be input float array. Write a code to take Input
array R[; and return 3 maximum distances excluding
Finishing Distance d, d = 42.195 km.
Answers
Forgive me
PLEASE
MARK ME AS BRAINLIEST
MARK ME AS BRAINLIEST
MARK ME AS BRAINLIEST
IM NOT TRYING TO SPAM
IM TRYING TO MAKE AWARENESS ABOUT COVID 19
Coronavirus disease (COVID-19) is an infectious disease caused by a newly discovered coronavirus.
Coronavirus disease (COVID-19) is an infectious disease caused by a newly discovered coronavirus.Most people infected with the COVID-19 virus will experience mild to moderate respiratory illness and recover without requiring special treatment. Older people, and those with underlying medical problems like cardiovascular disease, diabetes, chronic respiratory disease, and cancer are more likely to develop serious illness.
Coronavirus disease (COVID-19) is an infectious disease caused by a newly discovered coronavirus.Most people infected with the COVID-19 virus will experience mild to moderate respiratory illness and recover without requiring special treatment. Older people, and those with underlying medical problems like cardiovascular disease, diabetes, chronic respiratory disease, and cancer are more likely to develop serious illness.The best way to prevent and slow down transmission is to be well informed about the COVID-19 virus, the disease it causes and how it spreads. Protect yourself and others from infection by washing your hands or using an alcohol based rub frequently and not touching your face.
Coronavirus disease (COVID-19) is an infectious disease caused by a newly discovered coronavirus.Most people infected with the COVID-19 virus will experience mild to moderate respiratory illness and recover without requiring special treatment. Older people, and those with underlying medical problems like cardiovascular disease, diabetes, chronic respiratory disease, and cancer are more likely to develop serious illness.The best way to prevent and slow down transmission is to be well informed about the COVID-19 virus, the disease it causes and how it spreads. Protect yourself and others from infection by washing your hands or using an alcohol based rub frequently and not touching your face. The COVID-19 virus spreads primarily through droplets of saliva or discharge from the nose when an infected person coughs or sneezes, so it’s important that you also practice respiratory etiquette (for example, by coughing into a flexed elbow).
Answer:
#include<iostream>
#include<conio.h>
using namespace std;
float d=42.195;
float * maximum(int size, float * input, float * max){
int max1,max2,max3;
max1=max2=max3=0;
for(int i=0; i<size; i++){
if(input[i]>=d)
continue;
if(input[i]>=max1)
max1=input[i];
if(input[i]>=max2 && input[i]<max1)
max2=input[i];
if(input[i]>=max3&&input[i]<max2)
max3=input[i];
}
max[0]=max1;
max[1]=max2;
max[2]=max3;
return max;
}
int main(){
float r[100];
int n;
cin>>n;
for(int i=0;i<n;i++){
cin>>r[i];
r[i]=(int)r[i];
}
float *max=new float;
max=maximum(n,r,max);
cout<<"Top 3 distances covered are:"<<endl;
for(int i=0;i<3;i++)
cout<<max[i]<<endl;
getch();
return 0;
}
Explanation: