PLEASE HELP!

Make a code that should prompt the user for the prices and quantities of three items. The code should calculate the subtotal of the items. After the subtotal is calculated for your list your code should automatically calculate the sales tax using a tax rate of 5%.
Print out the line items with the quantity and total, and then print out the subtotal, tax amount, and total.

Answers

Answer 1

Answer:

subtotal = 0total = 0tax_rate = 6.5for i in range(1,4):   price = float(input("Enter the price for item " + str(i) + ": "))   quantity = int(input("Enter the quantity for item " + str(i) + ": "))   subtotal += (price * quantity)tax = subtotal * tax_rate/100total = tax + subtotalprint("Subtotal: " + str(subtotal) + ", Tax: " + str(tax) + ", Total: " + str(total))

Explanation:

- Initialize the variables- Create for loop that iterates 3 times- Ask the user for the price and quantity of each item- Calculate the subtotal with given inputs- When the loop is done, calculate the tax and total- Print the subtotal, tax, and total


Related Questions

flexibility
user control
mouse-free input
text alternatives
balance
enabling the user to change the font
and other elements on the page
enabling navigation for visually
impaired users who may rely
only on keyboards for pointing
and clicking
allowing blind users to understand
website images and video
allowing a web page to adjust
to different devices and screens

Answers

Hello!

The answers are:

-User control: enabling the user to change the font and other elements on the page.

-Mouse-free input: enabling navigation for visually impaired users who may rely only on keyboards for pointing and clicking.

-Text alternatives: Allowing blind users to understand website images and video.

-Flexibility: Allowing a web page to adjust to different devices and screens.

I hope that this helps you out!

D. It's based on command and control models
5. The best way to support the growth of social media in your organization is to:
A. Develop a social media policy and strategy
B. Allow anyone in your organization to post on your organization accounts
C. Only repost/share information from other organizations in your organization accounts
D. Only post on your accounts during an emergency

Answers

The best way to support the growth of social media in your organization is to Develop a social media policy and strategy.

What is Social media policy?

A social media policy is known to be the rules and regulations that are used in policing the use of social media.

Conclusively, They help to give advise to any person, etc. who is acting as a representatives of a firm on the right use of social media and thus the  The best way to aid the growth of social media in your firm is to develop a social media policy and strategy.

Learn more about social media policy from

https://brainly.com/question/3653791

A/an _____________ is a stored program that executes at a specified time. Group of answer choices stored procedure view trigger event

Answers

There are different kinds of program. A/an event is a stored program that executes at a specified time.

What is a Stored Program?

This is known to be a program that is made up of one or plenty SQL statements that are saved in the database for future use.

The Four types of stored programs are:

Stored ProcedureStore FunctionTrigger Event

Conclusively, An Event is a program that is Executed at a scheduled or given time.

Learn more about program from

https://brainly.com/question/1538272

Telecommunications networks include within an organization.

Answers

Answer:

Computers and Telephones

Explanation:

Right on Edge 2022

Answer:

D. Computers and Telephones

Explanation:

E2020

A ______ system writes data on two or more disks simultaneously, thereby creating a complete copy of all the information on multiple drives. Select the two correct answers, then click Done.

Answers

A raid 1 and mirrored system writes data on two or more disks simultaneously, thereby creating a complete copy of all the information on multiple drives.

What is Disk mirroring?

In data storage, disk mirroring is a term that connote the doubling of logical disk volumes into a different physical hard disks so that it will always be available.

Conclusively, Note that this is mostly used in RAID 1. A mirrored volume is known to be full logical depiction of separate volume copies and as such the answer above is correct.

Learn more about system from

https://brainly.com/question/25594630

Write a statement that assigns the value 10 to the first element of an array of integers named minutes.

Answers

Answer:

Explanation:

i do not know what language you need because it has different syntax

Javascript:

const minutes = [];

minutes.push(10);

The UNIX-based operating systems use ________ as a delimiter between parts of a pathname; Windows operating systems use ________

Answers

The UNIX-based operating systems use Linux as a delimiter between parts of a pathname; Windows operating systems use Microsoft.

What is operating system?

An operating system is a piece of software that controls and manages computers such as smartphones, tablets, computers, supercomputers, web servers, automobiles, network towers, smart watches, and other similar devices.

It is the operating system that makes it unnecessary to know a coding language in order to interact with computers.

Thus, Linux and Microsoft are correct options.

For more details about operating system, click here

https://brainly.com/question/11220987

#SPJ1

Top/Bottom Rules allow a user to apply conditional formatting to cells that fall within the top or bottom numbers or percentile. How many items will it allow the user to include in the rule?

the top or bottom 10 items or top or bottom 10% only
the top 10 items and top 10% only
the top or bottom 100 items only
any logical number of items or percentages in top or bottom value frames

