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
yarga [219]
4 years ago
15

Write a pseudocode algorithm which asks the user to enter a password.if the user enters “NotAtHome” then print “welcome”

Computers and Technology
1 answer:
Olenka [21]4 years ago
6 0
START
pass = INPUT "Please enter the password:"
IF pass = "NotAtHome" THEN
OUTPUT "Welcome"
ELSE
OUTPUT "Wrong password"
END
You might be interested in
Write a program that will prompt the user to enter an integer. The program should square the number and then print the squared n
Kay [80]

Answer:

// here is code in C++.

#include <bits/stdc++.h>

using namespace std;

// function to compute sum and product

void square(int input)

{

   // variable to store the square of number

   long long squ_num;

   calculate the square of number

   squ_num=pow(input,2);

   // print the output

   cout<<"square of "<< input<<" is: "<<squ_num<<endl;

   

}

// driver function

int main()

{

   int n;

   // read the number until user enter 0

   do{

       cout<<"enter a number!! (0 to stop):";

     // read the input from user

       cin>>n;

       // call the function to calculate square of input number

       square(n);

       

   }while(n!=0);

 

return 0;

}

Explanation:

Declare a variable "n" to read the input number from user.Call the function  square() with parameter "n".In this function, it will calculate the square  of the input number and print it.This will repeat until user enter 0 as  input.Program will ends when user give 0 as input.

Output:

enter a number!! (0 to stop):5                                                                                                                                

square of 5 is: 25                                                                                                                                            

enter a number!! (0 to stop):7                                                                                                                                

square of 7 is: 49                                                                                                                                            

enter a number!! (0 to stop):11                                                                                                                              

square of 11 is: 121                                                                                                                                          

enter a number!! (0 to stop):0

3 0
4 years ago
What technology does kroger’s edge technology and amazon’s just walk out technology leverage?.
Pavel [41]
They leverage smart engineering from the best of the best people to make the company more humanly capable of extraordinary measures
4 0
2 years ago
What is a type of machine-to-human communication?
suter [353]
I don’t know what it’s called but it’s where they can speak by moving there eyes
3 0
3 years ago
.Pretend you are ready to buy a new computer for personal use.First, take a look at ads from various magazines and newspapers an
andriy [413]

Answer:

Brainly is not meant to give paragraph answers to large questions.

In a computer (desktop)

There are 8-9 main components to a PC

Motherboard

CPU

GPU (for gamers)

RAM

SSD

HDD

PSU

Cooling fans (for AMD processors stock fans are included)

Case (some fans included)

I personally build my computers (desktops) as its cheaper and I won't have to pay a build fee.

7 0
4 years ago
In terms of computer networking. what is PING?
Andrew [12]
Ping means how much of a delay there is in your connection. The lower the ping, the smaller the delay. This plays an important role in online gaming. If your ping is 350, then your delay is 350ths of a second.

3 0
3 years ago
Other questions:
  • Which protocol would you utilize to upload files to a web server?
    14·1 answer
  • What is the most common threat on the internet? auction fraud illegal software computer viruses hackers?
    14·1 answer
  • Which quality of service (QoS) mechanism provided by the network does real-time transport protocol (RTP) rely on to guarantee a
    13·1 answer
  • In this lab, you will build a system for package delivery services that provides different shipping options with specific price.
    6·1 answer
  • Briefly tell me what a PUT request does
    11·1 answer
  • What is the name of tool
    11·1 answer
  • CSS At-rules provide a way for designers to define "if this, then that" scenarios.
    8·1 answer
  • What are the similarities and differences in Yahoo International<br> Versions?
    11·1 answer
  • How to delete brackets in string java.
    9·1 answer
  • For a list of numbers entered by the user and terminated by 0, find the sum of the positive number and the sum of the negative n
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!