A customer in a store is purchasing five items. Write a program that asks for the price of each item, and then displays the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is 7 percent. Display all results, properly labeled, as numbers with two digits after the decimal point.

Answers

Answer 1

Answer:

Program approach:-

Using the header file.Using the standard namespace I/O.Define the main function.Display the enter price of 5 terms.

Explanation:

Program:-

//header file

#include<iostream>

#include<iomanip>

//using namespace

using namespace std;

//main function

int main(){

       const double SALES_TAX=0.07;

       double subTotal=0,total=0,taxAmount = 0,x;

       

       cout<<"Enter price of 5 items"<<endl;

       for(int j=0;j<5;j++){

               cin>>x;

               subTotal += x;

       }

       taxAmount = subTotal * SALES_TAX;

       total = taxAmount + subTotal;

       cout<<fixed<<setprecision(2)<<endl;

       cout<<"Sub total: "<<subTotal<<endl;

       cout<<"Sales Tax: "<<taxAmount<<endl;

       cout<<"Total: "<<total<<endl;

       

       

}


Related Questions

Write the field for the table "BOOK" with its field type and also write the primary key for the table.

Answers

Answer:

Fields are the components that provide structure for a table. Fields in a table store the same category of data in the same data type. For example, if you have a NAME field in a table of customers, the entries for this field are all customer names and are stored as text.

A primary key is a field or set of fields with values that are unique throughout a table. Values of the key can be used to refer to entire records, because each record has a different value for the key. Each table can only have one

primary key.

The primary key of this table is the ISBN, which uniquely identifies a book. The title column relates to the book; this is the title of the book. Each row of this table is about one book.


1.can you identify the materials needed in making simple circuit???

2.what is the use of each material
in making simple circuit???

Answers

Explanation:

Small light bulb (or a flashlight bulb): To detect the power supply through the circuit.Wire (of suitable length and ampere specifications): To connect the electrical elements for the supply of power as electric current. Bulb holder: To mount the bulb, connecting it to the power source.Battery with the appropriate voltage for the light bulb: As a source of electric power. Two alligator clips: To connect the wire-terminals of the circuit to the terminals of the battery.  Electrical tape: To insulate the wire joints/connections at any point.  Switch: To toggle the power supply in the circuit.

You work at a computer repair store. You just upgraded the processor (CPU) in a customer's Windows-based computer. The customer purchased the latest AMD Phenom II processor, and you installed it in the computer. When you power the computer on, you only see a blank screen.
Which of the following is MOST likely causing the computer displaying a blank screen? (Select TWO).
Someone unplugged the computer without performing a proper shutdown first.
A. The CPU is bad.
B. The CPU is not supported by the BIOS.
C. The heat sink and fan were not installed correctly.
D. The power connector for the fan was not connected to the motherboard.

Answers

Answer:

A and B

Explanation:

A. The CPU is bad

B. the CPU is not supported by the BIOS

What is a signature?

a distinctive characteristic of a virus or virus family

an anti-spyware feature of Windows 7

a computer program that replicates itself and damages a computer system

a program that tracks a user’s activities online

Answers

Answer:

option a

never heard of b, c would be called a virus and d a cookie

use of concave mirrors​

Answers

Explanation:

concave lens use for shaving mirrors and satellite

Data bars are a form of ________.

data input
conditional formatting
data calculations
data formatting

Answers

Answer:

Hello There!!

Explanation:

The answer is conditional formatting.

hope this helps,have a great day!!

~Pinky~

Answer:

conditional formatting

Explanation:

hopes it helps

what is the difference between coding with html and coding with python

Answers

Answer:

Python is an object-oriented programming language that is designed to be accessible and simple for all users, HTML is a web language and is used globally to define the structure of web pages by using various tags. HTML is not a programming language it's a markup language which is used to formatting web pages. Python is a general purpose scripting language which can be used to develop a wide range of programs.

is solar energy reliable and powerful enough to be used in home or business​

Answers

Answer:

It all depends on what you are prepared to spend and what sort of system you install. I have both grid tie and stand alone systems installed at my home, and both work really well, although we initially had some inverter problems with the grid tie system until we decided to only use top shelf gear.

We have 6.6 kW grid tie system on the roof of the house which supplies around 3 times our requirements, and a 1.5 kW stand alone system that supplies the backyard workshop and pool pump. The grid tie system cost around $6500 to install, and the small stand alone system cost $4500 although this was designed and built by myself, so a purchased system may well be more (batteries are still expensive, but this price is coming down).

In the current configuration (top tier panels, Fronius grid tie inverter and Victron stand alone inverter and charge regulator), we have had no failures in several years, and power bills are something that happen to other people.

My advice is look at what your requirements are, then double that when you spec out your system and don’t go for the cheapest price. Buy your components based on the quality and reputation of the manufacturer, it will be expensive, but you will save money in the long run. A good manufacturer will guarantee their products for at least 12 years and you should expect to get at least 20 years of life out of them.

Explanation:

Solar energy is more than enough for any business or home, but if you want to know if it is cost effective, you need to run the numbers. It does have to be grid-tied though to provide electricity at night or when cloudy for multiple days. In most cases, batteries are not cost-effective at this time.

♡●♡ jess bregoli ♡●♡

#keep learning!!

Two devices used by the supermarket point-of-sale (POS) terminal are a bar code reader and a keyboard. Name two other input/output devices used at the POS and give a use for each device.

Answers

Answer:

1. Receipt printer

Use of receipt printer:

i. They are used to print customer transaction receipts for proof.

2. Touch screen monitor

Use of touch screen monitor:

i. Allow record of when, where, price, and other important information about the sale conducted.

Explanation:

A Point of sale (POS) terminal takes record of transactions at the point where a product is purchased or a service is rendered. A barcode reader is a price scanner that is an input device used in a point-of-sale (POS) terminal. The keyboard is also an input device. The receipt printer is an output device since it converts information into a readable format. While only a touch screen monitor among the other devices mentioned above is an input and output device, because of its touch panel and its ability to display information.

             

To light up an LED, you need to connect the cathode leg to one of the Digital Pins and connect the Anode leg to the ……………. on the Arduino board.

Answers

Answer bobobobobobobobo

que significa DESFRAGMENTAR EL DISCO DURO?????

Answers

Answer:

DESFRAGMENTAR

Explanation:

es el proceso de reorganizar los datos almacenados en el disco duro para que los datos relacionados se vuelvan a juntar, todos alineados de manera continua.

Create the following dataframe Student from dictionary of series and display
the details of each student. (row wise).
Name Subject Marks
1 Anjan English 78
2 Shreya Science 87
3 Meena Science 81
4 Karan Maths 91

Answers

Answer:

import pandas as pd

pd.Dataframe(information)

Explanation:

Given :

Name Subject Marks

1 Anjan English 78

2 Shreya Science 87

3 Meena Science 81

4 Karan Maths 91

information = { 'Name' : ['Anjan', 'Shreya', 'Meena', 'Karan'], 'Subject' : ['English', 'Science', 'Science', 'Maths'], 'Marks' : [ 78, 87, 81, 91]}

The information in the table can be embedded in dictionary list as given above.

Using the pandas library in python :

The Dataframe method in pandas will create the table as shown by putting the variable as an argument in the DataFrame method.

there are 2048bytes in4megabytes true or false​

Answers

Answer:

FALSE IS THE ANSWER.

I HOPE IT IS HELPFUL

Convert the algebraic expression below to C++ statement Do not use the pow function. Ans = 5x^2 + 15k + y^-2

Answers

Answer:

The C++ statement for the given algebraic expression 5x^2 + 15k + y^-2 is ( ( 5 * ( x * x ) ) + ( 15 * k ) + ( 1 / ( y * y ) ).

Explanation:

To convert the given algebraic expression 5x^2 + 15k + y^-2 into the C++ statement without using the pow function is:

In the given algebraic expression, there are three expressions combined using the + operator.

The first algebraic expression is 5x^2.

Here, x has a power of 2, and 5 is multiplied by the result of x^2. x having the power of 2 means x is multiplied itself twice. The C++ statement for this algebraic expression is (5 * ( x * x)).

The second algebraic expression is 15k.

Here, 15 is multiplied by k. The C++ statement for this algebraic expression is (15 * k).

The third algebraic expression is y^-2.

Here, x has a power of -2. it means [tex]1/y^{2}[/tex].  The C++ statement for this algebraic expression is (1/ (y * y).

The combination of all the three C++ statement is (5 * ( x * x)) + (15 * k) + (1/ (y * y).

A company has recently adopted a hybrid cloud architecture and is planning to migrate a database hosted on-premises to AWS. The database currently has over 50 TB of consumer data, handles highly transactional (OLTP) workloads, and is expected to grow. The Solutions Architect should ensure that the database is ACID-compliant and can handle complex queries of the application.
Which type of database service should the Architect use?
A. Amazon Redshift
B. Amazon DynamoDB
C. Amazon Aurora
D. Amazon RDS

Answers

Answer: Amazon Aurora

Explanation:

Amazon Aurora is a fully managed service which is vital in saving time through the automation of time consuming tasks like recovery, backup, provisioning, patching, repair, and failure detection.

Amazon Aurora also allows the encryption of databases through the use of keys that are managed through the AWS Key Management Service. Therefore, based on the information given the question, type of database service that the Architect should use is Amazon Aurora.

The lines that can be formatted to display on the edges of cells are called _______.

style lines
edge lines
borders
underlines

Answers

Answer:

borders

Explanation:

Borders can be formatted in cells of excel or goog.le sheets. You can change width, shape, color, and whole plethora of things!

The lines that can be formatted to display on the edges of cells are called [tex]\boxed{ borders . }[/tex]

a. style lines

b. edge lines

c. borders

d. underlines

[tex]\large\mathfrak{{\pmb{\underline{\orange{Mystique35 }}{\orange{❦}}}}}[/tex]

Match each career to its various job roles. digital media coordinator digital media specialist photographer sound producer creates audio and video content for websites arrowRight records and modifies sound and music for video games and movies arrowRight posts content on the Internet arrowRight captures images and edits the images in graphic design software arrowRight

Answers

Answer:

1. Digital media coordinator.

2. Sound producer.

3. Digital media specialist.

4. Photographer.

Explanation:

1. Digital media coordinator: he or she is saddled with the responsibility of creating audio and video content for use on websites.

2. Sound producer: he or she records and modifies sound and music for video games and movies through the use of specialized software application such as fruity loops.

3. Digital media specialist: he or she is saddled with the responsibility of posting content such as news, pictures, graphic designs, etc., on the Internet.

4. Photographer: he or she captures images using a camera or camcorder and edits the images using a graphic design software such as Adobe Photoshop.

I need help in raft survival ocean nomad I was traveling and now I can't enter the island or go back home (raft). Please help me

Answers

Answer:

Raft Survival : Ocean Nomad is a survival game

Explanation:

The raft survival ocean nomad is a survival video game that is developed by a Swedish developer,  Redbeet Interactive. This game is published by Axolot Games.

In the game the player is moving in a raft in the middle of an ocean searching for his family. It is a survival and strategy game. The player needs to survive in the deserted ocean by whatever he finds and collect from the ocean and also protect himself from the attacks of the sharks.

The player moves by a small island which he can explore to eat something or collect other items to developed his raft.

In the context, if you can not enter the island or go back to the raft, then save the game at that point and press the escape button to start from the first.

In this way, you can refresh the game and start he game again to enter the island.

essay on personal assistants

Answers

Answer:

Explanation:

Personal assistants are hired to work very closely and directly to an individual such as a manager or top ranking persons who are usually very busy and have lots of several different tasks to attend to. The personal assistant would be seen as a person who posses the right multitasking skill, good communication skill and good interpersonal relationship skills can p handle administrative duties, respond to calls and visitors who may need to see the boss, give savvy response to cliemts and visitors and a good fre of mind to ensure that all scheduled lettings, appointments, travels are clearly noted to avoid missing important schedules. Depending on the preference of the manager or boss, they may be need to make specific gender representation of the personal assistant required. Also, some have designated some jobs to suit a certain gender more than the other as the favouured gender gets considered ahead of the other during the application process for jobs of such nature.

i read the book_____you gave me last month​

Answers

Answer:

You didn't provide any answer choices therefore I shall provide some that make sense with the sentence.

that

which

I hope these answers were of any help to you.

I read the book THAT/WHICH you gave me last month.

A car manufacturer uses'simulation software during the design process for a new car. Which of the
following are reasons to use simulation software in this context?
1. Using simulation software can save the company money by helping to compare designs early in
the process, before prototype cars are built.
II. Using simulation software can help to identify safety issues by providing data about how different
mechanical components will interact in a wide variety of situations.
III. The manufacturer can present simulation software to customers to demonstrate different design
possibilities
А
I and II only
B
I and III only
С
II and III only
D
I, II, and III

Answers

D I,II and III is the answer i think

The reasons to use simulation software in this context are I, II, and III. The correct option is D.

What is simulation software?

The process of simulating a genuine phenomenon with a set of mathematical formulas is the foundation of simulation software. It is essentially a program that allows the user to simulate an operation and view it without really conducting it.

Simulation is a decision-making and decision-support tool. You can use simulation software to assess, compare, and optimize different designs, programs, and policies. As such, it can be used to explain and defend decisions to multiple stakeholders.

By allowing the corporation to evaluate concepts early in the process before prototype automobiles are constructed, simulation software can save the company money.

Therefore, the correct option is D, I, II, and III.

To learn more about simulation software, refer to the link:

https://brainly.com/question/16192324

#SPJ2

A regional bank implemented an automated solution to streamline their operations for receiving and processing checks/cheques

Answers

A regional bank implemented an automated solution to streamline its operations for receiving and processing checks/cheques. They would like to further enhance the solution to recognize signs of potential check fraud and alert their security teams accordingly.

Which technology could be combined with the current solution to do this?​

Answer:

Machine learning

Explanation:

The technology that could be used in combining with the current solution to do this is known as MACHINE LEARNING

Given that Machine Learning is a form of Artificial Intelligence, which is designed to possess the ability to act or mimic human beings and their functional characteristics to solve human problems.

Hence, because the regional bank prefers to streamline their processes of receiving and carrying out checks/cheques while also enhancing the solution to recognize signs of potential check fraud, then the technology they could use is called MACHINE LEARNING.

This is because Machine Learning will operate like humans to solve human problems efficiently.

Explain cell reference and its types with examples?​

Answers

Answer:

There are two types of cell references: relative and absolute. Relative and absolute references behave differently when copied and filled to other cells. Relative references change when a formula is copied to another cell. Absolute references, on the other hand, remain constant, no matter where they are copied.

i have a question about Razer headsets. Is it possible to mix microphones? For example:
I have an "Electra V2" headset and microphone and I want to change it's microphone to Kraken.
Is it possible?​

Answers

Answer:

In theory yes it is gonna be pretty hard but it is very possible

Which of the following negatively impacts the readability of a web page?
ОА.
a mix of serif and sans-serif fonts
OB.
too many hyperlinks
O c.
the use of a single font for the entire page
D.
the use of italicization for emphasis

Answers

Answer:

i think its OB. too many hyperlinks

Explanation:

benefits of Internet in modern means of transport benefit of Internet as modern method of information transmission ​

Answers

Answer:

It is a network through which individuals transfer data and information. Using the internet, you can conduct financial services

help please asap please l​

Answers

Answers:

(a) Processor type

(b) Processor speed

(c) Display size

(d) Resolution

(e) Drive size

(f) Memory size

(g) Memory type

(h) Available interfaces

(i) Operating system

(j) Utilities

♛ Mark me as Brainliest if I’m right

The step-by-step procedure to solve any problem is called an

Answers

Answer:

Algorithm

Explanation:

I get such an error when I turn on the computer, how can I fix it?

Answers

Answer:

Use the HLL ( Java C++ ) code to fetch the commands of that program, then translate them using any translatory program such as Microsoft notepad.

Or:

Download any utility software such as Avast, thunderbird, Dr. Solomon, or Norton software

Then install it to memory.

in what century was plastic invented ?​

Answers

in the year 1907 plastic was invented

Other Questions
In birds, males are homogametic sex (XX), females are heterogametic (XY). Light Sussex fowls have mostly white plumage (feathers), and Rhode Island fowls have mostly red. The character white-feathered (R) is dominant to the character red (). 2.1 Explain why, on mating Rhode Island cockereis with white Sussex hens, all male offspring have white plumage and all females red. [18] DEFINA CADA REPRESENTAAO ARTISTICA DECOMPOSTA Which of the following best describes the beginning of the World War II?France, Britain, and the United States declared war on Germany as a result of the Munich Agreement.France, Britain, and the United States declared war on Germany following Germanys invasion of Poland.France and Britain declared war on Germany as a result of the Munich Agreement.France and Britain declared war on Germany following Germanys invasion of Poland. How many milliliters of a 0.40%(w/v) solution of nalorphine must be injected to obtain a dose of 1.5 mg? Can yall give me the synonyms of each word listen below and a sentence with each word in it?Astrobiology Geology Regolith Microbial what is the length of AB When the buttercups have paved the earth with yellow stars"? * What type of literary device In at least 150 words, formulate your opinion on the origins of the Coronavirus. 6) " - what does a person have to do to be considered a member of a society? Para sa bilang 15-20, Tukuyin kung sino ang nagwika ng mga sumusunod na pahayag.15. "Mahal ko ang aking bayan pagkat utang ko rito at magiging utang pa ang aking kaligayahan."a. Alperesc. Crisostomo Ibarrab. Basiliod. Padre Damaso16. "Ang karunungan ay para sa lahat, ngunit huwag mong lilimuting iya'y natatamo ng mga may pusolamang."a. Alperesc. Eliasb. Brunod. Guro17. "Ang hinaharap ay nabubuksan pa lamang para sa iyo, sa akin ay ipinipinid na."a. Crisostomoc. Kapitan Tiyagob. Eliasd. Don Rafaeld. Tiya Isabel18.. "Ang salusalong ito ay para sa pagdating ni G. Crisostomo Ibarra."a. Kap.Tiagob. Ma. Clarac. Pilosopo Tasyo19. "Ipinagtanggol ng iyong ama ang isang bata laban sa kastila."c. Padre Damasod. Tenyente Guevarraa. Eliasb. Tiago20. "Ang bangkay ng iyong ama ay ipinahukay ng isang pari."2 make a flow chart on types of agriculture help please!! where do the points go? What is a historian doing when she examines the ways different culturesstudied and recorded history in the past? A. Thinking chronologically B. Studying historiography C. Determining bias D. Dividing history into periods Consider a circle whose equation is x^2+y^2-2x-8=0. Which statements are true? Select three options. 9. When the astronauts look away from Earth, they see the moon inBehind the moon, they see brilliantthegalaxies.Whats the answer? What are developed countries according to World Development Report? What were the Twelve Tables?The first written collection of Roman laws.The first written record of a constitutional monarchy.The first recorded instance of a government overthrow.The first recorded evidence of written language. Considering recurring decimals, the fraction 203 can be expressed as 7.776.663.669.88 At a school, there are two different math classes for children of the same age. The two classes have different teachers. The school principal is interested in gauging the effectiveness of two different teaching methods and asks each teacher to try one of the methods. At the end of the semester both classes are given the same test and the results are compared.In this experiment, what is the treatment variable?Give an example of a variable that could confound the results.