Questions: 11 448

Answers by our Experts: 10 707

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

A man goes for shopping to buy vegetables. He picks up the basket and goes to the shelf of vegetables. The tray can hold up to 10kg only. So he carefully picks up the vegetables needed for one week and fills his basket. When he reaches the end of shelf, he finds he had filled only 8.5 kg. So he decides to refill with some more vegetables for his need. Write a C program to implement the refilling process using linked list.

B (C++) [27] You are requested by a SuperStore (Spar) in Soshanguve to calculate it’s earning for the week (the store opens the entire week) and determine the day with the highest and lowest earnings. The Store comprises of two sections namely the Food section and the Liquor store. Your C++ program should prompt the total sales for each section for each day and store the total sales for the day into an array. At the end of the week It should display a report for Management for the total sales for that week, the day the lowest sales and the day with the highest sales were recorded. Refer to below screen shot for sample Input and Output.



For this final assignment, you will use Qt to create a GUI version of the templated LinkedList you made for assignment 9.  


You may design your window as you wish, but it needs to have the minimum functionality:

  • Radio buttons to select between the different types of data your linked list will store(int, double, string, Rational, Date, Complex)
  • A button to display the contents of the linked list
  • The ability to display only a portion of the linked list
  • Buttons to push_back, push_front, pop_front, insert_sorted
  • Insert button that can insert an element at any spot in the list (have to define a new function in linked list class)
  • Button to perform select_sort
  • Button to remove_duplicates
  • Should have the ability to make a copy of a list and be able to retain and modify both copies (may make multiple copies).
  • Be able to modify any of the lists without losing any information going from one list to the other.
  • You may use vectors as long as you use your own vector class, not the one provided with C++/QtCreator.

You are requested by a SuperStore (Spar) in Soshanguve to calculate it’s earning for the week (the store opens the entire week) and determine the day with the highest and lowest earnings. The Store comprises of two sections namely the Food section and the Liquor store. Your C++ program should prompt the total sales for each section for each day and store the total sales for the day into an array. At the end of the week It should display a report for Management for the total sales for that week, the day the lowest sales and the day with the highest sales were recorded.



Consider an array of student marks for subject Data structure of 50 students in a class. Faculty had wrongly entered marks for a student (Roll no 36). So write a module in C language to delete the student mark and update the list. Also enter a mark at last of the array.
Writes a class Triangle with the data member base , height , area and color . The base , height and area are double type and color is type c - string ( a c - string is defined as an array of type char ) . The member functions of the class is inputData for taking base , height and color values from the user and findArea member function to calculate the area of the rectangular using formula area = 1 / 2 * base * height . Create another class name Match Triangle that overloads operator for comparing class objects . Define appropriate constructors of the classes . Create two objects of in main ( ) , inputs the values and compare the objects . If the area and color of both objects are same then display a message in main Matching Triangle " otherwise display a message Non - Matching Triangle "
write a program to initialize the value as 5.800000 & display the value on the monitor as 5.80000
write a program to initialize the value as 5.800000 & display the value on the monitor as 5.8000?

What is the output of the following C++ code?

x = 5; y = 30;

while (x <= y)

x = x * 2;

cout << x << " " << y << endl;


#include <iostream.h>

using namespace std;

 

int main( void )

 {

int y;

int x = 3;

 

int total = 0;

 

while ( x <= 10 ) {

 y = x * x * x;

 cout<<y<<endl;

 total += y;

 ++x;

 } // end while

 

 Cout<< "The total is: "<< total <<end;

 

 } // end main


LATEST TUTORIALS
APPROVED BY CLIENTS