Question #1
Dropdown
What is the value of the totalCost at the end of this program?
quantity = 5
cost = 3
totalCost = quantity * cost
totalCost is
15
3
8

Answers

Answer 1

Answer:

the answer is 25

Explanation:

because ot is 25 due to the GB

Answer 2

The total cost when given cost as 3 and quantity as 5 is; 15

We are given;

Quantity = 5

Cost = 3

Now we are told that formula for the total cost is;

Total Cost = quantity × cost

Plugging in the given values of quantity and cost gives us;

Total Cost = 5 × 3

Total cost = 15

In conclusion, the total cost from the values of quantity and individual cost we are given is 15

Read more about total cost at;https://brainly.com/question/2021001


Related Questions

You wrote a program to allow the user to guess a number. Complete the code to get a number from the user.

# Get a guess from the user and update the number of guesses.

guess =

("Guess an integer from 1 to 10: ")

NEED HELP FAST

Answers

Answer:

import random

number = random.randrange(1, 10)

is_guess = 'y'

while is_guess == 'y':

   try:

       guess = int(input("Guess an integer number between 1 and 10: "))

       if guess < 1 or guess >10:

           print("You have exceeded the guessing range, try again")

           continue

       elif guess == number:

           print("Congrats! You guessed right.")

       else:

           print("Sorry, you guessed wrong")

   except ValueError:

       print("Your guess must be an integer number.")

   is_guess = input("Do you want to try again y/n ? ")

Explanation:

The random module of the python programming language is used to randomly select an integer value from a range of numbers. The guess variable value is a user input of an integer number.

If the guess variable is equal to the random number, then the program prints a congratulatory message. The program is no constant loop so long as the is_guess variable is equal to 'y'.

The try-except statement is used to detect the value error of the guess variable.

Answer:

input

Explanation:

Analytical Engine was designed in​

Answers

Answer:

1838

Explanation:

Analytical Engine was designed in 1838. The designer is Charles Babbage, who was an English mathematician and widely known for his innovation in the engineering world. He is often considered to be the father of computers.

Following his inability to finish the creation of Difference Engine, Charles Babbage would later when ahead to conceived the Analytical Machine in 1834

He eventually finished the design of an Analytical Machine by 1838.

Answer:

Charles Babbage

Explanation:

Just did test

Can someone please help me with 6.8 Code Practice adhesive.

Answers

Answer:

I'm looking for this one too

Answer:

import simplegui

import random

# global constants

WIDTH = 600

HEIGHT = 400

PARTICLE_RADIUS = 5

COLOR_LIST = ["Red", "Green", "Blue", "White"]

DIRECTION_LIST = [[1,0], [0, 1], [-1, 0], [0, -1]]

# definition of Particle class

class Particle:

  # initializer for particles

  def __init__(self, position, color):

      self.position = position

      self.color = color

  # method that updates position of a particle    

  def move(self, offset):

      self.position[0] += offset[0]

      self.position[1] += offset[1]

  # draw method for particles

  def draw(self, canvas):

      canvas.draw_circle(self.position, PARTICLE_RADIUS, 1, self.color, self.color)

  # string method for particles

  def __str__(self):

      return "Particle with position = " + str(self.position) + " and color = " + self.color

# draw handler

def draw(canvas):

  for p in particle_list:

      p.move(random.choice(DIRECTION_LIST))

  for p in particle_list:

      p.draw(canvas)

# create frame and register draw handler

frame = simplegui.create_frame("Particle simulator", WIDTH, HEIGHT)

frame.set_draw_handler(draw)

# create a list of particles

particle_list = []

for i in range(100):

  p = Particle([WIDTH / 2, HEIGHT / 2], random.choice(COLOR_LIST))

  particle_list.append(p)

# start frame

frame.start()

Explanation:

this worked for me, sorry if its to late. let me know if anything is wrong

