Read the following code:

# Calculate totalCost of itemA with 6.5% tax
totalCost = itemA + .065

There is an error in the code. How should the code be revised in order to get the correct output?

totalCost = itemA * 0.065
totalCost = (itemA) + 0.065
totalCost = itemA * ( itemA + 0.065)
totalCost = itemA + (itemA * 0.065)

Answers

Answer 1

Answer:

answer is D

Explanation:

i took the test and sales tax is just multiple the tax with the price of the item


Related Questions

Hiya people. I am a game developer and I need an idea for a new game. If you have any ideas, pls feel free to tell me. Best idea gets brainliest.

Answers

Answer:

A better RPG game all the one that are existing are the same dull thing

Explanation:

Answer:

There are many ideas you can get for games but now-a-days action games are getting more fame than others such as fortnite, freefire, pubg etc. I prefer you to make a game that is relatated to action or adventure. You can make it related to zombie hunting, or online fighting games, or some adventurous games like tomb raider.


A technician assists Joe, an employee in the sales department who needs access to the client database, by granting him
administrator privileges. Later, Joe discovers he has access to the salaries in the payroll database.
Which of the following security practices was violated?
Principle of least privilege
Strong password policy
Entry control roster
Multifactor authentication

Answers

Answer:

Principle of least privilege

Explanation:

The principle of least privilege means the user has only access to that data which is required to complete the task

Therefore as per the given situation, Joe who is an emloyee wants to access the client data base but later on he needs to access the payroll data base

So as per the given situation, the first option should be violated

Hence, the same is to be considered

Which form of data does the image represent? (10 points)

A. Analog data
B. Digital data

Answers

Where is the image?, I cant answer if there is no image
b
.......…..................

Write a simple JavaScript function named makeFullName with two parameters named givenName and familyName. The function should return a string that contains the family name, a comma, and the given name. For example, if the function were called like this: var fn = makeFullName("Theodore", "Roosevelt");

Answers

Answer:

Explanation:

Ji

A JavaScript function exists as a block of code created to accomplish a certain task.

What is a JavaScript function?

In JavaScript, functions can also be described as expressions. A JavaScript function exists as a block of code created to accomplish a certain task.

Full Name with two parameters named given Name and family Name

#Program starts here

#Prompt User for Input "given Name and family Name "

given Name = input("Enter Your given Name: ")

family Name = input("Enter Your family Name: ")

#Define Function

def last F(given Name, Family Name):

  given Name = given Name[0]+"."

  print(Last Name+", "+Family Name);

last F(given Name, Family Name) #Call Function

#End of Program

To learn more about JavaScript function

https://brainly.com/question/27936993

#SPJ2

Unitary method question 1) If the cost of 32 copies is Rs 960, how much more cost is of 3 dozen copies ?​

Answers

Answer:

the cost of 3 dozen copies is Rs 1080.

Explanation:

32 copies =Rs 960

1 copy =Rs 960÷32

= Rs 30

3 dozen = 3 × 12. =36

36 copies = 36 × 30

= Rs 1080

Overflow and roundoff errors result from real-world limitations in representing . . . (10 points)
A. number systems
B. fractions
C. place values

Answers

Answer:

C. place values

Explanation:

Place value can be defined as the numerical value representing a digit owing to its position in a number. Some examples of the various place values used in representing each digit are tenths, hundredths, thousandths, unit, tens, hundreds, thousands etc.

For example, in the number 316.2;

The place value of 3 is hundreds. The place value of 1 is tens. The place value of 6 is units. The place value of 2 is tenths.

In the real-world, their instances where there are limitations in counting and representing real numbers that are infinite (too small or too large). In order to overcome these limitations or barriers, we use place values.

An overflow error arises when a real number cannot be represented because it is too large and exceeds the upper limits of a range chosen.

Also, a roundoff error can be defined as the difference between the output generated from an algorithm using an exact or actual numbers and the output generated using rounded or finite-precision numbers.

Hence, overflow and roundoff errors result from real-world limitations in representing place values.

What is the missing line of code?
class vehicle:
self.model = strModel
self.color = strColor
def
_str_(self):
return self.model +
+ self.color

Answers

Answer:

def__init__(self,strModel,strColor):

How would you maximize the use of a class?

Answers

Answer:

can't understand your qs.......

write c++ program from 1to 100 to find prime numbers using statement.

please help me​

Answers

Answer:

int count;

for (int i = 1; i <= 100; i++){

count = 0;

for (int j = 1; j <=i; j++)

if (i%j==0) count ++;

if (count == 2) cout << i << " ";

}

_________ can be used to provide access control, confidentiality, data origin authentication, connectionless integrity, rejection of replayed packets, and limited traffic flow confidentiality.

Answers

Answer:

IPSec

Explanation:

IPSec is an acronym for Internet Protocol Security. It is a standardized protocol used in determining the cryptographic and authenticated packets across the Internet Protocol networks.

It can be utilized to establish access control, confidentiality, data origin authentication, connectionless integrity, rejection of replayed packets, and limited traffic flow confidentiality.

Your company just installed a new web server within your DMZ. You have been asked to open up the port for secure web browsing on the firewall. Which port should you set as open to allow users to access this new server?

Answers

Answer:

The port that should be set open to allow users to access this new server is:

TCP port.

Explanation:

Ports are openings or entrance doors through which data packages have access to a PC or server.  TCP and UDP are transport protocols with port numbers.  TCP means Transmission Control Protocol.  They are used to connect two devices over the internet and other networks.  UDP means User Datagram Protocol.  They are used to connect applications and to speed the transfer of data.  Comparatively, UDP is faster, simpler, and more efficient than TCP.  TCP enables retransmission of lost data packets, which UDP cannot do.

What is power point?​

Answers

Answer:

PowerPoint is an electronic presentation program that helps people present a speech using a collection of slides.

Explanation:

Answer:

Power point is a presentation program released in 1987

Explanation:

.NET
It is considered the College database.
1. Create a console application to display the information
from the Teacher table.
2. Create a Windows Forms application for
entering the information in the Teacher table


3. For the Teacher table:
a) create its XML representation;
b) display the representation in a Windows application
Forms in alphabetical order by teacher name (
without idprof);
c) Display each name and surname of each teacher
together with the department to which he belongs.

Please help, need at least the first 2 exercises.

Answers

Answer:

This is called contradiction cloud responsibility (CCR)

Explanation:

Which of these are illegal activities? Check all that apply.

running a pyramid scheme
offering free gifts
threatening to harm property
downloading a virus
hacking a computer

Answers

Answer:

Offering free gifts

Explanation:

Answer:

ace

Explanation:

ark titanoboa taming

Answers

Huh???????................

it is a passive tame throw the an egg down and it will eat it if it attacks you or gets attacked it will reset the taming process

Explanation:

The term structure, as it relates to programming, refers to the decisions you make to design your program to best meet its objective. Coral provides features to create clean, efficient code. How can the basic if/elseif/else control statements help meet structural design objectives in your code?

Answers

Answer:

Explanation:

if/elseif/else control statements help accomplish efficient code since it provides a condition. The program analyzes the code and determines if certain criteria are met, if so then it continues down a certain pre-defined path   which would be the most efficient path towards the main program objective. If these criteria are not met then the code would follow the next most efficient path. This is all controlled through if/elseif/else statements. They ultimately provide various options for reaching the final objective in an order of most efficient to least efficient.

Zahid needs to ensure that the text flows around an image instead of the image being placed on a separate line as the text. Which tab on the Layout dialog box should Zahid use to perform this task? Position Text Wrapping Size He can’t do this on the Layout dialog box.

Answers

Answer:

I believe the answer is He can't do this on the layout dialog box

Explanation:

You use the format tab for text wrapping.

( Sorry if I'm wrong )

Answer:

B.) Text Wrapping

Explanation:

I think that's the right answer. It's how you can make the text flow around an image in doc so I assume it's right. I'm really sorry if it's wrong :(

Question # 6
Dropdown
Choose the line of code that completes this program.