Answers

The numbers of  items that the user can include in the rule is the top or bottom 100 items only.

What is Top/Bottom Rules?

Top/Bottom Rules is known to be a rule where there is a premade form of conditional formatting which is often used in Excel to alter the set up  of cells in a range.

Note that the Top/Bottom Rules will allow a user to make changes to the top or bottom 100 items only as it only pertains to things that are up and those that are at the bottom.

Learn more about Top/Bottom Rules from

https://brainly.com/question/1862654

True or false? a binary file can never contain image or audio data.

Answers

Answer:

true

Explanation:

It is true that a binary file can never contain image or audio data.

What is a binary file?

A binary file is one that contains data in binary format, which consists of a series of sequential bytes, each of which is eight bits long.

The content must be interpreted by a program or a hardware processor that knows exactly how the content is formatted and how to read the data in advance.

Binary files are more efficient, which is one of their benefits. In terms of memory, storing values in numeric formats like IEEE 754, rather than text characters, uses less memory.

Furthermore, binary formats provide advantages in terms of access speed. Image or audio data can never be stored in a binary file.

Thus, the given statement is true.

For more details regarding binary file, visit:

https://brainly.com/question/14593514

#SPJ2

What is a program that migrates through networks and operating systems, typically attaching themselves to different programs and databases?.

Answers

A software program that migrates through networks and operating systems (OS) by attaching themselves to different programs and databases is a: virus.

What is a virus?

A virus can be defined as a harmful or malicious software program that is designed and developed to migrate through networks and operating systems (OS) of a computer (host), especially by attaching themselves to different programs and databases.

This ultimately implies that, a virus is a malicious software program which causes damage to a computer and user files, if not detected and properly managed.

Read more on virus here: https://brainly.com/question/26128220

What is the intermediate value of arr after two iterations of the outer for loop in the call sort(arr)

Answers

Answer: D: "Ann" "Mike " "Bill " "Lisa" "Mary" "Jose" " Shari" "Walt"

Explanation:Goes through selection sort and after 2 iterations, the largest elements are swapped with the last 2 elements of the array.

The intermediate value of arr after two iterations of the outer for loop in the call sort(arr) is option C of the image attached.

What is intermediate value in programming?

This is known to be a variable that is often employed in assisting so that one can be able to compute what they want

Concluisvely, The intermediate value of arr after two iterations of the outer for loop in the call sort(arr) is option C of the image is because it will help you to have what you are after with the codes.

Learn more about ntermediate value from

https://brainly.com/question/11195842

#SPJ2

A network administrator is importing a list of certificates from an online source, so that employees can use a chain of trust and communicate securely with public websites. Which type of certificates are the network administrator currently importing

Answers

The type of certificates that the network administrator is currently importing is Root.

What do root certificates  mean?

Root certificates are known to be the backbone of any form of authentication and security in the area of software and also usually in  the Internet.

Note that they are often  issued by the certified authority (CA) and can also be  verified by its owner and as such it is the best for the network administrator  to use.

Learn more about certificates from

https://brainly.com/question/24931496

What is a way to prevent the download of viruses and other malicious code when checking your email?.

Answers

Answer:

It is not permissible to access links or hyperlinked information such as buttons and images in email messages.

Explanation:

Which of the following media forms is the Federal Communications Commission able to regulate content on?
a. FM radio
b. AM radio
c. television stations
d. the Internet
d. satellite radio

Answers

Answer:

-FM radio

-AM radio

-television stations

Explanation:

You will read in two strings from a file cp4in_1. Txt at a time (there will be 2n strings, and you will read them until EOF) and then do the following. You alternately take characters from the two strings and string them together and create a new string which you will store in a new string variable. You may assume that each string is no more than 20 characters long (not including the null terminator), but can be far less. You must use pointers. You may store each string in an array, but are not allowed to treat the string as a character array in the sense that you may not have statements like c[i]

Answers

Use the knowledge in computational language in C++ to write the  a character array .

How to define an array in C++?

An Array is a set of values ​​arranged in lists and accessible through a positive numeric index. So, we have that each position of our Array is a variable of the type of our Array, so we have to have a way to initialize this set of variables.

So in an easier way we have that the code is:

#include <stdio.h>

#include <studlib.h>

int main()

