Writing a program in c that meets the following criteria

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

C Programming Problem. I need help writing a program in C that meets the following criteria:

1) There are 5 products for sale at a grocery store ( I want to use cucumbers, lettuce, grapes, apples and bananas)

2) The five products are all sold by weight (pounds).

3) Customers need to be prompted to enter the price (per pound) for each of the products (cucumbers, lettuce, grapes, apples and bananas)

4) A customer has a unique request. He wants to know the maximum amount of each product that can be purchased for $10.

5) Computer & output the maximum weight of each product the customer can buy for $10.

6) Include comments within the code to explain each of the functional areas.

Reference no: EM13939629

Questions Cloud

What is the company target debt-equity ratio : Fama’s Llamas has a weighted average cost of capital of 10.8 percent. The company’s cost of equity is 13 percent, and its pretax cost of debt is 8.8 percent. The tax rate is 38 percent. What is the company’s target debt−equity ratio?
Compare correction ideologies to current correctional trends : Complete research on correction ideologies and current correctional trends. In a 3-4 page paper, compare and contrast correction ideologies to current correctional trends
The aftertax cost of debt : Jiminy's Cricket Farm issued a 30-year, 7.2 percent semiannual bond 7 years ago. The bond currently sells for 91.5 percent of its face value. The book value of this debt issue is $95 million. In addition, the company has a second debt issue, a zero c..
Aspects of the health care systems : Compare and contrast the approaches of China and UK in respect of one of the following aspects of their health care systems. Governance, funding , workforce , integration.
Writing a program in c that meets the following criteria : Include comments within the code to explain each of the functional areas.
What are the weights in equity and debt : The total market value of General Motors (GM) is $10 billion. GM has a market value of $7 billion of equity and a face value of $10 billion of debt. What are the weights in equity and debt that are used for calculating the WACC?
Expected return-market risk premium-reward-to-risk ratios : Stock Y has a beta of 1.4 and an expected return of 15.1 percent. Stock Z has a beta of .7 and an expected return of 8.6 percent. If the risk-free rate is 5 percent and the market risk premium is 6.5 percent, the reward-to-risk ratios for stocks Y an..
Describe the strategic planning process : Briefly describe the strategic planning process and how you would use this to promote the aims and outcomes of the program.
Problem regarding the center-line vaporization : A string of negligible diameter is drawn down the center-line of a pipe containing a Newtonian fluid. At what velocity, w, must the string be drawn in order to vaporize the fluid? Pose the problem in a general fashion but make whatever reasonable ..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Assignment in c you will write a program that draws a

assignment in c you will write a program that draws a single level for a rogueshylike computer game. the program will

  What are a class and a structure?

What are a class and a structure?

  Implement a string class

Implement a String class. Each object of this class will represent a character string. Data members are the length of the string and the actual character string. In addition to constructors, destructor, access functions, and a print function, incl..

  Construct an er diagram

Finally, the company is required by its insurers to maintain a record of the position of each vessel; its port and date of departure, destination and estimated date of arrival; number of officers, total number on board, and total value of cargo ca..

  Prepare a program to find the area of a triangle

Write a program that prompts the user to enter three point (x1, y1), (x2, y2), (x3, y3) of a triangle and display its area.

  Hierarchical control using player/stage simulator

In the Nested Hierarchical Controller, the PLAN module consists of a Mission Planner, a Navigator, and a Pilot. The Pilot connects with the ACT module to execute the drive and steering commands that cause the robot to move along a path segment.

  Write a function that accepts an int array

The task calls for: Write a function that accepts an int array and the array's size as arguments. The function should create a copy of the array, except that the element values should be reversed in the copy. The function should return a pointer t..

  An essential component of compromised to a resource

1. true or false? an essential component of compromised to a resource is that the situation resulting in the compromise was motivated by malice. A.true B.false

  You are to write a basic bank application

You are to write a basic bank application, in C++, that allows the user of the application to manually create, modify, and delete bank accounts. Before you write the application you will need to create a class called Account.

  Implement uniform random number generator

Implement Uniform Random Number generator and Generate 1000 Random number between 0 an 10000. Try to use insertion sort to sort them. Compare the running time of two versions of the insertion sort.

  Compute a program that calculates three resistance inputs

C language, compute a program that calculates three RESISTANCE inputs, and gives you the total resistance in OHMS. Like this, the total resistance is _____ ohms. These are three parallel circuits so the formula would be (1/R1 + 1/ R 2 +  1/ R 3 )  -1

  Source code of the existing software

The development team of SoftSols Inc. analyzes the source code of the existing software and notes the following observations:

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