Read from the input the number of people (int), average slices per person (double), and cost of one pizza (double). Calculate the number of whole pizzas needed (8 slices per pizza). There will likely be leftovers for breakfast. Hint: Use the Math. ceil() method to round up to the nearest whole number and convert to an integer using explicit typecasting to an integer. Calculate and output the cost for all pizzas.
. Calculate and output the sales tax (7%). Calculate and output the delivery charge (20% of cost including tax).
. Calculate and output the total including pizza, tax, and delivery.
Repeat steps 1 - 3 with additional inputs for Saturday night (one order per line). Maintain and output a separate total for both parties.
Sanchez Construction Loan Co. makes loans of up to R100,000 for construction projects. There are two categories of Loans—those to businesses and those to individual applicants. Write an application that tracks all new construction loans. The application also must calculate the total amount owed at the due date (original loan amount + loan fee). The application should include the following classes:
Write Shell script to perform operations like display, list, make directory and copy, rename, delete, edit file.
Design a C program to remove the special symbols from the input string, and print the characters present in the string and the number of symbols. Symbols: * + << >>
Runtime Input :
XYZ**ABC++
Output :
XYZABC
6
# Various Icecream flavors
menu_item1 = "Chocolate"
menu_item2 = "Vanilla"
menu_item3 = "Strawberry"
order = input("\nWhich flavors would you like on your icecream today?\n\n" +
"\n".join([menu_item1, menu_item2, menu_item3]) + "\n\n")
# Convert input to list of flavors.
order = order.lower().split()
plural = "s" if len(order) > 1 else " "
print("\nYou have selected " + ", " .join(order) + " flavor" + plural)Question 4: For lines 22-24, How do I get the code to be organized after the previous 3 questions have been answered and correct with the right code?
Example Output:
If:
Else:
My Output: Check Code above.
# Various Icecream flavors
menu_item1 = "Chocolate"
menu_item2 = "Vanilla"
menu_item3 = "Strawberry"
order = input("\nWhich flavors would you like on your icecream today?\n\n" +
"\n".join([menu_item1, menu_item2, menu_item3]) + "\n\n")
# Convert input to list of flavors.
order = order.lower().split()
plural = "s" if len(order) > 1 else " "
print("\nYou have selected " + ", " .join(order) + " flavor" + plural)Question 3: For lines 22-24, how do I include an "and" word to always be included for 2 or more flavors regardless if I respond to the input code with "Chocolate Vanilla Strawberry" or "Chocolate Vanilla and Strawberry"?
Example Output: You have selected Chocolate, Vanilla and Strawberry flavors
My Output: You have selected Chocolate, Vanilla, Strawberry flavors
# Various Icecream flavors
menu_item1 = "Chocolate"
menu_item2 = "Vanilla"
menu_item3 = "Strawberry"
order = input("\nWhich flavors would you like on your icecream today?\n\n" +
"\n".join([menu_item1, menu_item2, menu_item3]) + "\n\n")
# Convert input to list of flavors.
order = order.lower().split()
plural = "s" if len(order) > 1 else " "
print("\nYou have selected " + ", " .join(order) + " flavor" + plural)Question: For lines 22-24, how do I hide the comma's when responding to the input code with choosing 2 or less flavors?
Example Output: You have selected Chocolate and Vanilla flavors
My Output: You have selected Chocolate, and, Vanilla flavors
# Various Icecream flavors
menu_item1 = "Chocolate"
menu_item2 = "Vanilla"
menu_item3 = "Strawberry"
order = input("\nWhich flavors would you like on your icecream today?\n\n" +
"\n".join([menu_item1, menu_item2, menu_item3]) + "\n\n")
# Convert input to list of flavors.
order = order.lower().split()
plural = "s" if len(order) > 1 else " "
print("\nYou have selected " + ", " .join(order) + " flavor" + plural)Question: For lines 22-24, how do I add a comma for just the first flavor when responding to the input code with choosing 3 or more flavors?
Example output: You have selected Chocolate, Vanilla and Strawberry flavors
My Output: You have selected Chocolate, Vanilla, and, Strawberry flavors
how the debugging process can be used to help develop more secure, robust applications.
Data Type
Variable Name
Value
int
faveNumber
Type your favorite number.
String
faveCartChar
Type your favorite cartoon or anime character.
char
mi
Type your middle initial.
char (array)
nickNameArray
Every index should contain
each of the letters of your nickname.
My name is Veronica V. Velasquez. You can call me Nica.
comments and /* */ for multi-line comments.