Sample Input
Enter R, F(p), n(e), f(l), f(i), f(c), L: 5 0.25 20 0.2 0.15 0.11 150
Sample Output
The number of communicative civilizations within the Milky Way today: 12.375
2. [7] Write a C Code to calculate D = 𝒃^𝟐 − 𝟒𝐚𝐜 and show the result according to following conditions:
a. D>0 then Calculate X1, X2. Where 𝒙𝟏 = (−𝒃+√𝒃^𝟐−𝟒𝒂𝒄)/𝟐𝒂 and 𝒙𝟐 = (−𝒃−√𝒃^𝟐−𝟒𝒂𝒄)/𝟐𝒂
b. D =0 then calculate X. Where 𝐱 = 𝒃^𝟐/𝟐𝒂
c. D<0 then print “No Solution”.
Sample Input
Enter a, b & c: 5 6 1
Sample Output
X1: -0.2
X2: -1
- If Total mark >=80 then A+
- If Total mark >=70 then A
- If Total mark >=60 then A
- If Total mark >=50 then B
- Else Grade = F
Sample Input
Enter Attendance, Class test, Quiz test, Assignment, Midterm and Final Exam: 2.5 7.5 3.5 7 21.5 33
Sample Output
Total Mark: 75 & Grade: A