Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Section C Practical Instructions : Use Codeblocks / www.onlinegdb.com to write programs. Copy and paste program in the answer part. Write a C program to

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Section C Practical Instructions : Use Codeblocks / www.onlinegdb.com to write programs. Copy and paste program in the answer part. Write a C program to read two floating point numbers T and Ffrom the console and find the value of K using the following formula K = -3/T +5* F3 2* P T If value of T is more than or equals 10% of F to 25 5% of F If value of T is less than 25 and greater than or equal to 16 If value of T is less than 16 and greater than or equals to 9 If value of T is less than 9 2% of F 1% of F Sample output: enter the values of T and F:4 2 T=4.eeeeee F=2.eeeeee P=e.e2eeee K=33.959999 Section C Practical Instructions: Use Codeblocks / www.onlinegdb.com to write programs. Copy and paste program in the answer part. Write a program that accepts 10 integers form the user and then displays the sum of odd numbers and sum of even numbers using loops ( 10 Marks ) SAMPLE OUTPUT: Enter number 1 : 2 Enter number 2 : 4 Enter number 3 : 3 Enter number 4 : 2 Enter number 5 : 5 Enter number 6 : 6 Enter number 7 : 2 Enter number 8 : 6 Enter number 9 : 3 Enter number 10 : 2 Sum of even numbers is 24 Sum of odd numbers is 11 int Marks [20]= { 70, 85, 60, 55, 90, 100, 50 }; For the above code, answer the following questions i) Find the size of Marks array. How many number of elements are present in Marks array ? Find the index value for last element in array iv) Find the index value for the element 60 V) Find the value of Mark [2] + Mark [0] in Marks array. Debug the given C program to read and print N array elements. Find 10 errors in the given Code and correct the errors. (5Marks) Program on Arrays #include

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions