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
hammer [34]
2 years ago
7

So I tried asking for help with my code on stackoverflow but the people there were very condescending and mean plus my questions

got blocked because my code wasn't right and people kept down-voting me so I'm asking here
def main():
int(float('01001110 01100101 01110110 01100101 01110010 00100000 01110000 01110101 01110100 00100000 01101111 01100110 01100110 00100000 01110101 01101110 01110100 01101001 01101100 00100000 01110100 01101111 01101101 01101111 01110010 01110010 01101111 01110111 00100000 01110111 01101000 01100001 01110100 00100000 01100011 01100001 01101110 00100000 01100010 01100101 00100000 01100100 01101111 01101110 01100101 00100000 01110100 01101111 01100100 01100001 01111001 00100000 01100010 01100101 01100011 01100001 01110101 01110011 01100101 00100000 01110100 01101111 01101101 01101111 01110010 01110010 01101111 01110111 00100000 01101101 01100001 01111001 00100000 01100010 01100101 00100000 01100001 01101110 00100000 01100101 01110110 01100101 01101110 00100000 01100010 01110101 01110011 01101001 01100101 01110010 00100000 01100100 01100001 01111001')
ord('Never put off until tomorrow what can be done today because tomorrow may be an even busier day')
message = input("decode the message")
main()

anyone know how to fix this code I'm having issues specifically with line 3
Computers and Technology
1 answer:
MaRussiya [10]2 years ago
7 0

Answer:

01001110 01100101 01110110 01100101 01110010 00100000 01110000 01110101 01110100 00100000 01101111 01100110 01100110 00100000 01110101 01101110 01110100 01101001 01101100 00100000 01110100 01101111 01101101 01101111 01110010 01110010 01101111 01110111 00100000 01110111 01101000 01100001 01110100 00100000 01100011 01100001 01101110 00100000 01100010 01100101 00100000 01100100 01101111 01101110 01100101 00100000 01110100 01101111 01100100 01100001 01111001 00100000 01100010 01100101 01100011 01100001 01110101 01110011 01100101 00100000 01110100 01101111 01101101 01101111 01110010 01110010 01101111 01110111 00100000 01101101 01100001 01111001 00100000 01100010 01100101 00100000

Explanation:

You might be interested in
Which of the following SQL statements will display all customers who have not recently placed an order? a. SELECT customer# FROM
JulsSmile [24]

Answer:

The correct option is option 4 from the options indicated below:

Explanation:

The options are as given below

1-SELECT customer# FROM customers

UNION

SELECT customer# FROM orders;

2-SELECT customer# FROM orders

MINUS

SELECT customer# FROM customers;

3-SELECT customer# FROM orders

INTERSECT

SELECT customer# FROM customers;

4-SELECT customer# FROM customers

MINUS

SELECT customer# FROM orders;

Option 1 is not correct as it will provide the list of all the customers whether they have placed order or not.

Option 2 is not correct as it will provide the list of customers who have placed order but are not in the customers table. This will return the empty records.

Option 3 is not correct as it will provide the list of customers who have placed the order.

Option 4 is correct as it will provide the list of customers from the CUSTOMERS table which are not in the Orders table. thus the list of customers who have not placed the order yet.

3 0
3 years ago
Write the definition of a method named countPos that receives a reference to a Scanner object associated with a stream of input
NNADVOKAT [17]

Answer:

Here is the method countPos    

  static int countPos(Scanner input){ //method that takes a reference to a Scanner object

   int counter=0;  // to count the positive integers  

   int number; //to store each integer value

   if(input.hasNextInt()){ //checks if next token in this scanner input is an integer value

       number=input.nextInt(); //nextInt() method of a Scanner object reads in a string of digits and converts them into an int type and stores it into number variable

       counter=countPos(input); //calls method by passing the Scanner object and stores it in counter variable

       if(number>0) //if the value is a positive number

           counter++;    } //adds 1 to the counter variable each time a positive input value is enountered

   else    { //if value is not a positive integer

       return counter;    } //returns the value of counter

   return counter; } //returns the total count of the positive numbers

Explanation:

Here is the complete program:

import java.util.Scanner; //to take input from user

public class Main { //class name

//comments with each line of method below are given in Answer section

static int countPos(Scanner input){

   int counter=0;

   int number;

   if(input.hasNextInt()){

       number=input.nextInt();

       counter=countPos(input);

       if(number>0)

           counter++;    }

   else    {

       return counter;    }

   return counter; }

public static void main(String[] args) { //start of main function

       System.out.println("Number of positive integers: " + countPos(new Scanner(System.in)));  } } //prints the number of positive integers by calling countPos method and passing Scanner object to it

The program uses hasNextInt method that returns the next token (next input value) and if condition checks using this method if the input value is an integer. nextInt() keeps scanning the next token of the input as an integer. If the input number is a positive number then the counter variable is incremented to 1 otherwise not. If the use enters anything other than an integer value then the program stops and returns the total number of positive integers input by the user. This technique is used in order to avoid using any loop. The program and its output is attached

3 0
3 years ago
As a technical support rep, michael is responding to a customer's question sent to him via e-mail. what should michael's first t
hoa [83]

As a technical support rep, Michael's first task will be option b: Determine the purpose of the message he will send as a response.

<h3>Who is a technical support rep?</h3>

The role or duty of a Technical Support is known to be any person that tends to troubleshoot customer tech issues.

Note that they are said to be people who often resolve issues that are linked to computers, phones, tablets, and others.

Therefore, As a technical support rep, Michael's first task will be option b: Determine the purpose of the message he will send as a response.

Learn more about technical support  from

brainly.com/question/27366294
#SPJ1

See option

a. conduct any necessary research

b. determine the purpose of the message he will send as a response

c. Hit the "reply" button

d. start composing his reply

7 0
1 year ago
STEAM game launcher question.
son4ous [18]

Answer:

Try to look up csgo map maker and you might be able to transfer the file

Explanation:

4 0
3 years ago
I damaged a k12 laptop. do I have to pay for the damage? and if so how much?
Gnesinka [82]

You explain your situation, they send you a new computer, then mail to them the broken computer and later pay a $200-350 dollar fee. I think it depends on how much damage you made to it.

5 0
3 years ago
Other questions:
  • A type of touch screen that can be up to four feet by six feet is a(n) _____. plasma screen multitouch interface Electronic Pape
    10·2 answers
  • In the lan protocol architecture the _________ layer is responsible for detecting errors and discarding any frames that are in e
    13·1 answer
  • Templates allow for the quick creation of _____.
    7·1 answer
  • Create a dictionary named letter_counts that contains each letter and the number of times it occurs in string1. Challenge: Lette
    14·1 answer
  • This common technique, employed at the edge of a network, eliminates the need for public IP addresses on a private network while
    8·1 answer
  • Tammy is preparing to give a presentation. she would like to view information that will remind her what to say to her audience b
    10·1 answer
  • Data governance consists of? A. the processes, methods, and techniques to ensure that data is of high quality, reliable, and uni
    11·1 answer
  • Which of the following instruments are used when performing a high-rate discharge test on a storage battery
    7·1 answer
  • Fact about energy that will make a knex car move
    7·2 answers
  • Algorithm to eat orange<br><br>​
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!