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
Anvisha [2.4K]
3 years ago
8

Hi there! I am writing a code to make a square using a drone, however I’m having trouble doing so. The website that I’m writing

code for my is called: robolink.com/blocky I was wondering if someone could help me write the code.
(Use senior mode)
Computers and Technology
1 answer:
Jlenok [28]3 years ago
3 0

Answer:

i might

Explanation:

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
Write an expression that will print "in high school" if the value of user_grade is between 9 and 12 (inclusive).
Free_Kalibri [48]

In python:

if 8 < user_grade < 13:

   print("in high school")

You would just need to supply the value of the user_grade variable.

7 0
3 years ago
Nonverbal communication includes _____.
aliya0001 [1]

Answer:

i think the answer is body language

Explanation:

body language is non-verbal

8 0
3 years ago
Read 2 more answers
Alice is adding a chart in a spreadsheet. Which option will allow her to give the chart a suitable title and subtitle?
jek_recluse [69]
It's D.Chart elements 
6 0
3 years ago
Read 2 more answers
Software on the nas handles features such as data storage, file access, and file and storage management. true or false
Alexus [3.1K]
True! pretty sure :D
7 0
3 years ago
Read 2 more answers
Other questions:
  • Gina is upgrading your computer with a new processor. She installs the processor into your motherboard and adds the cooling syst
    5·2 answers
  • Ella has finished drafting her presentation. What should she do next?
    6·2 answers
  • For most applications, saving sound files at the _____ bit resolution provides a good balance of sound quality and file size.
    15·2 answers
  • Which data type structures best for insersion/ removal - Stack, linked list, queue?
    15·1 answer
  • What role/service is windows 2012 server backup part of?
    5·1 answer
  • Hello! I hope you have a great day! Good things will come your way.
    12·1 answer
  • I WILL GIVE MOST BRAINLY
    13·1 answer
  • tiny electrical paths to connect everything together is called ? A. graphic card B. audio card C. CPU D. Motherboard
    6·1 answer
  • Draw a circuit with a 12-volt battery and two resistors(100 ohms and 200 ohms) in parallel. What is the total resistance of the
    14·1 answer
  • By the mid-1990s, how did revenue generated from video games compare to revenue generated from movies?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!