Scenario:
The manager of the Diner by the Valley restaurant plans to have a computer available for students to place their orders when they enter the campus center. They have a limited menu selection available that includes sandwiches and drinks.
In addition to white bread, they have whole wheat and rye bread. No charge is included for different bread types; however, they do consider that selection a special request. The interface should enable special requests such as bread types to be selected. Students should be able to enter other special requests such as "Hold the onion" or "Hold the mayo". Water is available for each order at no charge, but it must be ordered. Prices are as follows: • Sandwich = $2.00 • Tea = $1.80, • Coffee = $2.30 • Juice = $1.50. The manager needs a user-friendly interface where a student can choose options easily and at the end, the program should display the current order selections and show the total cost of the order.
The following program is supposed to allocate nodes, put them into a linked list, print them out and then destroy them. Fix the bugs in the program and rewrite the code. Your program should have complete implementation required to run the following function. Take dummy data execute it, take snap shot and paste it in the document. struct linkedList{ int number; linkedList* next; }; void AddNode() { linkedList* head=NULL; linkedList* current; for(int i=0;i<10;i++){ current = new linkedList; current->number = i; current.next = head; head = current; } while(head->next!=NULL){ cout << head->number << endl; current = head->next; delete current; head = current; } return 0; }
Write a menu driven program to implement Deques (both Input-restricted and Output-restricted) operations such as Enqueue, Dequeue, Peek, Display of elements, Is Empty, Is Full using static array.
You are part of the Web development Team, currently designing a Web site for A company called Nkwali Yenkosi that designs and sells leather clothing and accessories. The Web site is made up of 5 Web pages (Home, About the leather, DIY Methods, Brick & Mortar and Shop Now). You are responsible for creating the Shop Now Web page and 2 Web pages connecting to it
R=v2 sin2&/g
v = 30.0 (speed of the throwing), g = 9.8 (gravity), and $= angle in radians
User may insert an angle above or equal 45° and below 60° as the highest angle.
Then the program should calculate the horizontal range of the projectile motion (R) for each angle until the angle become 35°.
Consider the gravity (g) as a constant.
You are required to calculate the 𝜃 in radians by using the given formula (PI = 3.14286 which is a constant).
Use the necessary header files to do the calculation.