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
emmasim [6.3K]
3 years ago
8

Implemente a função ao lado, que recebe um preço e um booleano indicando se já está com desconto ou não. Se o preço for maior qu

e 100 e não estiver com desconto, a função deve retornar Quero pechinchar. Caso contrário, deve retornar Negócio fechado.
isso é javascript, se estiver algum deus da programação me ajude eu travei nesse exercicio <3
Computers and Technology
1 answer:
Andrew [12]3 years ago
7 0

Answer:

function pecoDesconto(preco, estaComDesconto) {

 

 let p = preco;

 let desconto = estaComDesconto;

 if(p > 100 && desconto == false){

   return "Quero pechinchar";

 }else{

   return "Negócio fechado";

 }

}

Explanation:

function pecoDesconto(preco, estaComDesconto) {

 

 // Implemente a função ao lado, que recebe um preço//

 let p = preco;

// variavel que indica desconco//

 let desconto = estaComDesconto;

//Se o preço for maior que 100 e não estiver com desconto, a função deve retornar Quero pechinchar.//

 if(p > 100 && desconto == false){

   return "Quero pechinchar";

   //Caso contrário, deve retornar Negócio fechado

 }else{

   return "Negócio fechado"

 }

}

só te faltou ler com atenção, e um pouco de logica!

You might be interested in
In the value chain concept, upgrading IT is considered what kind of activity?
ANTONII [103]

Answer:

Upgrading IT is considered as B. Support activity

Explanation:

It is considered as support activities because they help the primary activities move smoothly and consistently.

For example, efficient communication between a particular firm and its subsidiaries will be extremely difficult without the necessary IT infrastructure, which will slow down the primary activities that are to be carried out.

6 0
3 years ago
Which of the following describes the main purpose of a model?
nalin [4]

Answer:

to demonstrate how something works.

Explanation:

hope it helps Brainlist?

8 0
3 years ago
According to your course, two benefits of a cloud-based system are _____ and _____. A. offline storage; easy etiquette B. data b
Tanzania [10]
Data backup and collaboration
8 0
4 years ago
Read 2 more answers
A _____ describes the actual processes of entering, verifying, and storing data; the physical layout of data files and sorting p
DaniilM [7]

Answer: c)  Physical design

Explanation:

Physical design in terms of computation is defined as the model through which internal entities as well as external entities of system is depicted and displayed.The motion of the service and data flow taking place , storage of information, physical structure ,data conversion etc is described through physical design.

  • Other options are incorrect because qualitative design gives evaluation about quality layout. Quantitative design is based on quantity to display the layout.
  • Logical design is designing of the system through applying logic and order to arrange the data to establish relationship between system components.
  • Thus, the correct option is option(c).

5 0
4 years ago
How do I install another part on campaign call of duty cold war? please help.(best answer will get branliest.
SVEN [57.7K]

Answer:

I do not think that is is a study question

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • The Hazard Communication Standard, commonly called the “Right-to-Know” law, gives you the right to know what information?
    10·1 answer
  • In which stage of the SDLC is it most appropriate to use prototyping?
    6·2 answers
  • Dead state is the name of the time delay in a cpu caused by differences between the speed of the cpu and ram.
    15·1 answer
  • What is output by the following C# code segment?int temp;temp = 180;while ( temp != 80 ) {if ( temp &gt; 90 ) {Console.Write( "T
    7·1 answer
  • A group of cells is called a<br><br> Excel
    5·1 answer
  • According to the narrator of "EPIC 2015," what is the nature of the news in 2015? A. It is fed to a monitor in people's homes an
    8·1 answer
  • Janice’s grandmother stayed at home and took care of her family while her grandfather worked. Today Janice lives on her own and
    15·2 answers
  • 1110011*110011 binary multiplication
    9·2 answers
  • 4. Arnold curates articles that feature trending lists for an online website. His department is responsible
    5·1 answer
  • What should a pie chart represent?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!