Questions: 1 680

Answers by our Experts: 1 680

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 and test a function that returns the difference between the largest and the smallest elements of an array-of- double . be sure to test (and include) all the edge cases you can think of to ensure your function works for all double variables.
write and test a function called largerof() that replaces the contents of two double variables with the maximum of the two values. for example, largerof(x,y) would reset both x and y to the larger of the two. be sure to test (and include) all the edge cases you can think of to ensure your function works for all double variables.
write an assembly language program that uses 3 byte variables a,b,c. the variables are initialized be for the program starts with the values 2,5 and 0 respectively . the program will add ,sub,divide and multiply the contents of the variable a to that of b and store the result in to c.

Exercise 4: Practice to manipulate data in arrays 

Write a C program that read numbers from an integer array and graph the information in the form of bar chart. The sample output is given below.

 Element Value Histogram 

0 19 ******************* 

1 3 *** 

2 15 ***************

 3 7 ******* 

4 11 *********** 

5 9 ********* 

6 13 ************* 

7 5 *****

 8 17 *****************

 9 1 *  


Exercise 1: Practice to store and print data in an array

 a) Write a C program that reads marks of 10 students in to a single subscripted array.

 b) Above marks should be between 0 to 20. Modify the above program to add marks to the array only if the input mark is between the given range.

 c) Display the values stored in the array.


 Exercise 2: Practice to access data stored in an array

 Modify the above program to find the mean of the marks stored in the array.


 Exercise 3: Practice to manipulate data in arrays 

Write a C program to create an integer array called Motion of size 5. Ask the user to enter values to the array from the keyboard. Rotate the values of the array by one position in the forward direction and display the values.

 Ex: number in index 4 should move to index 3, Number in index 3 should move to index2, number index 0 should move to index 4. 

Initial values 10 6 8 2 9

 After rotating 6 8 2 9 10 


 


Write a program for implementation of priority queue with character data elements. Each
element has an integer priority number between 1-5. Implement Enqueue () and Dequeue ()
functions in each of the following cases.
1. Linked list implementation of priority queue.
2. Array implementation of priority queue.
An e-commerce company plans to give their customers a special discount for the Christmas They are planning to offer a flat discount. The discount value is calculated as the sum of all the prime digits in the total bill amount.

A

Write an algorithm to find the discount value for the given total bill amount.

Write a C program that reads numbers from an integer array and graph the information in the form of a bar chart. The sample output is given below.

Element Value Histogram

0 19 *******************

1 3 ***

2 15 ***************

3 7 *******

4 11 ***********

5 9 *********

6 13 *************

7 5 *****

8 17 *****************

9 1 *


Create three database using header linked list

              Student  (Roll No, Name, Branch ID, CGPA)

              University  (University ID, University Name, University Location, Year of start)

              Branch  (Branch ID, University ID, Branch Name)


Implement the following modules/ sub-modules using menu driven approach:

-> Display the list of Branches available in any given University

-> Display the University details in ascending order of their year of starting

-> Display the all Student name/ all University name for a given name substring entered by the user.


Create three database using header linked

              Student  (Roll No, Name, Branch ID, CGPA)

              University  (University ID, University Name, University Location, Year of start)

              Branch  (Branch ID, University ID, Branch Name)


Implement the following modules/ sub-modules using menu driven approach:

-> ADD/ MODIFY/DELETE/UPDATE using key values in any of the databases as per requirement.

-> Display the student details who are reading at a specific University with branch CSE.


LATEST TUTORIALS
APPROVED BY CLIENTS