Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to input 3 values(mid, fin, course) find total. print total. print pass or fail. condition: total >= 60 pass otherwise fail Write

image text in transcribed
image text in transcribed
image text in transcribed
Write a program to input 3 values(mid, fin, course) find total. print total. print pass or fail. condition: total >= 60 pass otherwise fail Write a program to input your original_bill. find discount. print original_bill, discount, fin_bill condition: if original_bil > 50 discount is 10%. otherwise discount is 5% if (original_bil > 50 ) discount = original_bil * 10/100 else discount = original_bil * 5 /100 fin_bill = original_bil - discount print original_bil, discount, fin_bill example-1: original_bil = 60 discount = original_bil * 10/100 fin_bill = original_bil discount // program to correct errors #include int main() int a=5 b=3; int fin mark=70; float c = 5.3; Printf("Hi %d", (a+bc)); printf('Hello exam') if (fin mark > 59 printf(' I am pass ') otherwise printf("I am fial "); Return 0; }

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

Students also viewed these Databases questions