Sign Up Sign Up

Continue with Facebook
or use


Have an account? Sign In Now

Sign In Sign In

Continue with Facebook
or use

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Continue with Facebook
or use

Forgot Password?

Need An Account, Sign Up Here

Sorry, you do not have permission to add post.

Continue with Facebook
or use

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Bangla Cyber Q&A

Bangla Cyber Q&A Logo Bangla Cyber Q&A Logo

Bangla Cyber Q&A Navigation

  • Home
  • Contact us
  • FAQs
Search
Ask A Question

Mobile menu

Close
  • Home
  • Blog
  • চাকরির খবর
  • Categories
  • Questions
    • সাম্প্রতিক প্রশ্ন
    • সর্বাধিক উত্তর প্রাপ্ত
    • উত্তরবিহীন প্রশ্ন
  • Users
  • Polls
  • Badges
Home/ Questions/Q 497
Next
Answered

Bangla Cyber Q&A Latest Questions

Ayan
  • 0
  • 0
AyanRegular
Asked: February 20, 20192019-02-20T05:36:22+00:00 2019-02-20T05:36:22+00:00In: Programming

URI Online Judge : 1005 Average 1 (Beginner Problem) need Solution in C language

  • 0
  • 0

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.

Input Samples Output Samples
5.0
7.1
MEDIA = 6.43182
0.0
7.1
MEDIA = 4.84091
10.0
10.0
MEDIA = 10.00000
1
  • 1 1 Answer
  • 1k Views
  • 0 Followers
  • 0
  • Share
    Share
    • Share on Facebook
    • Share on Twitter
    • Share on WhatsApp

    You must login to add an answer.

    Continue with Facebook
    or use

    Forgot Password?

    Need An Account, Sign Up Here

    1 Answer

    • Voted
    • Oldest
    • Recent
    1. Master
      Best Answer
      Master Begginer
      2019-02-20T06:10:02+00:00Added an answer on February 20, 2019 at 6:10 am

      #include

      int main(){

      float A,B,med;

      scanf(“%f %f”,&A,&B);

      med=((A*3.5)+(B*7.5))/(3.5+7.5);

      printf(“MEDIA = %.5f\n”,med);

      return 0;

      }

        • 0
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on WhatsApp

    Sidebar

    Ask A Question

    Stats

    • Questions 2k
    • Answers 2k
    • Best Answers 85
    • Users 11k

    Top Member

    Mithun

    Mithun

    • 476 Questions
    • 1k Points
    Explainer
    RoY

    RoY

    • 382 Questions
    • 1k Points
    Explainer
    Falak Chowdhury

    Falak Chowdhury

    • 0 Questions
    • 516 Points
    Explainer
    Ayan

    Ayan

    • 493 Questions
    • 461 Points
    Regular
    Suhag Hasan

    Suhag Hasan

    • 3 Questions
    • 454 Points
    Regular
    Polash

    Polash

    • 474 Questions
    • 401 Points
    Regular
    • Most visited
    • Answers
    • Passport is ready, pending for issuance- এর মানে কি?

    • স্থায়ী আর অস্থায়ী চাকরি কী??

    • অফিস সহায়ক পদটি কি ?

    • ডাইনামিক ওয়েব সাইট কাকে বলে? এর বৈশিষ্ট্য কী?

    • সেনাবাহিনীতে যোগ দিতে কি কি যোগ্যতা লাগে

    • Suhag Hasan
      Suhag Hasan added an answer ভোটার আইডি কার্ড সংশোধন করার জন্য, nidw.gov.bd -এই লিংকে ভিজিট… May 6, 2025 at 12:44 pm
    • Suhag Hasan
      Suhag Hasan added an answer "We want Bread and Roses!" ৮ মার্চ, ১৯১২, ম্যাসাচুসেটস। হাজারো… March 9, 2025 at 7:08 am
    • Ayan
      Ayan added an answer https://www.ivacbd.com/ এই ওয়েবসাইটের মাধ্যমে ভিসা চেক করতে পারবেন। August 10, 2023 at 10:20 am
    • Polash
      Polash added an answer ৩০ হাজারের মধ্যে ভাল কম্পিউটার পাওয়া মুসকিল ৫০ থেকে ৬০… August 10, 2023 at 9:14 am
    • Ayan
      Ayan added an answer কম্পিউটার অভিজ্ঞতা থাকলেই হয় সার্টিফিকেট লাগে না। চাকরির ইন্টারভিউতে আপনার… August 10, 2023 at 9:07 am

    Trending Topic

    bgb buying guide computer digital marketing education facebook fiverr how to internet laptop mi price list question social media ssc ssc exam করোনা ভাইরাস জানতে চাই দাম জানতে চাই? ফল ব্যবসা

    Explore

    • Home
    • Blog
    • চাকরির খবর
    • Categories
    • Questions
      • সাম্প্রতিক প্রশ্ন
      • সর্বাধিক উত্তর প্রাপ্ত
      • উত্তরবিহীন প্রশ্ন
    • Users
    • Polls
    • Badges

    Footer

    © 2021 Bangla Cyber. All Rights Reserved.