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
Daniel [21]
3 years ago
6

Jasmine is writing a shopping app. She has created a variable to keep track of the number of items in the shopping cart. Every t

ime someone clicks the "addItemButton", she would like the variable to increase by 1.
What code should Jasmine insert where it says in order for her app to work?a) cart total = 1;
b) cartTotal + 1;
c) cartTotal = cartTotal +1;
d) var cartTotal = cartTotal + 1;
Computers and Technology
1 answer:
Bas_tet [7]3 years ago
8 0

Answer:

C.     carTotal=carTotal + 1;

Explanation:

Option 'c' is the correct answer, because when some click on the "additembutton" the variable cartTotal should increment by 1. As jasmine want to track the record of no. of items in cart, each time customer will click "additembutton" the variable "cartTotal" increment by 1 and also update the value of that variable. e.g

If initially

cartTotal=0

When 1st time additembutton pressed

CartTotal = CartTotal + 1   ==> will make it as   CartTotal=0+1    ==>  CartTotal = 1

Now CartTotal=1;

When customer 2nd time press "additembutton"

CartTotal = CartTotal + 1   ==> will make it as   CartTotal=1+1    ==> CartTotal = 2

This process will continue and update the cartTotal till the customer add items into the cart.

You might be interested in
Which function returns the rank of a value within a dataset, assigning an average rank for tied values
ANTONII [103]
Z-y bcuz it is a function and u need to revail rate
4 0
3 years ago
QUESTION 4 of 10: True or False: According to the reading, investors care about your love for your business.
mixer [17]

Answer:

false

Explanation:

5 0
3 years ago
Read 2 more answers
Briefly describe the client/server model.
Marina86 [1]
The client-server model is network architecture in which each computer or process on the network is either a client or a server. The components are clients, servers and communication network. <span>1. Clients are applications that run on computers. It relies on servers for files, devices, processing power. </span> Example: Email Client Email Client is an application that enables you to send and receive e-mail <span>2. Servers are computers or processes that manage network resources:</span> Disk drives (file servers) Printers (print servers) Network traffic (network servers)  Example: Database Server is a computer system that processes database queries  <span>3. Communication Network is a networks connect clients and servers</span> <span> </span>
6 0
3 years ago
A good digital citizen is ________.
goblinko [34]
A good digital citizen is judgmental (A), they use good judgment and treat others with respect.
4 0
3 years ago
A character with a point size of 10 is about 10/72 of one inch in height. <br> a. True<br> b. False
spayn [35]
<span>The answer to the question stated above is:
A character with a point size of 10 is about 10/72 of one inch in height. This statement is true.
</span><span>
>>>Point size </span><span>is a graphics directive that specifies which points which follow are to be shown if possible as circular regions with diameter</span>
6 0
3 years ago
Other questions:
  • Why might you need to convert a file to another file type?
    14·1 answer
  • Which telecommunications offering is a component of social media? A.)web conferencing
    13·2 answers
  • Given the variables costOfBusRental and maxBusRiders of type int , write an expression corresponding to the cost per rider (assu
    11·1 answer
  • Consider the scenario below. Will the solution attempted by the technician fix the problem or make it worse? Defend your answer.
    7·1 answer
  • An ip address contains four sets of numbers what are they called
    11·1 answer
  • On the Format tab, which group allows you to select a different font for a chart?
    7·2 answers
  • I love the brainly update guys! :)
    5·2 answers
  • Read the steps in the process of making a video.
    5·2 answers
  • Can anyone fix this code for me?
    8·1 answer
  • Which part of the computer coordinates all computer operations and performs arithmetic and logical operations on data
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!