Write a program that prompts the user to input the masses

Assignment Help C/C++ Programming
Reference no: EM13338714

1. Write a program that prompts the user to input a number of quarters, dimes, and nickels. The program then outputs the total value of the coins in pennies.

2. Newton's law states that the force, F, between two bodies of masses M1 and M2 is given by:
F = K (M1M2/d2)

in which k is the gravitational constant and d is the distance between the bodies. The value of k is approximately 6.67 x 10-8 dyn. cm2/g2. Write a program that prompts the user to input the masses of the bodies and the distance between the bodies. The program then outputs the force between the bodies.

Reference no: EM13338714

Questions Cloud

What must be the minimum initial speed of the dart : A 19.00kg lead sphere is hanging from a hook by a thin wire 3.40m long, and is free to swing in a complete circle. What must be the minimum initial speed of the dart
Determine the frequency of the photon : A hydrogen atom initially in the ground state absorbs a photon, which excites it to the n = 12.0 state. Determine the frequency of the photon
How the xml equivalent capabilities were used : Write a short essay to discuss how the XML equivalent capabilities were used in the past in WBIS and what changes are expected in XML in future?
How much was the firm taxable income or earnings : ABC recently reported $42,198 of sales, $13,908of operating costs other than depreciation, and $5,423 of depreciation. The company had no amortization charges and no non-operating income. It had $8,000 of bonds outstanding that carry a 10% in..
Write a program that prompts the user to input the masses : Write a program that prompts the user to input the masses of the bodies and the distance between the bodies. The program then outputs the force between the bodies.
Concept of java socket programming : Designed to asses learning outcomes and write programs that would communicate with another program running in the network
What is the speed of transverse waves on this string : The wave function y(x, t) for a certain standing wave on a string fixed at both ends is given by y(x, t) = 3.70 sin (0.220x) cos (270t), What is the speed of transverse waves on this string
Write equivalent compound statements : What action must be taken before a variable can be used in a program?
Find the speed of transverse waves on the wire : A steel wire having a mass of 6.30 g and a length of 1.10 m is fixed at both ends and has a tension of 996 N. Find the speed of transverse waves on the wire

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Implement the appropriate methods for big numbers

You must implement each big number as a List of single digits and you must also set up the template class List based on a linked list (use the sample codes). You will need to define and implement the appropriate methods for big numbers.

  Write a function template square()

Write a function template Square() that returns the square of its only argument.

  Add 10 people to the line

Add 10 people to the line and process them. Each time you process someone, print out their ticket information. After all 10 have been serviced, print the average wait time. Below is an example of the time calls you will need and a wait function.

  Write a function to compute the volume of a cone

write a function to compute the volume of a cone by using the base radius r and the height h of the cone as the parameters of the function Vcone = xr^2h/3

  Main program should instantiate an instance

The main program should instantiate an instance of the class Rectangle and then make calls to the member functions to input the data and output the results

  Create a road class

Create a Road class. The class should have functions for setting the width of the road in feet and the length of the road in miles. It should also have functions for obtaining the width of the road the length of the road

  Catch clauses are listed is important

write a program that can be used to demonstrate that the order in which catch clauses are listed is important

  Write c++ program to create a bar chart showing the average

Write a c++ program to create a bar chart showing the average monthly mean temperature for College Station from 2004 to 2013.

  Assume we have an array named $students

Assume we have an array named $students. Each entry in the array contains a student's full name (e.g. "Jane Smith"). Write the PHP code needed to display all students (in the array) whose first name starts with the letter "J".

  Counts all occurrences of a given string from such a bag

Write a C++ function that removes and counts all occurrences of a given string from such a bag.

  Write function compute square root together with prototype

Write a C++ function called compute together with its prototype that is passed 2 integers, A and B and returns the square root of A2+B2 ,as a double.

  Reverses the characters in a character array

Write the function reverseit that reverses the characters in a character array. You must also write main that calls reverseit.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd