answer.
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
soldi70 [24.7K]
2 years ago
11

If productCost and productPrice are numeric variables, and productName is a string variable, which of the following statements a

re valid assignments? If a statement is not valid, explain why not.
a. productCost =100
b. productPrice= productCost
c. productPrice= productName
d. productiPrice =24.95
e. 15.67= productCost
f. productCost= $ 1,345.52
g. product Cost= productPrice -10
h. productName= "mouse pad"
i. productCost + 20= productPrice
j. productName= 3 -inch natis
k. productName =43
l. productName =" 44 n
m. " 99 "= productName
Computers and Technology
1 answer:
VLD [36.1K]2 years ago
7 0
<h2>Question: </h2>

a. productCost = 100

b. productPrice = productCost

c. productPrice = productName

d. productPrice = “24.95”

e. 15.67 = productCost

f. productCost = $1, 345.52

g. product Cost = productPrice − 10

h. productName = “mouse pad”

i. productCost + 20 = productPrice

j. productName = 3-inch nails

k. productName = 43

l. productName = “44”

m.“99” = productName

Answer:

(a) valid

(b) valid

(c) invalid

(d) valid

(e) invalid

(f) invalid

(g) invalid

(h) valid

(i) invalid

(j) invalid

(k) invalid

(l) valid

(m) invalid

Explanation:

(a) valid. Since productCost is a numerical variable, a value of 100 can be assigned to it.

(b) valid. Both productCost and productPrice are numerical variables and as such value of one can be stored in the other.

(c) invalid. productName is a string variable and cannot be directly assigned to productPrice which is a numeric variable.

(d) valid. productPrice is a numeric variable and 24.95 can be assigned to it.

(e) invalid. 15.67 is not a variable name and as such cannot have values assigned to it.

(f) invalid. $ and , are not numeric digits and as such cannot be assigned to productCost which is numeric.

(g) invalid. There should be no space between product and Cost. It should be productCost and not product Cost.

(h) valid. "mouse pad" is a string literal and can be assigned to productName which is a string variable.

(i) invalid. productCost + 20 is not a variable .

(j) invalid. 3-inch nails should be in quotes for it to be assignable to productName.

(k) invalid. 43 is a numeric literal and cannot be directly assigned to productName which is a string variable. In other words, 43 should be in quotes for it to be assignable to productName.

(l) valid. 44 (in quotes) is a string literal and can be assigned to productName which is a string variable.

(m) invalid. "99" is not a variable name and cannot hold or be assigned any value.

You might be interested in
An intruder with malicious intent breaks into an office and steals a hard drive containing sensitive information about the compa
solong [7]

Answer:

firewalls and encryption

Explanation:

the company placed a firewall and an encryption code to the hard drive as a precaution against theft and malicious intent

3 0
2 years ago
The Tell Me feature also includes access to the _____ feature.
Ierofanga [76]

Answer:

the quick access toolbar can be customized to include additional commands such as. -"tell me what you want to do" box ... custom programs or additional commands that extend the functionality of a Microsoft office program ... in the open window. it also includes ribbon display options and control buttons that enable you to ...

Explanation:

7 0
2 years ago
You have installed a device at the physical layer. All of the systems you connect to this device will talk to each other at the
9966 [12]

Answer: Hub

Explanation:

Hub is a electronic and networking device that is placed in a network to maintain a common link with the multiple attached devices. Hub is situated at the physical layer of the Open systems interconnection(OSI) model.

  • Hub is used for creation of link between numerous local area network sections as it persist various ports which replicates data packet and distributes to other ports.
  • There are different types of hub for different purpose of connection such as USB hub, Ethernet hub etc.  

8 0
2 years ago
Which social network made the mistake of alienating its early adopters by deleting suspicious accounts?​?
mamaluj [8]
<span>Which social network made the mistake of alienating its early adopters by deleting suspicious accounts?
Ryze
Friendster
SixDegrees
Tribe.net
MySpace


The Correct answer is </span>Friendster.
5 0
2 years ago
Which process of the enterprise platform interacts with vendors and manages the entire supply chain for a retail client?
Alik [6]

The options are;

A) Data

B) Front Office

C) Core Processing

D) Experience

Answer:

D) Experience

Explanation:

Under enterprise resource planning platform, experience is the process whereby vendors interact and also manage the entire supply chain link on behalf of a retail client.

Thus, option D is the correct answer

4 0
2 years ago
Other questions:
  • What type of hardware enables users to interact with a computer? Check all that apply. the CPU the hard disk drive the keyboard
    9·2 answers
  • A new company starts up but does not have a lot of revenue for the first year. Installing anti-virus software for all the compan
    11·1 answer
  • Which technology had the same effect in the 1920s as the internet did in the 2000s? the widespread effect of technology 1920s 20
    8·1 answer
  • Static packet filtering firewalls are limited to ________. inspecting packets for which there are good application proxy filteri
    8·1 answer
  • Define a function pyramid_volume with parameters base_length, base_width, and pyramid_height, that returns the volume of a pyram
    12·1 answer
  • The OSI security architecture provides a systematic framework for defining security attacks, mechanisms, and services. True or F
    12·1 answer
  • Ted knows that macros can be helpful to him in his work with Excel spreadsheets,but he also knows they have their hazards,so he
    15·1 answer
  • Assume each student is assigned an advisor from a department. Each classroom is assigned a classroom (class# determines Classroo
    14·1 answer
  • Given positive integer numInsects, write a while loop that prints that number doubled without reaching 200. Follow each number w
    14·1 answer
  • You know that you should check the room for security against unwanted entry do you check locks on doors and windows. What else d
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!