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

 You have been hired to write software for a point of sale terminal of a shop dealing in secondhand stuff. This shop has very unusual and unique business rules. The prices of products change now and then and since the items they sell are used; they don't even have any codes on them. Hence, prices are to be specified each time a product is sold. All you are required to do is to generate the bill for each sale. Your program should start by displaying the following menu. 1.New Sale 2. Exit The program exits, if that is chosen from the menu. However, for new sale, your program reads the price and quantity of the product(store in 2D array)and asks the user if he/she wants to add more items.It keeps on reading data for all items in the sale as many times as the user wishes.Your program should also keep one displaying the running total after adding each item to the current sale. In the end the total Bill is displayed, cash paid is recorded and balance is shown.



 Declare a two-dimensional array which can be used to store a cricket score for every over. Each row of the array corresponds to a particular ball. There are 2 overs to be covered. Each column of the array corresponds to a number of over. All the data to be placed in the array consists of real numbers. Print the following details a) Strike rate to win the match. b) Score required to draw the match


class Node{


public:


int data;


Node * next;


};


class LinkedList{


private:


Node * head;


public:


Node * head;


void insert(int value);


void delete(int value);


void reverse();


};



Task:


Make a stack with no duplicate elements.


Keeping in mind the above class exists.

1. Using goto statement, write a C++ program to display the number of terms of even natural number and their sum.



2. Using goto statement, write a C++ program that will ask the user for an integer and number of rows. Print out that integer’s multiplication table.

Suppose that you are working with XYZ company and received a new task by your supervisor.

Your task is to write a C++ program to identify person who have height more than 180cm and

weight less than 50kg based on 5 different persons inputs. Prepare an algorithm for this problem

and write a complete C++ program. You must state a meaningful comment for each of your line. 


Create a folder named LastName_FirstName (ex. Diaz_Jess) on your local drive. 2. Using NetBeans IDE, create a new project. 3. Name the class as SeatReservation and save the project in your folder 4. Write a simple bus seat reservation program. The bus has 10 rows, with 4 seats in each row. The program should perform the following: Step 1. The program should ask the user to enter what row and seat number to reserve. Indicate an ‘X’ mark if the seat is reserved. Step 2. Repeat Step 1; the program will stop until the user enters a negative number. 5. Compile and execute the program. 6. Debug syntax and logical errors, if there are any in the program. 7. Inform your instructor once you are done


write a complete program that defines two functions that demonstrate the difference of the parameter passing methods as specified below, each of which simply triples the variable count defined in main. Then compare and contrast the two approaches. These two functions are


a.) function tripleByValue that passes a copy of count by value, triples the copy and returns the new value and


b) function tripleByReference that passes count by reference via a reference parameter and triples the original value of count through its alias (i.e., the reference parameter).



In the main function of the program,


assign any desired value to the variable that will be used as an actual parameter in the function call.


display the value of the actual parameter or argument before and after the function call. Do this for both functions.

class Node{





public:





int data;





Node * next;





};





class LinkedList{





private:





Node * head;





public:





Node * head;





void insert(int value);





void delete(int value);





void reverse();





};






Note:





No global declarations 





Run test the functions in main






Task:





Make a stack with no duplicate elements.





Keeping in mind the above class exists.


Write a C++ code that will calculate the amount that a customer need to pay after the discount. The customer just need to key in the total amount and the program will calculate the discounted amount accordingly. For total amount more than RM500.00 the discount value is 10%. For total amount less than RM500.00 the discount value is 8%.


Head->5->3->7->9->1->Null



TASK :


Node * prev = head ->next;


Node* nodeToInsert = new Node;


nodeToInsert-> data = 4;


nodeToInsert -> next = prev -> next;


prev -> next = nodeToInsert;




(1)Assume that the code represented above in part has executed.


What is the value of prev->data


(2)In addition to the code above, assume the following code executes. Draw a diagram of the list after


this code executes as well.


prev = prev -> next;


Node * curr = prev -> next;


prev -> next = curr -> next;


delete curr;


curr = NULL;

LATEST TUTORIALS
APPROVED BY CLIENTS