From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 1553/CH6/EX6.5/6Ex5.sce | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 1553/CH6/EX6.5/6Ex5.sce (limited to '1553/CH6/EX6.5/6Ex5.sce') diff --git a/1553/CH6/EX6.5/6Ex5.sce b/1553/CH6/EX6.5/6Ex5.sce new file mode 100644 index 000000000..67b7ee918 --- /dev/null +++ b/1553/CH6/EX6.5/6Ex5.sce @@ -0,0 +1,9 @@ +//chapter 6 Ex 5 + +clc; +clear; +close; +Atotal=36; Btotal=44; +avgA=40; avgB=35; +avg=(Atotal*avgA+Btotal*avgB)/(Atotal+Btotal); +mprintf("The average weight of whole class is %.2f kilograms",avg); -- cgit