Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) write a program that reads the radius of a circle (as float value) and computes and prints the diameter, the circumference and the area.

1) write a program that reads the radius of a circle (as float value) and computes and prints the diameter, the circumference and the area. Use the value 3.14159.

2) Write a program that prints the following patterns separately, one below the other. Use for loops to generate the patterns. All asterisk(*) should be printed by a single printf statement of the form printf("%s", " * " );

3) Collecting money become increasingly difficult during peri-ods of recession, so companies my tighten their credit limits to prevent their accounts receivable (money owed to them) from becoming too large. In response to a prolonged recession, one company has cut its customers' credit limits in half. Thus, if a particular customer had a credit limit of $2000, it's now $1000. If a customer had a credit limit of $5000, it's now $2500. Write a program that analyzes the credit status of three customers of this company. For each customer you're given:

a- The customer's account number.

b- The customer's credit limit before the recession.

c- The customer's current balance (i.e, the amount the customer owes the company).

The program should calculate and print the new credit limit for each customer and should determine (and print) which customers have current balance that exceeds their new credit limits.

4) An online retailer sells five differnt product whose retail prices are

product number ( Retail price)

1 ($ 2.98)

2 ($ 4.50)

3 ($ 9.98)

4 ($ 4.49)

5 ($ 6.87)

Write a program should that reads a series of pairs of numbers as follows:

1- Product number

2- Quantity sold for one day

the program should use (switch) statement to help determine the retail price for each product .

the program should calculate and display the total retail value of all product sold last week.

5) Write a program that prints the following diamond shape.

may use (printf) statement that print either a single asterisk ( * ) or a single blank. Maximize your use of iteration ( with nested for statements) and minimize the number of (printf) statements.

all answers should be in C language please and it copyable.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions

Question

=+ (b) Find an example where u is not countably subadditive.

Answered: 1 week ago