Skip to main content

Posts

Showing posts from December 4, 2018

Percentage

Percentage In this post, we will learn about percentage . Percentage  One percent (1%) means 1 per 100.  Fifty percent (50%) means half of total. Hundred percent (100%) means full or 100 out of 100 or 1000 out of 1000. Two hundred  percent (200%) means twice of original. for example if your salary is 12 Lakh and change your job and you salary become 36 Lakh in this case you salary increased by (36 - 12) = 24 Lakh means twice of original means your salary increased by 200 %.   Calculate Percentage Example: Calculate 25% of 80 100% of 80 = 80 1% of 80 = (80/100) 25% of 80 = (80/100)x25 Shortcut: X percentage of Y = (Y x X)/100  If only 10 of the 200 apples are bad, what percent is that? In 200 apple 10 are bad In 1 apple (10/200) will be bad In 100 apple (10/200)x100 = 5% will be be bad Shortcut: X is k percentage of Y means X = (k*y)/100  Please write comments if you find anything incorrect, or you...

Time, Speed and Distance

Time, Speed And Distance  In this post, We will learn about time, speed and distance. Important Formula Distance = Time x Speed Time = Distance/Speed Speed = Distance/time Important Units Distance: meter (m), kilometre (km) Time: Hour (h), second (s) speed: meter/second (m/s), kilometre/hour  (km/h) Important Conversion 1 km = 1000 meter 1 h = 3600 s 1 km/h = (5/18) m/s 1 m/s = (18/5) km/h Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above. 

LCM and HCF

Lowest Common Factor and Highest Common Factor  In this post, we will learn   Lowest Common Factor(LCM) and Highest Common Factor (HCF). Factor and Multiples: If number 'a' divide number 'b' exactly then 'a' is a factor of 'b' and 'b' is multiple of 'a'.    Prime Factorisation: It is possible to write any number natural number as a product of prime number and this product is unique for every number Example: 10: 2 x 5 11: 11 100: 2 x 2 x 5 x 5 Lowest Common Factor(LCM) Prime Factorisation Method Find L.C.M of 12, 16 and 30 Step 1: Resolve each number into its prime factor 12: 2 x 2 x 3 16: 2 x 2 x 2 x 2 30: 2 x 3 x 5 Step 2: Find highest power of the factor for each prime 2 x 2 x 3 = 2² x 3¹ 2 x 2 x 2 x 2 = 2⁴ 2 x 3 x 5 = 2¹ x 3¹ x 5¹ Step 3: L.C.M will be Product of highest power LCM of 12, 16 and 30 = 2⁴ x 3¹ x 5¹ = 240 because 2, 3, 5 is unique prime (step 1) and highest power is...

OFFSET in Computer Science

OFFSET in Computer Science In the post, We will understand what is the meaning of OFFSET in computer science with an example. In computer science offset comes picture at may place like packing a data structure, encoding the data etc in some standard protocol so that other parties can deserialise it and understand the data. We will understand its important how does it work with example. suppose we have a data structure for a student like { name:string[20] roll: int[4] course: string[25] batch: int[4] } We want to serialise below student data  { name:"Amit Gupta" roll: 1234 course:Computer Science" batch: 2018 } Our protocol follow the rule that we will insert a value and if space will remain empty we will fill it with $ for example length of "Amit Gupta" is 10 but standard size is 20 so will fill 10 $ after "Amit Gupta". So serialisation of above data will be Amit Gupta$$$$$$$$$$1234Computer Sc...