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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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