Output:

dog named Tiger

class pet:
def __init__(self,strSpecies,strName):
self.species = strSpecies
self.petName = strName

def __str__(self):
return self.species + " named " + self.petName

def changeName(self, newName):
self.petName = newName

# main program
myPetA = pet('dog', 'Spot')


print(myPetA)

Answers

Answer:

myPetA.changeName('Tiger') should be it

Explanation:

Answer:

myPetA.changeName('Tiger')

Explanation:

Correct answer edge 2020

Design an algorithm that takes in a stream z1, . . . , zM of M integers in [n] and at any time t can output a uniformly random element in z1, . . . , zt . Your algorithm may use at most polynomial in log n and log M space. Prove the correctness and analyze the space complexity of your algorithm. Y

Answers

Answer:

import random

def rand_select(*args):

   selected = random.choice(args)

   print( selected)

rand_select(12,32,43,54,2,34,65,2,64,74,97)

The space complexity of this program is O(1)

Explanation:

The list of arguments to the function is assigned to the variable "args" and the random's choice method randomly picks an item and assigns it to the variable "selected", then the variable is printed out on the screen. The memory used is 1 + 1 = 2, which is a constant, therefore making the space complexity to be O(1).

.A card that connects directly to the motherboard of the computer and has external sockets so that the computer can be connected to a network via cables is called

Answers

Answer: Network interface controller

Explanation:

A network interface controller is also referred to as the network adapter or LAN adapter. It is simply a component of the computer hardware that is used to connects a computer system to a particular network.

It is a card that connects directly to the motherboard of the computer and has external sockets so that the computer can be connected to a network via cables.

Hoda wants to create a new presentation in PowerPoint with existing graphics and designs. What is the easiest and fastest way for her to do this? Use an existing template. Design a new theme for the presentation. Create a custom template for the presentation. Search for a design template online.

Answers

Answer:

The answer is A

Explanation:

Edge 2020

Write a recursive method that takes four inputs: a 1-D array of Strings (i.e., exams), the length of this 1-D array (i.e., n), an index to access array elements (i.e., i) and a 2-D array containing double values (i.e., ret).

Answers

Answer:

import java.util.*;

public class Main

{

       public static void main(String[] args)  

       {

           String [] exams = {"1;2;3;4;" , "5;6;7;8;" , "9;10;11;12;" };

           double[][] n = new double[exams.length][4];

           examArray = convert(exams , exams.length , 0 , n);

           for(int i = 0 ; i < exams.length ; i++)

           {

               for(int j = 0 ; j < 4 ; j++)

               {

                   System.out.print(n[i][j] + "\t");

               }

              System.out.print("\n");

           }

       }    

       

/* recursive function convert defined here */

       public static double[][] convert(String[] exams , int number , int x , double [][] result)

       {

           if(x==number)

               return result;

           else

           {

               String total = exams[x];  

               String currentScore = "";

               int p = 0;

               for(int j = 0 ; j<totalScore.length() ; j++)

               {

                   char ch = total.charAt(j);/

                   if(ch==';')

                   {

                       result[x][p] = Double.parseDouble(currentScore);

                       p++;

                       currentScore = "";

                   }

                   else

                   {

                       currentScore = currentScore + Character.toString(ch);

                   }

               }

               return convert(exams , number , x+1 , result);

           }

           

       }

}

Explanation:

The Java source code defines a recursive function or method called convert that converts the results of three students that sat for four examinations to double or float number and screens their individual results for the four exams on the screen.

Write a function that accepts a cell array StudentScores consisting of the following:
a character array (i.e. text string) with a student's last name
a vector of their homework scores (HW) .
a vector of their quiz scores (QZ )
a vector of their exam scores (EX) .
a scalar with the final project score (PJ)
Your function should compute the total course score using the formula:
FinalScore = 0.25HW +0.20QZ +0.40EX +0.15PJ
where the bars indicate the average scores in each of the categories that have multiple scores. The final score should be stored in single precision. Your function should create and output a 1x2 cell array Finalscore with the student name in the first cell and the final score (in single precision) in the second cell.

