Part 1: Working with the initialized variables An electronics…

Question Answered step-by-step Part 1: Working with the initialized variables An electronics…  Part 1: Working with the initialized variablesAn electronics company needs a program to print the price of their products nicely format. They have one employee that likes to type prices with fractional cents (i.e. $19.0012) and this just doesn’t make sense. Write a program that will asks the user to input a price and stores that price in a variable. The program should then print out the price with 2 digits after the decimal place. Add Include statement#include  To format to 2 decimal places, precede the output statement with (i.e. the following line of code goes before your output code):cout << setprecision(2) << fixed; Your output should look like this:The selling price is $11.99  Part 2: Working with the cin StatementWrite a C++ program which reads three values of types char, int, and double from the keyboard and prints, appropriately formatted, assigned values and variable types. For example, if letter, number, and real are variables of type char, int and double  respectively, and if the values assigned to them using cin function are: a, 1, and 3.1415, then the output should be:a is a character1 is an integer3.1415 is a real number    Computer Science Engineering & Technology C++ Programming COMM 1700 Share QuestionEmailCopy link Comments (0)