Write program which asks user for number of bolts

Assignment Help Programming Languages
Reference no: EM1372810

A hardware store charges 4 cents for nuts and 6 cents for bolts.
Write a C++ program that asks the user for the number of bolts and number of nuts in their purchase and then calculates and prints out the total cost.

As an added feature, the program should check the order. It is usually a mistake if there are more bolts than nuts. If that is the case, the program should display the message "Check the Order!" If the number of nuts and bolts are the same, the program should instead display "Order is OK." In either case, the total cost is written out.

Reference no: EM1372810

Questions Cloud

Write program to calculate and output tuition : Write a C++ program to calculate and output tuition. Prompt user for number of credits taken and type of classes ('U' for undergraduate - $380 per credit hour, or 'G' for graduate.
Game theory and oligopoly : Advanced Micro Devices declared a 10 percent price raise for certain advanced microprocessors, used primarily in video games. The processors will sell for about $1,000 compared to Intel's $950 price.
What is the frictional force acting on disk : The disk would slide off the turntable if it is located at a radius larger than 16 cm from the axis of rotation. What is the coefficient of static friction.
Calculate friction force as it slides down the slope : An 86 Kg person stands on a uniform ladder 4m long, that weighs 70N. The floor is rough; hence, it exerts both a normal force, and a frictional force, on ladder. The wall, on the other hand, is frictionless; it exerts only the normal force. What a..
Write program which asks user for number of bolts : Write C++ program which asks user for number of bolts and number of nuts in their purchase and then computes and prints out total cost.
What should its speed relative to the ground be : The pilot of an aircraft wishes to fly due west in a 49.8 km/h wind blowing toward the south. The speed of the aircraft in the absence of a wind is 192 km/h.
Academic approach to forecasting : Prepare forecasts for the GDP of 2005 using exponential smoothing with smoothing constants of 0.4 and 0.6 - Which of these models has the lowest mean absolute deviation.
Calculating the nash equilibrium : Suppose you have been offered chance to participate in a Treasure Hunt game whose rules are as follows. There are 3-colored boxes: red, green and yellow.
Why to avoid the weight of the logs : assuming the average person has a mass of 68kg? Do not avoid the weight of the logs. Assume the specific gravity of wood is 0.6.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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