Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

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

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.

  • Create a folder named LastName_FirstName (ex. Reyes_Mark) in your local drive.
  • Create a new Java application project named LabExer1A. In the Create Main Class field, the text should be labexer1a.LabExer1A. Set the project location to your own folder.
  • Initialize four (4) variables based on the table below.

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.

  • 12 is my favorite number. I love Doraemon!

My name is Veronica V. Velasquez. You can call me Nica.

  • Use comments to give a short description of the parts of the program. Note: Use // for single-line

comments and /* */ for multi-line comments.

  • Inform your instructor once you are done.
LATEST TUTORIALS
APPROVED BY CLIENTS