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

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();	
}

Output:

Write a program that will calculate the selling price of a circuit board that costs $12.67

Another Program: Write a program that continually calculates the cube of a number until the user enters a number that is divisible 2

3 thoughts on “Write a program that will calculate the selling price of a circuit board that costs $12.67”

  1. Pingback: Write a C++ Program to calculate Sales tax.

  2. Pingback: C++ projects for beginners with source code - Codeboks

  3. Pingback: Top 40 projects with C++ for beginners in 2021

Leave a Comment

Your email address will not be published. Required fields are marked *