For this exercise, we are going to take a look at an alternate Calculator class, but this one is broken. There are several scope issues in the calculator class that are preventing it from running. Your task is to fix the Calculator class so that it runs and prints out the correct results. The CalculatorTester is completed and should function correctly once you fix the Calculator class.
public class Calculator {
private int total;
private int value;
public Calculator(int startingValue){
int total = startingValue;
value = 0;
}
public int add(int value){
int total = total + value;
return total;
}
/**
* Adds the instance variable value to the total
*/
public int add(){
int total += value;
return total;
}
public int multiple(int value){
int total *= value;
return total;
}
public void setValue(int value){
value = value;
}
public int getValue(){
return value;
}
}

Answers

Answer:

public class Calculator {

   private int total;

   private int value;

   

   public Calculator(int startingValue){

       // no need to create a new total variable here, we need to set to the our instance total variable

       total = startingValue;

       value = 0;

   }

   public int add(int value){

       //same here, no need to create a new total variable. We need to add the value to the instance total variable

       total = total + value;

       return total;

   }

   /**

   * Adds the instance variable value to the total

   */

   public int add(){

       // no need to create a new total variable. We need to add the value to the instance total variable

       total += value;

       return total;

   }

   public int multiple(int value){

       // no need to create a new total variable. We need to multiply the instance total variable by value.

       total *= value;

       return total;

   }

   //We need to specify which value refers to which variable. Otherwise, there will be confusion. Since you declare the parameter as value, you need to put this keyword before the instance variable so that it will be distinguishable by the compiler.

   public void setValue(int value){

       this.value = value;

   }

   public int getValue(){

       return value;

   }

}

Explanation:

I fixed the errors. You may see them as comments in the code

. Write a short Python function that takes a sequence of integer values and determines if there is a distinct pair of numbers in the sequence whose product is odd. (1 Point)

Answers

Answer:

Explanation:

The following code is written in Python and like requested takes a function called odd_number that takes a list of integers as a parameter. It then loops through the list two times, each time calculating the product of the two numbers and returning Yes if the product is an odd number while also including the two numbers from the list that make that product. If there is no odd product in the list the function simply returns No

def odd_product(my_list):

   for num1 in range(len(my_list)):

       for num2 in range(len(my_list)):

           if num1 == num2:

               pass

           else:

               product = my_list.__getitem__(num1) * my_list.__getitem__(num2)

               if (product % 2) != 0:

                   return "Yes, " + str(my_list.__getitem__(num1)) + " and " + str(my_list.__getitem__(num2))

   return "No"

click it to paste the content of clipboard ​

Answers

Ctrl + V

It is used for paste function.

Please program this in Python.


Create a list of your favorite 4 movies. Print out the 0th element in the list. Now set the 0th element to be “Star Wars” and try printing it out again.

Answers

lst = ["Star Wars", "Movie 2", "Movie 3", "Movie 4"]

print(lst[0])

I wrote my code in python 3.8. Best of luck

Another technique that makes use of the colon slicing technique to directly refer to element places is list slicing. Use a blank value before the first colon to access the first element, then use len() with -1 as the input to access the last element.

What is the 0th element in the list?

The element of the current ArrayList object at the provided index is returned by the get() function of the ArrayList class, which accepts an integer indicating the index value.

As a result, if you supply 0 or list to this method, you can obtain the first element of the current ArrayList.

Use a for loop with range (0, N) to get the first N members of a list. Then, make a new empty list and append the elements of the source list to the new list within the for loop. Range(0, N) iterates in steps of 1 from 0 to N-1. N is not comprised.

Therefore,lst = ["Star Wars", "Movie 2", "Movie 3", "Movie 4"] print(lst[0]).

Learn more about element here:

https://brainly.com/question/19312961

#SPJ2

Identify the symbol. please help!!

Answers

Explanation:

counter bore

Answer:

Diameter

Explanation:

On technical literature or drawings, it could be a symbol to mean diameter.


Some commands listed in a menu cannot be selected.


True or False

Answers

True! Have a nice week

Answer:

Explanation:

it is true

ANSWER ASAP PLEASE Question #4
Fill in the Blank
Fill in the blank to complete the sentence.
_____ is used to store and process data over the Internet using computers that are not located at tthe users site.

Answers

Answer:

