Question
This is a C programming HW
Homework details Homework 1A: Problem # 3.18 (5 points) 3.18 (Sales Commission Calculator) One large chemical company pays it
Homework 1B: Problem # 3.19 (5 points) 3.19 (Interest Calculator) The simple interest on a loan is calculated by the formula
0 0
Add a comment Improve this question Transcribed image text
Answer #1

3.18.) Solution of problem no 3.18 In C programming Language :-

Program : -

#include<stdio.h>
int main(){

float sales;
printf("Enter Sales In Dollars (-1 to end) ");
scanf("%f",&sales);
while(sales>=0){

float salary=200+(sales*0.09);
printf("Salary is : $%.2f\n\n",salary);
printf("Enter Sales In Dollars (-1 to end) ");
scanf("%f",&sales);
}

return 0;
}

3.19.) Solution of problem no 3.19 In C programming Language :-

Program : -

#include<stdio.h>
int main(){

float p,r;
int d;
printf("Enter Loan Principal (-1 to end) ");
scanf("%f",&p);
while(p>=0){
printf("Enter interest rate :");
scanf("%f",&r);
printf("Enter term of loan in days :");
scanf("%d",&d);

float salary=(p*r*d)/365;
printf("The interest charge is : $%.2f\n\n",salary);
printf("Enter Loan Principal (-1 to end) ");
scanf("%f",&p);
}

return 0;
}

Add a comment
Know the answer?
Add Answer to:
This is a C programming HW Homework details Homework 1A: Problem # 3.18 (5 points) 3.18...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • SOLVE USING C!!! Project objective: Conditional statements, loops, reading from file, user defined functions. **Submit source...

    SOLVE USING C!!! Project objective: Conditional statements, loops, reading from file, user defined functions. **Submit source code (LargeProg1.c) through Canvas One source code file(unformatted text) will be submitted Here is INCOMPLETE code to get started: LargeProg1.c The file name must match the assignment The code should be tested and run on a Microsoft compiler before it is uploaded onto Canvas The code must be submitted on time in order to receive credit (11:59PM on the due date) Late submissions will...

  • PROGRAMMING IN C. 1) The first program will compute compounded interest. Suppose you invest $1000.00 at...

    PROGRAMMING IN C. 1) The first program will compute compounded interest. Suppose you invest $1000.00 at an interest rate of 2% per year. If the interest is computed at the end of each day, it is added to your account (i.e., the interest is compounded daily). Print what the account value will be at the end of each year for 20 years. Use data type double for money. For 365 days per year (ignore leap year), the daily interest rate...

  • JUL 9 of 11 (9 complete) HW Score: 62.46%, 6.87 of 11 pts P8-29A (similar to)...

    JUL 9 of 11 (9 complete) HW Score: 62.46%, 6.87 of 11 pts P8-29A (similar to) Question Help At September 30, 2018, the accounts of Mountain Terrace Medical Center (MTMC) include the following: During the last quarter of 2018, MTMC completed the following selected transactions Click the icon to view the transactions.) $ Accounts Receivable Allowance for Bad Debts (credit balance) 146,000 3,400 Read the requirements Requirement 1. Open T-accounts for Accounts Receivable and Allowance for Bad Debts. Journalize the...

  • Number 16. Chapter 3 Problem Comes from "Starting out with >>> C++ From Control Structures through...

    Number 16. Chapter 3 Problem Comes from "Starting out with >>> C++ From Control Structures through Objects" Ninth Edition. Checking work Programming Challenges 147 16. Senior Citizen Property Tax Madison County provides a $5,000 homeowner exemption for its senior citizens. For example, if a senior's house is valued at $158,000, its assessed value would be $94,800, as explained above. However, he would only pay tax on $89,800. At last year's tax rate of $2.64 for cach $100 of assessed value,...

  • Problem 5-41 a. Find the FV of $1,000 invested to eam 10% after 5 years. Answer...

    Problem 5-41 a. Find the FV of $1,000 invested to eam 10% after 5 years. Answer this question by using a math formula and also by using the Excel function wizard. Now create a table that shows the FV at 0%, 5%, and 20% for 0, 1, 2, 3, 4, and 5 years. Then create a graph with years on the horizontal axis and FV on the vertical axis to display your results. c. Find the PV of $1,000 due...

  • This C++ Program should be written in visual studio 2017 You are to write a program...

    This C++ Program should be written in visual studio 2017 You are to write a program that can do two things: it will help users see how long it will take to achieve a certain investment goal given an annual investment amount and an annual rate of return; also, it will help them see how long it will take to pay off a loan given a principal amount, an annual payment amount and an annual interest rate. When the user...

  • C PROGRAMMING Introduction In this part, you will solve a problem described in English. Although you...

    C PROGRAMMING Introduction In this part, you will solve a problem described in English. Although you may discuss ideas with your classmates, etc., everyone must write and submit their own version of the program. Do NOT use anyone else’s code, as this will result in a zero for you and the other person! Shipping Calculator Speedy Shipping Company will ship your package based on the weight and how far you are sending the package, which can be anywhere in the...

  • View Policies Current Attempt in Progress Bounce House Party Supply Ltd.rents bouncy castles and inflatable slides...

    View Policies Current Attempt in Progress Bounce House Party Supply Ltd.rents bouncy castles and inflatable slides for parties, school fairs, and company picnics. The company also sells party supplies such as balloons, streamers, and piñatas. The company started business in September and had the following transactions in its first month: Date: Sept. 1 1 3 8 11 Bounce House Party Supply Ltd. issued 29,600 common shares for $192,400 cash. The company took out a $118,400 bank loan with an interest...

  • Bounce House Party Supply Ltd. rents bouncy castles and inflatable slides for parties, school fairs, and...

    Bounce House Party Supply Ltd. rents bouncy castles and inflatable slides for parties, school fairs, and company picnics. The company also sells party supplies such as balloons, streamers, and piñatas. The company started business in September and had the following transactions in its first month: Analyze and record these transactions. (Enter amounts that decrease account balance using either a negative sign preceding the number e.g. -45 or parentheses e.g. (45). Indicate whether it is Revenues, Expenses or Dividends declared in...

  • Homework: HW 3 - CH 6 core: 0 of 1 pt P6-16 (similar to) 5 of...

    Homework: HW 3 - CH 6 core: 0 of 1 pt P6-16 (similar to) 5 of 5 (4 complete) Waldorf, Incorporated provided the following balance sheet, income statement, and cash flow information for the current year. Click the icon to view the balance sheet.) (Click the icon to view the income statement.) (Click the icon to view the cash flow information.) Requirement Prepare the statement of cash flows under the indirect method for Waldorf, Incorporated. Accrued expenses relate to Selling,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT