ইউ আর আই অনলাইন জাডজ সলুশন URI Online Judge Solution 1006 | Average 2- in C++ language - Bdtunerexpress

Latest

Monday, March 26, 2018

ইউ আর আই অনলাইন জাডজ সলুশন URI Online Judge Solution 1006 | Average 2- in C++ language

Problem :

Read three values (variables A, B and C), which are the three student's grades. Then, calculate the average, considering that grade A has weight 2, grade B has weight 3 and the grade C has weight 5. Consider that each grade can go from 0 to 10.0, always with one decimal place.

Input

The input file contains 3 values of floating points with one digit after the decimal point.

Output

Print MEDIA(average in Portuguese) according to the following example, with a blank space before and after the equal signal.

Source Code:
#include <iostream>
#include <iomanip>
using namespace std;

int main(){

    float A,B,C,m;
    cin>>A>>B>>C;
    m = ((A/10)*2)+((B/10)*3)+((C/10)*5);
    cout<<"MEDIA = "<<fixed<<setprecision(1)<< m <<endl;

    return 0;
}

How to install adobe premiere pro 2023 - কিভাবে Adobe Premiere PRO আপনার পিসিতে ইন্সটল করবেন

 How to install adobe premiere pro 2023 Download Premiere Elements Open the Adobe Premiere Elements download page in your web browser. Sign ...