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

Latest

Monday, March 26, 2018

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

Problem :
Read two floating points' values of double precision A and B, corresponding to two student's grades. After this, calculate the student's average, considering that grade A has weight 3.5 and B has weight 7.5. Each grade can be from zero to ten, always with one digit after the decimal point. Don’t forget to print the end of line after the result, otherwise you will receive “Presentation Error”. Don’t forget the space before and after the equal sign.

Input

The input file contains 2 floating points' values with one digit after the decimal point.

Output

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

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

int main(){

    float A,B,m;
    cin>>A>>B;
    m = ((A*3.5)+(B*7.5))/(3.5+7.5);
    cout<<"MEDIA = "<<fixed<<setprecision(5)<< 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 ...