A cookie.

Explanation:

Click the crown at the top of this answer if this helped ;)

What is a free and compatible alternative to the Microsoft Office Suite (word processing, spreadsheets, and calendars)?

WordPad
Open Office
Notepad
Lotus Notes

Answers

Answer:

Open Office

Explanation:

Open Office may be regarded as an open source productivity tool which allows users to enjoy the ability to create and edit documents similar to Microsoft Word, create spreadsheet files and documents similar to Microsoft excel and Presentation tool similar to Microsoft PowerPoint. With the open source category of open office, it means it is a free software whereby users can enjoy these tools without having to purchase any user license. The other tools in the option such as Notepad, Lotus note do not posses all these functionality.

Which HTML tag is used to add an ordered list to a web page?

Answers

Answer:

<ol> Defines an ordered list

Answer:

<ol>

Explanation:

There's a chupacabra that looks like a mixed alligator , gecko it looks' like that but if you try harming it will it eat you "look up chupacabra only don't try looking up if it eats meat because that thing is a legendary animal and barely haves answers and has been cured alot and lives in the folklore mostly like the woods" it looks scary and cool the same time but some people said it has been instinct but it isn't it is spanish "which is puerto rican" lives in the united states, and mexico.. ( does it eat meat ) hasn't been seen around but you'll see a picture of it..

Answers

Answer:

wait. is this even a question or is it just informing us?

Explanation:

either way it is cool

Write a Python function that takes a positive integer N and returns the factorial of N, i.e., N! The factorial of N, denoted N!, is the product of the integers from 1 to N. (1 Point)

Answers

Answer:

The python function is as follows:

def fact(N):

   factorial = 1

   for i in range(1,N+1):

       factorial = factorial * i

   return(factorial)

Explanation:

This line defines the function

def fact(N):

This line initializes the product of 1 to N to 1

   factorial = 1

This line iterates through 1 to N

   for i in range(1,N+1):

This line calculates the product of 1 to N i.e. factorial

       factorial = factorial * i

This line returns the factorial

   return(factorial)

explain why it is important for you to understand and describe the basic internal and external components of a computer in the work place​

Answers

Answer:

you go to edit

Explanation:

Other Questions
The table and graph shows the height and weight of 10 basketball players. Which statement is true Why was the Great Depression so devastating for Latin America and European colonies in Africa and Asia? what reasons do they give for the start of the war Which statements accurately describe Isaac Newton's achievements?Choose all answers that are correct1. In his book, Mathematical Principles of Natural Philosophy, Newton laid out three laws of motion that are still the basis forstudying how things move5 2. He was a professor of mathematics at Cambridge University3. As Newton went on developing his ideas in astronomy, mathematics, and physics he became very unpopular and wasoften ndiculed for his works Answer the question in the image below Multiple________encouraged trade within the region.A.islandsB. Mountains C. Rivers D. Volcanoes zoomnot for bad purposeid- 702 041 7468 pass- 0819 Urgent please help, will give brainliest What is Zionism and what did it lead to in 1948 Multiply f and 7. Then, add 10. can u put this in number form please 5(m + 4) = -2(-4 - m) + 3 3, 6, 9, 12Which number is not like the others? Justify your choice. Artist can make their work abstract by A) Making colors unrealistic B) Using shading to realistically show light and dark C) Looking at the subject (thing) they are drawing to make sure the size and shape are realistic D) Adding a realistic background to their workplease help me asap :) The graph shown below suggests:A. a negative correlation.B. no correlationC. a weak correlation.D. a positive correlation. BIG COW LITTLE COW FAT COW ADORABLE COWBIG RAT LITTLE RAT FAT RAT ADORABLE RATBIG CAT LITTLE CAT FAT CAT ADORABLE CAT Carmen reads 2/3 chapters in 7/8 hours. What is the unit rate in chapters per hour?Write your answer in simplest form. Order the numbers from least to greatest Why do you think an agriculture based industries is more beneficial than a mineral based industries in Nepal ? what is phyical quantity Why did Isabel and the others have to float alongside the boat? In refugee