Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C program to accept marks scored in a subject and print the result as below. If the marks scored is less than 35

Write a C program to accept marks scored in a subject and print the result as below. If the marks scored is less than 35 print result as fail, if the marks scored is 35 and above and less than 50 print the result as III class, if the marks is 50 and above and less than 60 print result as II class, if the marks is 60 and above and less than 85 print result as I class and if the marks is 85 and above and less than 100 print the result as distinction. [Use if-else statement] Logic to do this program Step 1: Get the five subject mark from the user and calculate the sum and average and then check for the condition like if(average>=35 && average<50) print (Third class) Like the above coding continue

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

Database Systems Design Implementation And Management

Authors: Carlos Coronel, Steven Morris

14th Edition

978-0357673034

More Books

Students also viewed these Databases questions