Question
ALL CODES BELOW MUST BE IN FORMAT OF C PROGRAMMING Problem 1. One large chemical company pays its salespeople on a commission basis. The salespeople
ALL CODES BELOW MUST BE IN FORMAT OF C PROGRAMMING
Problem 1.
One large chemical company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who sells $5000 worth of chemicals in a week receives $200 plus 9% of $5000, or a total of $650. Develop a C program that will input each salespersons gross sales for last week and will calculate and display that salespersons earnings. Process one salesperson's figures at a time.
Problem 2.
Calculate the value of \pi from the infinite series \pi = 4 (4 /3) + (4/5) (4/7) + (4/9) (4/11) + Print a table that shows the value of \pi approximated by one term of this series, by two terms, by three terms, and so on. How many terms of this series do you have to use before you first get 3.14? 3.141? 3.1415? 3.14159?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started