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();
}
#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(); }
Pingback: Write a C++ Program to calculate Sales tax.
Pingback: C++ projects for beginners with source code - Codeboks
Pingback: Top 40 projects with C++ for beginners in 2021