Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

int Marks [20]= { 70,85, 60, 55,90,100,50}; For the above code, answer the following questions in the space provided below: 1. Find the size of

image text in transcribed
image text in transcribed
int Marks [20]= { 70,85, 60, 55,90,100,50}; For the above code, answer the following questions in the space provided below: 1. Find the size of Marks array. 2. How many number of elements are present in Marks array ? 3. Find the index value for last element in array 4. Find the index value for the element 60 5. Find the value of Marks[2] + Marks[O] in Marks array. Write a C program to read two floating point numbers T and F from the console and find the value of K using the following formula and if else if ladder. K= -3T +5* F3 2* P T P If value of T is more than or equals to 10% 25 of F 5% If value of T is less than 25 and greater than or equal to 16 of F If value of T is less than 16 and greater than or equals to 9 2% of F If value of T is less than 9 1 % of F Print the values of T, F, P and K. SAMPLE OUTPUT: enter the values of T and F:4 2 T=4.000see F=2.000000 P=0.020000 K=

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

More Books

Students also viewed these Databases questions