Questions: 1 978

Answers by our Experts: 1 850

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a program which takes PIN number of the user as input and then verifies his pin. If pin is verified the program shall display “pin verified” and “Welcome”; otherwise, the program shall give user another chance. After 4 wrong attempts, the program shall display “Limit expired” and then exit. Use for loops to implement the logic.

Note: 5 random PIN numbers can be assumed and fed into the program with which input pin is matched


Write a program that takes marks of 10 students as input. It calculates the class average and displays it on the screen. Interaction with the program might look like this. Use while loop.


Function: MDAS


Using the following:


1. Conditional Statement,


2. looping statement


3. Exit

Implement the following problem in C programming language with following functions:


1- A function “Speed” that takes meters and seconds as parameters and returns the speed in meter


per second (m/s).


2- A function “Convert” that returns the kilometer per hour (kph) equivalent of m/s.


Call the above created function in main to test them.

. Suppose that the supply function for a commodity is given by:



a. Derive the market supply schedule for this commodity using the various prices below. Indicate your answer on the corresponding space provided on the table. SHOW YOUR SOLUTION. b. Draw the Supply curve for this commodity.



question-amp-image

10)adding numbers


Victor has an array of size n.He loves to play with these n numbers.each time he plays with them ,he picks up any two consecutive numbers and adds them. on adding both numbers,it costs him K*(sum of both numbers).


Find the minimum cost of adding all the numbers in the array.


i/p1:size of array


i/p2:elements of array


i/p3:value of K


o/p:return the maximum cost of adding all the numbers of the array.


Ex1:


i/p1:3


i/p2:{1,2,3}


i/p3:2


o/p:18


explanation: There are multiple ways of adding the numbers of an array.


The first way is:1+2=3 cost of adding is 2*3=6.


3+3=6 cost ofadding is 2*6=12


o/p: there are other ways as well,but minimum cost is 18


ex2:


i/p1:4


i/p2:{4,5,6,7}


i/p3:3


o/p:132


explanation:


for minimum cost ,


4+5=9 cost of adding is 3*9=27


6+7=13 cost of adding is 3*13=39


9+13=cost of adding is 3*22=66


Therefore cost is 27+39+66=132



Implement the following functions. The functions return a real number:


(a) Function Celsius returns the Celsius equivalent of a Fahrenheit temperature ((32°F − 32) ×


5/9 = 0°C).


(b) Function Fahrenheit returns the Fahrenheit equivalent of a Celsius temperature.


((0°C × 9/5) + 32 = 32°F)


In main call both functions and ask user to input value of temperature and print its equivalent.

Get the input from the user for the number of rows and columns.


Print 0 in the row one.


Print 1 in the row two.


Case= Test 1

input=

5

5



output=

00000

11111

00000

11111

00000


Write a C program in CodeBlocks to find the largest among three different numbers entered by the user using Nested if else Statement and also construct a flow chart for this program

Write a program to take input your name. Now write a function to print your name



in reverse order (eg. RAM KUMAR becomes RAMUK MAR). Then Write one more



function to find sum of ASCII values of all the characters (including space) in your



name using function.

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS