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

X1 = G_m1_m2 d 2 where G is the universal gravitational constant G = 6.673 x 10-8 cm3 / g sec2 Write a program that reads in the mass of two bodies and the distance between them and then outputs the gravitational force between them and then outputs the gravitational force between them. The output should be in dynes; one dyne equals a g cm / sec2 . Use a constant declaration for G.


Problem description Caf´e Wafflelicious, as its very name signifies, is a cafe that sells waffles. When customers arrive at this cafe, they design the waffle they want according to the kinds of waffles, their ingredients and their prices. The waitress delivers these orders to the cook from the customer. The cook is responsible for making the waffle. You will prepare an order system in which you will check the company’s waffle orders.For example, there is a waffle order from the customer. You need to expand the functionality of the class in a transparent and dynamic way.Waffle Types (Concrete component): Normal Waffle - $13.0 Belgian Waffle - $16.0 Wrap Waffle - $13.0 Wheat Waffle - $15.0 1 Free Gluten Waffle - $17.0 Toppings (Concrete decorator): chocolate - $2.0 for each (white, milky, dark, nutella and caramel) fruits - $0.5 for each (strawberry, kiwi, pineapple and banana) sauces - $1.0 for each (chocolate, caramel and raspberry) nuts - $1.0 for each (pistachio, almond, hazelnut and walnut)


WAP to Create a product class which consist of product no, name, price, quantity and amount. Create 3 functions named getdata() for input from the user, displaydata() to display the details and calculate() to calculate amt = price * quantity. Enter the details for 5 products. Pass the object in the function. Use constructor to initialize the values.



parking lot charges Rs.30 as a minimum fee to park a vehicle for up to 3 hours. An additional charge of Rs.5.00 per hour will be added if it exceeds three hours. for 24 hours the parking fees are Rs.80.00.Write a program to define an array and read the vehicle registration number, and hours parked for each customer and calculate the parking charges for 'n' customers and display the output.

Input format

The first line of the output consists of the number of customers.

The next n lines consists of the vehicle

registration number and total parking hours.

Output format

The output consists of the vehicle number, hours parked, and charges separated by a space.

Sample testcases

Input 1

3

1867 3

5382 5

2407 24

Output 1

1867 3 30.00

5382 5 40.00

2407 24 80.00

WAP to overload insertion and extraction operator


you are given N inputs. wirte a program to print first prime number in given inputs.


Input 1

5

1

10

4

3

2


input 2

4

2

3

5

7


You have designed an instruction set architecture (ISA), whose characteristics are;

• 16 diff operations (ADD, SUB, OUT, HLT etc.)

• 12-bit address (program counter (PC), a memory address register (MAR) etc.)

• 16-bit data registers (accumulators, B, Temp etc.)

• 16-bit instruction register (IR)


1) What will be the instruction size?

2) Opcode size?

3) Operand size?

4)A number of locations in memory?

5) Memory data size?


How will the C++ program would look like if we create a UDF that will prompt the user to input the size of the figure (5-15) odd numbers only and display the figure like this:


Sample Output:

Input size of figure to generate (5 - 15) odd numbers only: 5


# # #

# #

# # # # #

# #

# # #


A program is needed that will determine the larger of two numbers entered by the user. Draw the IPO table with the necessary details for the program

the average age of obtaining a driver's licence is 18. Write a java program where the user enters his/her age. if the age is greater than or equal to 18, the program must display using JOptionPane the following message, "you are old enough to apply for driver's licence", else display the following message, "you are not old enough to apply for a driver's licence".
LATEST TUTORIALS
APPROVED BY CLIENTS