write a c program to compare two strings s1 and s2.if equal print"equal" otherwise"not equal".note #define com(s1,s2)
Write a function to calculate the gravitational force F between two bodies given their masses (m1 and m2) and the distance r between them as given above.
Write a script Gravity to test your function by determining the gravitational force (force) of an 800kg satellite (m2) in orbit 38 000km (r – note that r should be in metres) above the Earth. The mass (m1) of the Earth is 5.98 × 1024kg.
Design a structure for the Invoice Detail and find total cost of purchase for a product.The structure includes members as Productname ,Quantity,Price.
Input :
Juice
2
15
Output :
Juice
2
15
30
1. Write a program to read three integer numbers then find and print the largest one
among these numbers.
Convert 0011 00112 to decimal
Convert -218 to binary and represent it in Sign-and-Size code
Convert -2116 to binary and represent it in Sign-and –Size code
Interest on a credit card’s unpaid balance is calculated using the average daily balance.
Suppose that netBalance is the balance shown in the bill, payment is the payment made, d1 is the number of days in the billing cycle, and d2 is the number of days payment is made before billing cycle.
Then, the average daily balance is:
Write a program that reads in 10 midday temperatures for Port Elizabeth, for 10 consecutive days. Only temperatures higher than 0 and less than 45 are valid (working with integer values for temperatures). It must calculate and display the following: The warmest temperature The average temperature. The number of days that the temperature was higher than 30.
Display the temperatures in the array e.g All the temperatures in the array are: 22 26 17 19 20 39 44 37 30 16
Note: rand ( ) % (b-a+1) +a // generate random number between [a, b]