{

File*fp;

fp=fopen("cp4in_1.txt","r");

char ch;

//while(1)

//{

while(!feof(fp))

{

char *s1,*s2,*s3;

s1 = (char*)malloc (20 *sizeof (char));

s2 = (char*)malloc (20 *sizeof (char));

s3 = (char*)malloc (20 *sizeof (char));

int i=0,j=0,x,y;

while(1)

{

ch=getc(fp);

if(ch=='\n')

break;

*(s1+i)=ch;

i++;

}

while(1)

{

ch=getc(fp);

if(ch=='\n')

break;

*(s2+j)=ch;

j++;

}

for(x=0;x<i;x++)

{

*(s3+x)=*(s1+x);

}

for(y=0;y<j;x++,y++)

{

*(s3+x)=*(s2+y);

}

for(x=0;x<i+j;x++)

{

printf("%c",*(s3+x));

}

printf("\n");

getc(fp);

}

}

See more about C++ code at brainly.com/question/19705654

(50 pts) To preview a presentation, switch to Slide Show view.


A) True

B) False

Answers

Answer: Your answer is indeed true

True

Hpe this helped you. my cats name is Smiles.

Answer:

TRUE

Explanation:

Select the Slide Show tab.

Select the Use Presenter View checkbox.

Select which monitor to display Presenter View on.

Select. From Beginning or press F5.

Consider the following instruction mix: R-type I-type (non-lw/sw) Load Store Branch Jump 24% 28% 25% 10% 11% 2% a. What fraction of all instructions use data memory

Answers

Based on the number of instructions that use Data memory, the fraction of instructions that use data memory is 35%.

Which instructions use data memory?

The instructions that use data memory in the above table are Load and Store.

This means that the fraction is:

= Store + Load

Solving gives:

= 10% + 25%

= 35%

Find out more on executing instructions at https://brainly.com/question/26949355.

A ________ is a type of virus that self-propagates using the internet or other computer network.

Answers

Answer:

A computer worm

Explanation:

.....................................

A ____ is a software program that is designed to cause damage to a computer or perform some other malicious act.

Answers

Computer virus, a software program that is designed to cause damage to the computer system or perform some other
malicious act

Click this link to view O*NET’s Work Activities section for Petroleum Engineers. Note that common activities are listed toward the top, and less common activities are listed toward the bottom. According to O*NET, what are some common work activities Petroleum Engineers perform? Select four options.


performing for or working directly with the public

interacting with computers

getting information

analyzing data or information

making decisions and solving problems

assisting and caring for others

Answers

Answer: 2 3 4 5

Explanation:i got it wrong so here lol

Answer:

the first one and the last one r wrong the rest all right

Explanation:

How long does one smoke session stay in your system.

Answers

Answer:

1-2 days

Explanation:

In rare cases 25 days

Drag each tile to the correct box.
Match each network type to an example of what it connects.
WAN
MAN
PAN
LAN
twenty computers in an office
laptop and a cell phone
a company's offices across a city
a company's offices across a country

Answers

In order of size:
PAN — Personal Area Network (phone hotspot, Bluetooth, AirDrop)
LAN — Local (town)
MAN — Metropolitan (city)
WAN — Wide (country, continent, planet)

Twenty computer in office —> LAN
Laptop + cell phone —> PAN
Offices across city —> MAN
Offices across country —> WAN

A company notices their software is prone to buffer overflow attacks. They choose a popular development environment, Microsoft Visual Studio, to help avoid future attacks. What development environment feature would most help the company avoid future buffer overflows

Answers

Answer:

Compiler Option

Explanation: These help prevent buffer overflow attacks

What are you doing to an image when you manipulate it?
A. downgrading the integrity of the image

B. creating a digital footprint of the image

C. digitally altering it

D. erasing the intrinsic data

Answers

Answer:

c digitally altering it

How your private data and information are used, who has access to them, which techniques and technologies protect them, and the communications and preferences surrounding how they are handled are components of Internet

Answers

The security components of Internet describes how user's private data are used, who has access to them, which techniques and technologies protect them.

What are the security components of Internet?

The security components of Internet can be defined as a strategic process that highlights and describes how all end user's private data and information are used, who has access to them, which techniques and technologies protect them.

Furthermore, the communications and preferences surrounding how an user's private data and information are handled describes are the security components of Internet.

Read more on security here: https://brainly.com/question/14286078

#SPJ1

Post-production editing can only occur on a Mac computer, not a PC.
True
False

Answers

Answer:

false there is no real difference that would affect post production

What do we call the kernel program that moves all of a process's frames from main memory to the disk or the other way around

Answers

Answer:

This is called the swapper

Explanation:

The swapper's main job is to move processes between memory, and storage.

Really need help Which of these are ways that hackers gain access to computer systems? Select 3 options.


data validation

data validation


phishing

phishing


packet sniffing

packet sniffing


dumpster diving

dumpster diving


layered security

layered security

Answers

The ways that hackers gain access to computer systems are:

PhishingPacket sniffingDumpster diving

What is system attack?

There are different kinds of system attack. This is where the hacker often attacks the system so as to gather data or information about a system.

