Design an algorithm to find the selling price

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

1. What is the output of the following C++ programs?

 #include <iostream>

using namespace std;

int main()

{

    cout << "Testing our   ";

    cout << "program in C++ language . "<<endl;

    cout << "10 -5  =  " << 10 - 5<< endl;

    return 0;

}

2.  Given the radius, in inches, and price of a pizza, design an algorithm to find the price of the pizza per square inch.

3. The cost of an international call from Abu Dhabi to Khartoum is calculated as follows: Connection fee 1.99; 2.00 Dirham for the first three minutes; and 0.45 for each additional minute. Design an algorithm that asks the user to enter the number of minutes the call lasted. The algorithm then uses the number of minutes to calculate the amount due.

4. To make a profit, the prices of the items sold in a furniture store are marked up by 60%. Design an algorithm to find the selling price of an item sold at the furniture store. What information do you need to find the selling price?

Reference no: EM13189344

Questions Cloud

Will fields with both oil and gas have greater difficulties : Some fields have large enough quantities of both oil and natural gas that coordination must be achieved for the production of both, rather than oil a in our examples. Will fields with both oil and gas have greater difficulties in unitization than ..
Describe effects of one chemical-biological and radiological : Describe the effects of one chemical, biological, and radiological agent; include the proper decontamination and treatment methods for each. Explain one dispersal device/delivery method for each selected chemical, biological, and radiological agent.
Inventory items stored in Sudbury : Give the details of all suppliers in the Sault Ste Marie, list all inventory items with a quantity less than 100 units and list all the inventory items stored in Sudbury
Write Relational Algebra queries : Attributes cid and fid in Reservation are foreign keys referencing homonymous attributes in Customer and Flight, respectively. Write Relational Algebra queries
Design an algorithm to find the selling price : To make a profit, the prices of the items sold in a furniture store are marked up by 60%. Design an algorithm to find the selling price of an item sold at the furniture store. What information do you need to find the selling price?
What is the direct labor rate variance? : The following data relate to direct labor costs for the current period:
What range of payments will the beekeeper accept : Assuming that the beekeeper gets that amount, what range of payments will the farmer accept (Remember that negative payments are also possible.) Answer the same questions for the fifth day.
Write the symbolic logic for the 3des decryption : How would you protect the passwords on your system using some of the mechanisms we have studied? Discuss implementation strategies and explain your decisions.
Diaphragm cells are frequently calibrated : Diaphragm cells are frequently calibrated by allowing 1 molar potassium chloride to diffuse into pure water. Your cell has compartment volumes of (upper) 42.3 cm3 and (lower) 40.8 cm3; the diaphragm is a glass frit 2.51 cm in diameter and 0.16 cm thi..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Once the user enters a 0

Once the user enters a 0 you will exit the loop, close the file and execute the code as previously designed until you have displayed all of the scores and the average handicap.

  Searching f and removing certain states from the hash table

use the class hashT, ''Hashing: Implementation Using Quadratic Probing,'' which uses quadratic probing to resolve collision, to create a hash table to keep track of each state's information. Use the state's name as the key to determine the hash addre..

  Implemented a regular binary search tree

In Computer Science I, you implemented a regular binary search tree. Due to your busy schedule, you've decided that it would be best if you could simply reuse this code without any changes. You realize that your code would ONLY work for Arup's ass..

  C++ program to draw a correct texas flag using rectangles

Write a C++ program to draw a correct Texas flag using rectangles, lines, and/or polygons (not images).

  Value of x after the following code is executed

What will be the value of x after the following code is executed?int x = 20, y = 30;while (y

  Use a switch statement

Use a switch statement to write a program that prompts user to enter an character.

  Create a program that displays the number of days in a month

Create a program that displays the number of days in a month. Use a 12-element one-dimensional array to store the number of days in each month (use 28 for the number of days in February).

  Write a program that will read in number of 2 point basket

Write a program that will read in the number of 2 point baskets and the number of 3 point baskets a player makes.  Print the number of each baskets and the total number of points scored.

  Generate a set of 75 random integers in the range -26 to + 4

Write a program that will generate a set of 75 random integers in the range -26 to + 42. The program

  Temperature conversions

Temperature Conversions. The following problems generate temperature- conversion tables. Use following equations that give relationships between temperatures in degrees Fahrenheit(Tf), degree Celsius(Tc), degrees Kelvin(Tk), and degrees Rankin(Tr);

  Program to next the loops in either direction

You can write your program to next the loops in either direction, that is, process row-by-row or column-by-column. Explain which way you would choose to process the data.

  Function called timesten that returns back

Write a function called timesTen that returns back to the caller the value passed into the function multiplied by 10. If the value passed into the function is negative, the function also returns the string

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