Write a program that will calculate the selling price of a circuit board that costs $12.67
Write a program that will calculate the selling price of a circuit board that costs $12.67
Object:
An electronics company sells circuit boards at 40% profit. Write a program that will calculate the selling price of a circuit board that costs $12.67.
Display the result on the screen. C++ Projects.
Code:
#include<iostream>
#include<conio.h>
using namespace std;
void main()
{
float cost=12.67,sell;
sell=(0.40*cost)+cost;
cout<<“\nAn electronic company sells circuit boards at a 40 % profit. \nTherefore The selling price of a circuit board is: $”<<cost<<“\n\nThe total selleing price is : $”<<sell;
getch();
}
1 2 3 4 5 6 7 8 9 10 11 | #include<iostream> #include<conio.h> using namespace std; void main() { float cost=12.67,sell; sell=(0.40*cost)+cost; cout<<"\nAn electronic company sells circuit boards at a 40 % profit. \nTherefore The selling price of a circuit board is: $"<<cost<<"\n\nThe total selleing price is : $"<<sell; getch(); } |
2 Responses
[…] Another Program: Write a program that will calculate the selling price of a circuit board that costs… […]
[…] Write a program that will calculate the selling price of a circuit board that costs $12.67 […]