[solved] – Question 88981
. Start with the program of Exercise 8 in Chapter 8, which overloaded five arithmeticoperators for money strings. Add the two operators that couldn’t be overloaded in thatexercise. These operationslong double * bMoney // number times moneylong double / bMoney // number divided by moneyrequirefriendfunctions, since an object appears on the right side of the operator whilea numerical constant appears on the left. Make sure that the main()program allows theuser to enter two money strings and a floating-point value, and then carries out all sevenarithmetic operations on appropriate pairs of these values.
Expert Answer
[solved] – Question 88982
As in the previous exercise, start with the program of Exercise 8 in Chapter 9. This time,add a function that rounds a bMoneyvalue to the nearest dollar. It should be used likethis:mo2 = round(mo1);As you know, amounts of $0.49 and less are rounded down, while those $0.50 and aboveare rounded up. A library function called modfl()is useful here. It separates a type longdoublevariable into a fractional part and an integer part. If the fractional part is less than0.50, return the integer part as is; otherwise add 1.0. In main(),test the function by send-ing it a sequence of bMoneyamounts that go from less than $0.49 to more than $0.50.
Expert Answer
[solved] – Question 88983
Carry out the modification, discussed in Exercise 7, to the PARSEprogram of Chapter 10.That is, make it possible to parse expressions containing floating-point numbers.Combine the classes from Exercise 7 with the algorithms from PARSE. You’ll need tooperate on pointers to tokens instead of characters. This involves statements of the kindNumber* ptrN = new Number(ans);s.push(ptrN);andOperator* ptrO = new Operator(ch);s.push(ptrO);
Expert Answer
[solved] – Question 8899
Write an assembly language code to calculate the factorial of “7” using a subroutine and also attach the final snapshot of your AFD window.
Expert Answer
[solved] – Question 88992
A restaurant wants an application that calculates a table’s bill.
The application should let user enter the number of people in the party. If it is more than 6, it adds 15% tips to the total. Otherwise, let user enter the tips amount.
The application should display all the menu items in a ListBox (ComboBox). The ListBox (ComboBox) should Display the category of food offered by the restaurant separately (Beverage, Appetizer, Main Course and Dessert). The user can choose from one of the ListBox (ComboBox) to add an item to a table’s bill. As each item is selected, it adds the price of that item to the subtotal.
The program should include Subtotal, Tax, Tips, and Total fields in the GUI. Also, the user can click the “Clear Bill” Button to restore the Subtotal, Tax, Tips, and Total to $0.00.
The application should allow the user to modify the menu items in the database (update, delete and add).
Use the RestaurantMenu database
Expert Answer
[solved] – Question 88997
Write a program which will provide the Python instructions to invoke
the following pseudocode design (HINT: using your earlier programs,
change this English language solution to a working Python format):
– Input salesperson’s name preceeded by an appropriate
prompt to either enter the salesperson’s name OR enter
“Q” to end.
– While not salesperson’s name = “Q”
– Input sales on screen with appropriate prompt
– Print (on screen) salesperson’s name; “, your sales are”;
sales
– Print (on screen) a blank line
– Input salesperson’s name or “Q” to end
– Print (on screen) “That’s All Folks”
– End of program
Expert Answer
[solved] – Question 89054
Write a program to find the average of the numbers stored in NewYorkTemps.txt. Be sure your output uses floating point numbers (i.e. numbers with decimals).
NewYorkTemps.txt.
56.0
57.5
58.4
70.3
51.2
68.5
93.2
57.8
55.0
45.3
68.7
42.1
20.0
21.1
25.5
26.6
30.3
33.2
31.6
32.8
54.5
50.2
45.5
36.6
24.2
Expert Answer
[solved] – Question 89055
Write a program to find the average of the numbers stored in NewYorkTemps.txt. Be sure your output uses floating point numbers (i.e. numbers with decimals).
NewYorkTemps.txt.
56.0
57.5
58.4
70.3
51.2
68.5
93.2
57.8
55.0
45.3
68.7
42.1
20.0
21.1
25.5
26.6
30.3
33.2
31.6
32.8
54.5
50.2
45.5
36.6
24.2
Expert Answer
[solved] – Question 89072
You will have an orthogonal triangle input from a file and you need to find the maximum sum of the numbers according to given rules below;
1. You will start from the top and move downwards to an adjacent number as in below.
2. You are only allowed to walk downwards and diagonally.
3. You can only walk over NON PRIME NUMBERS.
4. You have to reach at the end of the pyramid as much as possible.
5. You have to treat your input as pyramid.
According to above rules the maximum sum of the numbers from top to bottom in below example is 24.
*1
*8 4
2 *6 9
8 5 *9 3
As you can see this has several paths that fits the rule of NOT PRIME NUMBERS; 1>8>6>9, 1>4>6>9, 1>4>9>9
1 + 8 + 6 + 9 = 24. As you see 1, 8, 6, 9 are all NOT PRIME NUMBERS and walking over these yields the maximum sum.
Expert Answer
[solved] – Question 89076
You are a Caterer for Pizza Parties. You would like to have a program to calculate how many pizzas to order for a given number of people and the cost. You will provide two types of pizza: combination and cheese.
You would also like to know how many pizza slices will be left over at the end of the party.
Things you will prompt for in the program:
number of people at the party
cost for a cheese pizza
cost for a combination pizza
percentages of pizzas that need to be cheese pizzas and combination pizzas
Assume that pizzas will be cut in to 8 slices each.
Expert Answer

