Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSC100AA and CIS162AB Ch 2 Program 4 - Flash Drive Price The following concepts are covered: Different data types Defining variables, and choosing valid variable

CSC100AA and CIS162AB

Ch 2 Program 4 - Flash Drive Price

The following concepts are covered:

  • Different data types

  • Defining variables, and choosing valid variable names.

  • Writing mathematical expressions

  • Use of cout statement to display output to the console.

  • Formatting the output using escape sequences (/n, /t, etc.)

Please adhere to the Standards for Programming Assignments and the C++ Coding Guidelines.

Submit the following:

Source code with comments

Test output listed as comments at the end of your program

FlashDrivePrice.cpp

An electronics company makes 64 gigabyte USB flash drives that cost them $8.00 a piece to produce. Write a program to determine how much the company should sell them for if it wants to make a 35 percent profit. Display the actual cost and the selling cost.

Step1: Input - Define variables to store

  • cost of a single 64 gigabyte USB flash drive

  • earn a 35 percent profit

  • selling cost of the USB flash drive

Step 2: Calculations - Perform calculations to determine the selling price of the USB so as to earn a 35 percent profit.

Step 3: Output - Display the actual cost and the selling cost to the console.


Sample output:


To have a 35% profit, the selling price of the USB

that costs $8 to produce should be $10.8


Press any key to continue...

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions

Question

Condition: Models/No Tan Tanned Models No Models

Answered: 1 week ago