subject

Write a c program to ask the user to input the first 3 letters of a selected object all in lower case letters. you will need a printf statement to give the user some guidance about your program. printf("calculating the perimeter and area of an object "); printf("\tselect from a circle, square, rectangle, parallelogram, triangletn"); printf("ltenter first 3 letters of object in all lower caseln\n"); printf("ltselection: "); scanf( /i.. rest of the program use an "if" statement to match the correct object selection, read variables, calculate and print results. if(strobj "cir") { printf scanf( perimeter = to read in radius from user area = printf("the perimeter the area else if(strobj "squ') { printf( scanf( to read in length from user else printf("error! enter all lower case cir, squ, rec, par or tri."); loop until the user wants to quit include a heading object picture perimeter area circle 2ttt md 7r2 d 12 square 41 ope rectangle 212w lw 2l +2w ih parallelogram triangle bh a+b+c 004

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 00:30, angeline2004
At an open or uncontrolled intersection, yield if a. the cross road has more lanes than yours b. the cross road has fewer land than yours c. you’re on a state highway and the cross road is a secondary road d. do you have three or more passengers in your vehicle
Answers: 2
image
Computers and Technology, 22.06.2019 09:50, shadow29916
What is a rush associated with alcohol?
Answers: 1
image
Computers and Technology, 22.06.2019 18:00, alyssacyamamoto8050
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
image
Computers and Technology, 22.06.2019 23:30, kenken2583
Jaina and tomas are being considered as new tenants in an apartment. the landlord looks at their creditworthiness because he wants to be sure his new tenant pays the rent on time and in full. the table below summarizes the information that was on their applications. application information questions jaina tomas how many years have you had your job? 5 2 what is your monthly salary? $1,850 $2,500 how many credit cards do you have? 4 1 how much debt do you have? $13,000 $7,000 how many times were you late with payments on credit cards in the past year? 5 1 who will the landlord decide to be more creditworthy and why? tomas because the ratio of his debt to income is less. jaina because she has had her job longer, which makes her look more stable. jaina because she has more credit cards available to her. tomas because he makes more money per month.
Answers: 2
You know the right answer?
Write a c program to ask the user to input the first 3 letters of a selected object all in lower cas...

Questions in other subjects:

Konu
Mathematics, 03.12.2021 04:10
Konu
English, 03.12.2021 04:10