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
djverab [1.8K]
4 years ago
14

What will be the output of the following program? Assume the user responds with a 5.

Computers and Technology
1 answer:
FrozenT [24]4 years ago
4 0

The output will be: You owe $ 15.0

You might be interested in
4.Write a JavaScript program to find if a given word is a palindrome or not. Word is given by user via prompt command.
ad-work [718]

Answer:

Here is the JavaScript program:

function Palindrome(word) {

   return word == word.toLowerCase().split("").reverse().join("") ? true : false; }

inputWord = prompt("Enter a word to check its if its palindrome or not?");  

alert(Palindrome(inputWord));

Explanation:

The function Palindrome takes a word as argument.

 return word == word.toLowerCase().split("").reverse().join("") ? true : false; }

This statement first converts the word, which is a string to lower case letters using toLowerCase() method. Next split() method splits the word string into an array of strings, then reverse() method reverses the this array and join() method joins all the elements of the array back to the string. At last the conditional statement checks if the resultant string (reverse of word) is equal  to the original word (that was input by user). If both the word and its reverse are equal/same then the program outputs true otherwise returns false.

inputWord = prompt("Enter a word to check its if its palindrome or not?");   statement uses prompt command to take input from the user. inputWord holds the word that user enters.

alert(Palindrome(inputWord)); statement calls Palindrome() method by passing the inputWord (word entered by user) to check if the input word is a palindrome or not. alert() method displays an alert box ( a message) with true if the inputWord is a palindrome otherwise it displays false.

4 0
3 years ago
What Windows Server feature provides block-level file replication between storage devices, primarily for the purpose of fault to
Ronch [10]

Answer:

Storage Replica

Explanation:

5 0
3 years ago
In a ____ wrap, information about where the text begins a new line is included with the data field value.
yaroslaw [1]
If my memory serves me well, the answer should be: In a hard wrap, information about where the text begins a new line is included with the data field value. Usually text-editors use hard wrap by default. This means, that hard wrap inserts actual line breaks in the text at wrap points.
4 0
3 years ago
Why is direct compensation important to recruiting and retaining employees?
ruslelena [56]
Because while you might be able to recruit a person new to the job market and underpay them, you won't be able to keep a competitor from hiring them away from you by offering higher wages and benefits. If you are not fair in what you are paying people won't want to work for you.
4 0
3 years ago
In this lab, you will implement your own dynamic memory allocator (heap manager) in C. We will use the simple (but somewhat inef
Vera_Pavlovna [14]

Answer:

#include <stdio.h>

#include <stdlib.h>

 

int main()

{

   int *iVar;

   char *cVar;

   float *fVar;

     

   /*allocating memory dynamically*/

     

   iVar=(int*)malloc(1*sizeof(int));

   cVar=(char*)malloc(1*sizeof(char));

   fVar=(float*)malloc(1*sizeof(float));

     

   printf("Enter integer value: ");

   scanf("%d",iVar);

     

   printf("Enter character value: ");

   scanf(" %c",cVar);

     

   printf("Enter float value: ");

   scanf("%f",fVar);

     

   printf("Inputted value are: %d, %c, %.2f\n",*iVar,*cVar,*fVar);

     

   /*free allocated memory*/

   free(iVar);

   free(cVar);

   free(fVar);

 

   return 0;

}

5 0
3 years ago
Other questions:
  • Which is an example of intrinsic motivation?
    13·2 answers
  • Select the correct answer.
    6·1 answer
  • There is only one way to open, save, or close documents in Microsoft Word. true or false
    15·2 answers
  • An operating system coordinations the___ of a computers operation
    8·1 answer
  • In which client/server relationship can a computer act as both a client AND a server? Select one: a. X-Windows b. SSH c. Classic
    8·1 answer
  • Hai<br> ill give 100 point if some won answers dis
    14·2 answers
  • Can't get Brainly to load on my Apple Mac. Why won’t it load? Does it need another program to work?
    14·2 answers
  • Only one person can receive the same email at the same time true or false
    10·1 answer
  • Which of these is a physical health benefit provided by playing team sports? A. a spiritual connection to others B. lower choles
    5·2 answers
  • A puppy weighed 6 ounces at birth. After two weeks, the puppy weighed 14 ounces. How much did the puppy gain? Model the equation
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!