1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kirill115 [55]
2 years ago
14

Please help I am stuck​

Computers and Technology
1 answer:
Goryan [66]2 years ago
3 0

Answer:

This could take some time to make, but just to get you going I made the first 3 lines. I don't know how to justify the prices to the right, so you probably have to research that.

Explanation:

#include <stdio.h>

int main()

{

   const double KEYBOARD_PRICE = 35.50;

   const double MOUSE_PRICE = 12.90;

   const double MONITOR_PRICE = 600.00;

   const double PRINTER_PRICE = 168.00;

   const double SPEAKER_PRICE = 120.00;

   const double tax = 0.0825;

   

   int keyboardQty, mouseQty, monitorQty, printerQty, speakerQty;

   

   printf("Enter the number of items sold: ");

   printf("Keyboard > ");

   scanf("%d", &keyboardQty);

   

   printf("Mouse > ");

   scanf("%d", &mouseQty);

   

   printf("Monitor > ");

   scanf("%d", &monitorQty);

   

   printf("Printer > ");

   scanf("%d", &printerQty);

   

   printf("Speaker > ");

   scanf("%d", &speakerQty);

   

   double keyboardTotal = KEYBOARD_PRICE * keyboardQty;

   double mouseTotal = MOUSE_PRICE * mouseQty;

   double monitorTotal = MOUSE_PRICE * monitorQty;

   double printerTotal = PRINTER_PRICE * printerQty;

   double speakerTotal = SPEAKER_PRICE * speakerQty;

   //double subtotal = ...

   

   printf("%-3s\t%-11s\t%-10s\t%-11s\n", "QTY", "DESCRIPTION", "UNIT PRICE", "TOTAL PRICE");

   printf("%-3s\t%-11s\t%-10s\t%-11s\n", "---", "-----------", "----------", "-----------");

   printf("%d", keyboardQty);

   printf("%-3d\t%-11s\t%-10.2f\t%-11.2f\n", keyboardQty, "KEYBOARD", KEYBOARD_PRICE, keyboardTotal);

   

}

You might be interested in
Consider the following program segment. ifstream inFile; //Line 1 int x, y; //Line 2 ... //Line3 inFile &gt;&gt; x &gt;&gt; y; /
AnnyKZ [126]

Answer:

inFile.open("progdata.dat");

Explanation:

5 0
3 years ago
What are the process of boots up a computer?​
Sindrei [870]

Answer:

in computer booting is the process of starting a computer it can be initiated By hardware such as button press or by a software command after it is switched on a computer central processing unit ( CPU)

3 0
3 years ago
If you wish to maintain a consistent style to all the documents you create, it would be helpful to use a _​
kakasveta [241]

Answer:Apply a consistent look across the whole document instead of having to format each section individually.Automatically number section headers.Apply same font to the entire text body.Apply the same font to header sections.Use a consistent paragraph spacing.Pick a default color scheme for SmartArt, charts, and shapes.Pick from a number of pre-designed styles use them as your own and modify them.

Read more on Webcache.googleusercontent.com - https://webcache.googleusercontent.com/question/1639566#readmore

Explanation:

tht is the answer

7 0
3 years ago
What factors are most important when planning for disaster and recovery?
BARSIC [14]

Answer:

1 Procure sturdy devices. 2 Deleting old backups. 3 Physically distant backup location. 4 Regular backups.

Explanation:

mark brainliest pls am dying for it ಥ‿ಥ

7 0
3 years ago
Recall when you built your binary message sending device. Why did we decide to send a message as a sequence of states (A and B)
Debora [2.8K]

Answer:

it is assumed that only A and B can be used, for the reason that in binary there are only two Variables.

Explanation:

In number bases digits include are from 0 to base-1, e.g. in base two (binary), we have from 0 to 2-1. that means we only have 0 and 1. there's no other digit or variable allowed apart from 0 and 1 in base 2 (binary). so in the binary message sending device, a message can only be sent as a sequence of states (A and B).

5 0
4 years ago
Other questions:
  • Ill give Brainliest!!!!! I REALLYYY NEED HELP
    14·2 answers
  • How can my computer catch a virus?
    13·1 answer
  • CUANTO ES DOS MAS DOS POR FAVOR URGENTE :V
    10·2 answers
  • A common type of non-volatile memory is _____.
    12·1 answer
  • Why is investing in a mutual fund less risky than investing in a particular company's stock? A. Mutual funds only invest in blue
    14·2 answers
  • which statement is true? O A Future games will be more context oriented. OB. Future games will be more product driven. Future ga
    13·2 answers
  • While checking your work e-mail, you have received an e-mail warning you about a virus that is currently doing the rounds. What
    8·1 answer
  • What is the output?
    7·1 answer
  • Help please!, explain what is missing and what needs to be changed if anything.
    15·1 answer
  • 18. which of these components is responsible for providing instructions and processing for a computer? a. cpu b. ssd c. ram d. r
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!