Uncategorized

Heap operation algorithms

18.     Explain the following sort algorithms with a suitable example. (a)    nth_element() (b) partial_sort() (c) partial_sort_copy() (d)  sort()       (e) stable_sort() 19.     Describe how the heap operation algorithms are constructed in C++. 20.     Summarise the list of comparison algorithms used in STL. 21.     Explain the following numeric algorithm with a suitable example. (a)    accumulate()  (b) adjacent_difference() […]

Heap operation algorithms Read More »

Valid and invalid representation

4.   Find out the valid and invalid representation of the following floating point literals: (a)  Rs 45.55       (b)  1.1e–2           (c)  0.1e–03         (d) 1,12.2 (e)  1e–2              (f)  0                   (g)  –0.0001         (h) 1.1e–1.1 (i)   1.1f               (j)   –2.2e–3L      (k)  0.0F              (l) 1223E1 (m) 3.3333L        (n)  9.999999FL  (o)  .1E–3F          (p) 0.F 5.   Determine the valid character and string literals

Valid and invalid representation Read More »

Floating point

11.How is the basefield of a numeral defined in C++? 12.What is an I/O stream flag? What stream flags are more suitable than standard manipulator? 13.List the various I/O stream flags and their meanings. 14.Explain the syntactic rules governing the following I/O stream flags. 1.showbase 2.showpoint 3.showpos 4.scientific 15What is an adjust field format flag?

Floating point Read More »

The factorial

18.A program to find the sum and average of the given numbers using the while loop. 19.A program to find the sum and average of the given numbers using a do-while loop. 20.A program to generate a fibonacci series of ‘n’ numbers, where n is defined by the programmer. (series should be: 0  1  1

The factorial Read More »

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X