Answers

Answer:

function FinalScore = grades(StudentScores)

FinalScore ={StudentScores{1,:};0.25*mean(cell2mat(StudentScores{2,:}))+0.20*mean(cell2mat(StudentScores{3,:}))+0.40*mean(cell2mat(StudentScores{4,:}))+0.15*StudentScores{5,:}}

endfunction

Explanation:

In the source code, the function FinalScore is defined to calculate the total student score and assign it to the variable FinalScore. Note that the code block in the function must be indented accordingly.

Whose guidelines should you follow for the destruction of storage media such as thumb drives, Zip drives, and computers?

Answers

Answer:

Depends how bad you want to hide something. If the drive has previously been encrypted and the password hashed (like AES-256 with SHA-512 hashing), then deleting the content is enough since it will be slightly overridden and thus unusable. If it is not encrypted already, delete it, and override all your disk space with something. If you want it to die as a secrete 100%, burn it and pulverize it. Otherwise, if you want a quick method, use some real delete software.

To solve the difficulty of scaling memory organization, memories are physically organized into a ____-dimensional organization.
A) one
B) two
C) three
D) multi

Answers

The answer is D) multi

write an algorithm to sumn of even numbers from 1 to 10​

Answers

Answer:

1. Start

2. Evensum = 0

3. For I = 1 to 10

3.1 If I % 2 == 0

3.1.1 Evensum = Evensum + I

4. Print Evensum

5. Stop

Explanation:

The line by line explanation is as follows:

[The algorithm starts here]

1. Start

[This initializes Evensum to 0]

2. Evensum = 0

[This iterates from 1 to 10, inclusive]

3. For I = 1 to 10

[This checks if current number is even number]

3.1 If I % 2 == 0

[If yes, this adds the even number]

3.1.1 Evensum = Evensum + I

[This prints the sum after the sum]

4. Print Evensum

[This ends the algorithm]

5. Stop

To specify your preferred colors, fonts, and effects for a document, which of the following should be done?

1.Create custom theme fonts
2.Create custom theme
3.Create a custom paragraph style
4.Create a custom character style

Answers

Answer:

2. Create custom theme.

Explanation:

The theme stays through the entire document. Custom paragraph style only changes the theme for that paragraph, and for the custom character style, it only changes the style of that character but throughout the entire document. i.e. I want the color of the character E to be green. the custom character style will cover that. Also, the custom theme fonts will only change the theme for that certain font...

To specify your preferred colors, fonts, as well as effects for documentation, will have to create a custom theme.

A customized theme seems to be the simplest method to give your existing applications a unique aesthetic appeal or appearance. Themes represent bundles of overall coding or website that have previously been written for customers.The templates subdirectory could hold many customization options or the themes, preferably with its respective or individual sub-folder.

Thus the response above i.e., option 2. is appropriate.

Learn more about Custom themes here:

https://brainly.com/question/20006021

Which of these is an example of collective voice?
A. He hopes to make the world better for his children.
B. I have always dreamed of a kinder and better world.
C. We are here to make a better world for our children.
D. Your purpose is to make the world a better place.

Answers

Answer:

option C

hope it helps! please mark me brainliest..

Merry Christmas good day

Answer:

c

Explanation:

What is the output for the following line of code?
# print(3)
O3
O'3
O There is no output.
O An error statement is generated.

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct option for this question is: There is no output.

Because this is a Python code. and it is a comment statement. The code line that begins with the # symbol considered a comment statement.  The comment statement code will not be executed when you run the program.

While the other options are not correct because:

The given line of code is considered as a comment statement. The comment statement will be executed on running the program. It is used for understanding the program that helps the program to read and understand the logic being written here. When you run the comment statement, it will not produce any output or error.

Answer: O There is no output.

Explanation:

The "#" is utilized as a comment statement in Python code. It is not meant to be put into effect when the program is ran.

(Confirmed on EDGE)

I hope this helped!

Good luck <3

Should the security researcher have published exploit code that affects every version of Windows and cannot be patched

Answers

Answer:

