Posts

Exercise: Arithmetic Operators

  Exercise: Arithmetic Operators WAP to input two numbers and find sum. Solution:     WAP to input two numbers and find multiplication. Solution:     WAP to input number and calculate its square and cube. Solution:    WAP to input length and breadth of a rectangle and calculate its area. Area=Length*Breadth. Solution:   WAP to input radius and calculate area of circle and circumference of a circle. Area of circle = 3.14*r*r, Circumference of circle = 2*3.14*r Solution:   WAP to input radius and height of a cylinder and calculate volume of cylinder. Volume=3.14*r*r*h Solution:  WAP to input principal, rate, time and calculate Simple Interest. Simple Interest=Principal*Rate*Time/100. Solution:   WAP to Input 5 subject marks of a student and find total marks and percentage obtained by the student. Solution:   WAP to convert temperature from Fahrenheit to Celsius. C=(F-32)*5/9. Solution:    W...

Assignment to develop a non-scientific calculator using C Language-81998

Image
Reference For this assignment, you are required to develop a non-scientific calculator using C. Your calculator should only solve summation, subtraction, division, product, square root and square expressions. Utilizing the math.h header for your program, your calculator should start by prompting the user to enter a two-or-more-operand mathematical equation just like how you would using a non-scientific calculator. Your program should then display the correct answer and the user will have the choice to either continue using the calculator with the current answer to perform further calculations or end the program. Your program should also have a help function to display all the functions of the calculator. A sample output of the program when the user enters “help” is shown below: Your calculator must have the following additional functionalities and features: Your calculator should display values accurate up to 6 decimal places. For square and squar...

Questions are taken from "C: How to Program" by Deitel and Deitel.

https://www.eecs.wsu.edu/~cs150/tutorial/ CptS 150 Program Design and Development Tutorial Questions are taken from "C: How to Program" by Deitel and Deitel. Acknowledgements I would like to thank Janet Raynor, Michelle Antolovich and Kael Rowan for their contribution to this tutorial. Without their hard work, this effort would not have been possible. I would also like to thank the students for testing the tutorial and providing valuable feedback. -- Teck Choo Tan Introduction to C Programming Short Review Problems 2.7 2.9 2.10 2.15 3.43 5.50d Programming Problem 2.20 TAKE THE QUIZ! Selection Short Review Problems 3.11 3.31 4.24b, 4.24e 4.30 Programming Problems 3.35 4.28 3.20 3.23 TAKE THE QUIZ! Loops Short Review Problems 3.10 4.5 4.6b Programming Problems 3.17 3.47b 4.10 4.12 4.18 TAKE THE QUIZ! Functions Short Review Problems 5.7 5.8 5.13 5.50 Programming Proble...