The different forms of attacks  includes dumpster diving, shoulder surfing, tailgating, phishing and others. Data validation is not an attack on system.

Learn more about hackers from

https://brainly.com/question/23294592

Answer:

Phishing

Packet sniffing

Dumpster diving

Explanation:

Ransomware as a service has allowed the increase of:.

Answers

Ransomware as a Service has allowed the increase of ransomware infections globally.

What is a Ransomware as a Service?

Ransomware as a Service is a type of business association between ransomware operators and affiliates. These affiliates pay to launch ransomware attacks developed by operators.

A ransomware is a type of malicious software that infects the computer of an organization thereby restricting access to their important data unless an amount of money is paid.

Ransomware as a Service has allowed the increase of ransomware infections globally because this business model has allowed malware creators to earn from their ransomware by enlisting a network of distributors.

Therefore, ransomware as a service has allowed the increase of ransomware infections globally.

Learn more about ransomware here:

https://brainly.com/question/23294592

Electronic résumés have an attractive, highly formatted appearance. please select the best answer from the choices provided t f

Answers

Answer:

true

Explanation:

An electronic resume can carry so much data about the person, and it includes images also. Then the statement is true.

What is an electronic resume?

An electronic resume is termed as a resume that is read by a computer program that summarizes the information of each person.

The electronic resume has the data such as their parent name, education, skills, job experience, hobbies, languages, and so on.

Thus, the photo of the document about the project or internship that has been done in the past can be given on the electronic resume by uploading the certificate on the computer system along with the resume.

For example, in companies like Linkedin, and so on there are many companies that ask about the person before creating an account.

More about the electronic resume link is given below.

https://brainly.com/question/2798964

Other Questions
A user is trying to access a file in a shared Windows folder. The user can open the share but cannot open the file in the share. You check the sharing permissions and the user has Change permission to the share. Why can't the user open the file According to the supremacy clause, which part of the government can not make a law contrary to the law of the national governmentA. Federal governmentB. State governmentsC. Amendments Your teacher has asked you to write a shortstory (150-170 words) entitled A Day toRemember. Your story should include: an earthquake. a dog. What is the purpose of confirmation? i need help please find the 7th term3, 1,1/3 I will give brainliest to the first person who answers :) Which statement is true?An endocrine lab technician teaches classes and conducts research on the endocrine system.An endocrine lab technician specializes in lab testing for diseases and disorders related to hormone levels.A certified diabetes educator prescribes medicine and refers patients for surgery.A certified diabetes educator analyzes samples of body tissues and fluids. 3. Megan earns $8.25 an hour and buys lunch For 6.50 each day.Which expression represent the amount of money megan has left each day after working H hours and buying lunch? A.8.25hB.14.15hC. 8.25 h - 6.50D. 6.50h-8.25 -1. Show that the function g(x)- *52 is the inverse of f(x) = 5x+2.Step 1: The function notation f(x) can be written as a variable in an equation. Is that variable xory?Write f(x) = 5x + 2 as an equation with the variable you chose above. (2 points)=Step 2: Switch the variables in the equation from Step 1. Then solve for y. Show your work. (2 points)Step 3: Find the inverse of g(x)= *52. What does this tell you about the relationship between f(x) =5x + 2 and g(x)? Show your work. (3 points)The table shows values that represent a function. a gas has a temperature of 14C, and a volume of 4.5 liters. if the temperature is raised to 29C and the pressure is not changed, what is the new volume of the gas? What is the following sum4/5+2/5 PLES HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! If (8,b) Is a solution to the equation represented by the graph below, what is the value b? G.C.A.2 worksheet 5 help me solve problem one please. What event occurred that caused jeannette to bring up her fathers philosophy on turbulence?. Thirty-four high school students were surveyed and asked how many siblings they have. The dotplot below displays the distribution of responses. A dotplot. A number line going from 0 to 8 is labeled Number of Siblings. 0, 3; 1, 5; 2, 9; 3, 9; 4, 3; 5, 3; 6, 1; 7, 0; 8, 1. What percent of students have fewer than 2 siblings? 9% 24% 26% 50% Please help, Which statements about the graph are true? Choose all the true statements.A.) The friends stopped for a break between hours 3 and 4.B.) The friends hiked at a constant speed for the first 2 hours.C.) The friends hiked at the maximum speed for 7 and 8.D.) The friends hiked the least number of miles between hours 6 and 7. E.) The friends hiked back toward the starting point between hours 3 and 4. Most secured loans are not _____.backed by collaterallong-termhigh interestscheduled with set payments Technician A says test lights are great for performing simple tests. Technician B says you can use a test light to check SRS circuits and computer circuits. Who is correct