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.
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