No.

Explanation:

This is because there is probably the risk of malicious attackers grabbing the published exploit code that affects every window and then utilizes it for dubious purposes. Such as stealing vital information after gaining access.

The most ideal way for the security researcher to go about the exploit code that affects every version of the window is to meet the windows manufacturers, discuss the negative issues of windows software with them and eventually assist them in the software update to troubleshoot the patch.

Other Questions
I need help on thiss Read the following scenario. The power Clara has granted her son is an example of which of the following?Clara had a stroke that has affected her brain. She is worried that further medical crises could leave her unable to make medical decisions. She has signed a document stating that her oldest son will make medical decisions.primary healthcare coverageadvanced directivesecondary proxydurable medical power of attorney In a class of 23 students, 16 have a brother and 15 have a sister. There are 11 studentswho have a brother and a sister. What is the probability that a student chosenrandomly from the class is an only child? What is the image of (7, -3) after a reflection over the x-axis? Who was Kalidasa?a a poet and playwrightb an astronomerc a mathematiciand a traveling Buddhist monk The terms transverse or longitudinal are often used to describe the types of pulses. To what feature of a pulse do these terms refer:____________ Which of the following statements is FALSE?a.Slave owners produced 90% of Texas cotton on plantations during the 1850s and 60s.b.Plantation owners typically owned several hundred slaves.c.There were many plantations and plantation owners in Texas duirng the 1850s and 60s.d.Texans who owned slaves usually had larger farms than those who worked without them. Shelley is in an elevator that is traveling downward and slowing down at a rate of0.950 m/s2. If Shelley has a mass of 73.2 kg, what is her apparent weight during thisperiod? Plz help me with this?!?! I will mark you brainliest!!! Which function is graphed? Write your own situation about the inequality below. 10 x + 20 150 Read the following sentence and identify the transition word or phrase used.Walking seems easier than running, however, it is just as beneficial to your body.seemsthanhoweverjust as Determine the answer to (5) + 4 and explain the steps using a number line.pls help i will give 62 pints estimate of 372 divided by 4 Mike has a credit rating of 720. Tyler has a credit rating of 560. Mike and Tyler apply for identical loans from Park Bank. Mike is approved for a loan at 3.2% interest, and Tyler is approved for a loan that charged 3 percentage points higher because of his inferior credit rating. What interest rate is Tyler charged? A manor was a structure similar toO A hotelO A mansionO A churchO A cottage Before and after can someone rate this please Look at the graph shown below:A coordinate plane is shown. A line passes through the point 4 comma 1 and through the y-axis at 4.Which equation best represents the line? y = 3 over 4.x + 4 y = 4 over 3.x + 4 y = 4x + 3 over 4. y = 4x + 4 over 3.Question 2(Multiple Choice Worth 4 points)(04.07A)Two quantities are related, as shown in the table below:x y2 24 56 88 11Which equation best represents the relationship? y = 3 over 2x + 2 y = 3 over 2x y = 3 over 2x 1 y = 3x + 2Question 3(Multiple Choice Worth 4 points)(04.07A)Two right triangles are graphed on a coordinate plane. One triangle has a vertical side of 2 and a horizontal side of 6. The other triangle has a vertical side of 10 and a horizontal side of 30.Could the hypotenuses of these two triangles lie along the same line? No, because they are not similar triangles No, because one is larger than the other Yes, because they are both right triangles Yes, because they are similar trianglesQuestion 4(Multiple Choice Worth 4 points)(04.07A)A line passes through (3, 7) and (6, 9). Which equation best represents the line? y = 3 over 2x + 5 y = 2 over 3x + 5 y = 3x + 2 y = 2 over 3x + 2Question 5(Multiple Choice Worth 4 points)(04.07A)What is the y-intercept of the line shown?A coordinate plane is shown. A line passes through the y-axis at 3 and through the point 2 comma 4. 0 1 3 3.5 If the government sets a quota of 300 pounds of fish caught per day, then fish will sell for ________ more per pound than the cost of catching the fish. Did the Europeans bring deadly diseases to Europe