In C++ Write a program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in reverse binary. For an integer x, the algorithm is:

As long as x is greater than 0
Output x % 2 (remainder is either 0 or 1)
x = x / 2
Note: The above algorithm outputs the 0's and 1's in reverse order.

Ex: If the input is:

6
the output is:

011
6 in binary is 110; the algorithm outputs the bits in reverse.

Answers

Answer 1

A program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in reverse binary is given below:

The Program

class Solution {

 public static String reverse _ binary ( int x ) {

   String result = " " ;

   while (x > 0) {

     result + = x % 2 ;

     x / = 2;

   }

   return result;

 }  

public static void main(String[] args){

   int x = Integer.parseInt(args[0]);

  System.out.println(reverse_binary(x));

 }

}

Parameters for the Program

For an integer x, the algorithm is:

As long as x is greater than 0

Output x % 2 (remainder is either 0 or 1)

x = x / 2

Note: The above algorithm outputs the 0's and 1's in reverse order.

Ex: If the input is:

6

the output is:

011

6 in binary is 110; the algorithm outputs the bits in reverse.

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1


Related Questions

State two differents between website and webpage.​

Answers

Answer:

The webpage is a single document on the web using a unique URL, while a website is a collection of multiple webpages in which information on a related topic or another subject is linked together under the same domain address.

Explanation:

How is blockchain different from traditional database models?


Blockchain can lead to increased transparency and trust in data, ultimately driving more innovation, improved productivity, and quality.


Blockchain prohibits transparency by redefining the fundamental nature of business ecosystems and business flows.


Blockchain provides multiple versions of the data that can be kept by individual entities.


Blockchain increases innovation; however, it decreases productivity and quality.


I don't know this yet.

Answers

The difference between blockchain and traditional database models is that:  C. Blockchain provides multiple versions of the data that can be kept by individual entities.

What is a database?

A database simply refers to an organized and structured collection of data that're stored on a computer system as a backup and they're usually accessed electronically.

What is a blockchain?

A blockchain can be defined as a digital and dynamic financial system that is designed and developed to be used in recording and maintaining transactions that are associated with or made through the use of a bitcoin, usually as a database.

In this context, we can infer and logically deduce that unlike the traditional database models, blockchain is designed and developed to provide multiple versions of financial transactions (data), and they can also be kept by individual business entities.

Read more on blockchain here: brainly.com/question/25700270

#SPJ1

case study on leading entrepreneur of goa

Answers

Answer:

goa is in india

Explanation:

Comparator method compare should return ________ if the first argument is greater than the second argument. a positive int value. zero. a negative int value. a String.

Answers

Comparator method compare should return option A: positive int value if the first argument is greater than the second argument.

What is a positive int?

The counting numbers or natural numbers, which are sometimes known as the positive integers, are said to be the numbers  such as 1, 2, 3, and a lot more. Note that any figure that is said to be higher than zero is one that is  considered positive.

Therefore, If an integer is more than zero, it is said to be positive; otherwise, one can say that it is negative. Zero is known to be characterized as being neither positive nor can it be known as negative.

Learn more about positive value from

https://brainly.com/question/25828920
#SPJ1

1. To partition and format a hard drive when no operating system has been installed, you may use either _______________ or _______________ to boot the system and run disk setup utilities.

Answers

To partition and format a hard drive when no operating system has been installed, you may use either GParted or Windows installation media to boot the system and run disk setup utilities.

What is a hard drive?

A hard drive simply refers to an electro-mechanical, non-volatile data storage device that is made up of magnetic disks (platters) that rotates at high speed.

What is a partition?

Partition can be defined as a terminology which is used to describe the division of a hard-disk drive into two or more fragments.

In Computer technology, GParted or Windows installation media should be used to boot a computer system and run disk setup utilities, especially when you wish to partition and format a hard drive when there is no operating system (OS) installed.

Read more on hard drive partition here: brainly.com/question/14987710

#SPJ1

Complete Question:

To partition and format a hard drive when no operating system has been installed, you may use either__ or __ to boot the system and run disk setup utilities.

Please choose from a list of words:

basic disk

chkdsk

defragmentation

Disk Cleanup

Disk Management

dynamic disk

Error-checking

format

GParted

partition

volumes

Windows installation media

Question 6 of 20:
Select the best answer for the question.
6. You can
to keep one area of a worksheet static while you scroll to a different area within the same worksheet.
A. freeze panes
O B. use the Zoom slider
O C. create a bookmark
O D. highlight a cell range

Answers

Answer:

A. freeze panes

Explanation:

What happens when the condition is met in this program?
on start
set count to
while
do
count
play sound ba ding
change count by
pause 1000 ms
OA. The count is changed by 2.
OB. The count starts over.
C. A sound effect is played.
OD. The game pauses for 2 seconds.

Answers

In the given program, if the condition is met, the sound effect will be played. The correct option is C.

What is programming?

The development of individual pieces of software that allow the entire system to function as a single unit is referred to as systems programming.

Many layers are involved in system programming, including the operating system (OS), firmware, and development environment.

A "While" Loop is used to iterate over a specific block of code until a condition is met.

In the given scenario, the condition is that when the number is less or equal to 2, then the sound effect will be played else, the program will reset.

Thus, the correct option is C.

For more details regarding programming, visit:

https://brainly.com/question/11023419

#SPJ1

Answer:

C. a sound affect is played

trust me i just did it

2.3.2

Explanation:

Parallel Computing and Distributed Computing
Sequential computing has been great, but computer scientists need every speed and storage advantage they can get. Clever computer scientists have found even more efficient ways to use computer hardware for certain types of problems.

parallel Computing
Parallel computing ​is the use of a computer that performs multiple instructions at the same time. The programs used for parallel computing must be designed so they can be broken down into smaller independent parts that each processor can work on.

Parallel computing uses multiple computing cores. A computing core​ is one processor in the CPU. Parallel computers will have many different processors in their CPUs instead of just one.

Speedup in Parallel Computing
The advantage of a parallel computing solution over a sequential computing solution can be measured in speedup. Speedup​ is the amount of time used to perform a task with sequential computation divided by the amount of time used to perform the same task with parallel computation.

For example, imagine that you run a program on a sequential computer and it takes 10 minutes to complete. Next, you run the same program on a parallel computer and it takes 5 minutes to complete. You would divide the 10 by the 5 and come up with a speedup of 2. This means your program is two times faster on a parallel computer.

Distributed Computing
Many computer problems are so complex that they take an extremely long time to run on one computer. Distributed computing​ is the use of multiple computers to solve a problem. Distributed computing is like parallel computing but with many different computers; parallel computing is the use of one computer with many different processors.

QUESTION:
A program takes 10 minutes to compute sequentially and has a speedup of 2 on a parallel computer, meaning it takes how many minutes. ??

Answers

Answer:

5 minutes

Explanation:

It is there in the section on Speedup in Parallel Computing

For example, imagine that you run a program on a sequential computer and it takes 10 minutes to complete. Next, you run the same program on a parallel computer and it takes 5 minutes to complete. You would divide the 10 by the 5 and come up with a speedup of 2

3 Write a program that asks the user to enter a number of seconds.
3.a There are 86400 seconds in a day. If the number of seconds entered by the user is greater than or equal to 86400, the program should display the number of days in that many seconds.
3.b There are 3600 seconds in an hour. If the number of seconds entered by the user is less than 86400 but is greater than or equal to 3600, the program should display the number of hours in that many seconds.
3.c There are 60 seconds in a minute. If the number of seconds entered by the user is less than 3600 but is greater than or equal to 60, the program should display the number of minutes in that many seconds.


in C++

Answers

In this exercise we have to use the knowledge of C++ to write a program that is possible that asks the user to enter a number of seconds.

Writting the code:

#include <iostream>

#include <string>

using namespace std;

int main() {

  int n;

  cout<<"Time Calculator"<<endl;

  cout<<"Enter the seconds you would like to calculate into days, hours, minutes: ";

  cin>>n;

 

  cout<<n<<" seconds have:"<<endl;

  cout<<"\t"<<(n/(24*60*60))<<" day(s)"<<endl;

  n = n % (24*60*60);

  cout<<"\t"<<(n/(60*60))<<" hours(s)"<<endl;

  n = n % (60*60);

  cout<<"\t"<<(n/(60))<<" minutes(s)"<<endl;

  n = n % (60);

  cout<<"\t"<<(n)<<" seconds(s)"<<endl;

  return 0;

}

See more about C++ at brainly.com/question/19705654

#SPJ1

The government announces plans to create more accurate maps of a remote mountain range. This is good news for people in what line of work?

A.
architecture

B.
human resources management

C.
surveying

D.
cryptocurrency management

Answers

Creating more accurate maps of a remote mountain range would be a good news for people in this line of work: C. surveying.

What is a topographic map?

A topographic map can be defined as a type of map which contains an accurate and detailed graphical (two-dimensional) description, representation or records of both natural and man-made (artificial) features on the surface of planet Earth such as the following:

PlainsValleyMountainHillsPlateau

Generally speaking, surveying typically involves an examination and record of various information about the geographical area, landforms, and features of a particular region, especially through the use of maps.

Read more on topographic map here: https://brainly.com/question/181146

#SPJ1

Translate the following C program to Pep/9 assembly language.
#include
const int limit = 5;
int main() {
int number;
scanf("%d", &number);
while (number < limit) {
number++;
printf("%d ", number);
}
return 0;
}

Answers

The translation of the C program will be:

BR main

limit: .EQUATE 5 ; constant

number: .BLOCK 2 ; local variable #2d

main: DECI number,d ; scanf("%d", &number)

while: LDWA number,d ; if (number < limit) exit loop

CPBA limit, i

BRGE endWh

ADDA 1,i ; number++

STWA number,d

BR while

endWh: DECO number,d ; printf("%d", number)

STOP

.END

What is c program?

It should be noted that because it may be used for low-level programming, C language qualifies as a system programming language (for example driver and kernel).

Usually, it is used to develop hardware components, operating systems, drivers, kernels, etc. The C-based Linux kernel is one example. It cannot be used to program for the internet like Java,.Net, PHP, etc.

Learn more about program on:

https://brainly.com/question/15683939

#SPJ1

What method of accessing a scaffold is unsafe and should never be used

Answers

Answer:

blocks, bricks, walk boards

Explanation:

3) Which of the following would not impact the digital divide?
Expansion of free wifi connectivity in major cities
Legislation allowing communications companies to charge per website for access
O Less sharing of the work we produce
A decline in the price of internet access

Answers

A factor which would not impact the digital divide is: less sharing of the work we produce.

What is the digital divide?

The digital divide simply refers to a terminology which is used to describe the gap (vacuum) which typically exist between the group of people (the information rich and the information poor) who have unrestricted access to digital technology and those who are unable to access it.

This ultimately implies that, a digital divide is mostly influenced by the fact that legislation allow communications firms to charge end users (customers) per website for access and some parents being fond of limiting the amount of time their children spend using computing devices or the Internet.

Read more on digital divide here: https://brainly.com/question/14896873

#SPJ1

need help for checking if wrong please help me correct it.The first question (iii) how to do?​

Answers

Answer:

Answer to ((iii))
total = number1 + number2;

All the rest look great

Explanation:

can helpppppppppppppp​

Answers

Answer:

#include <stdio.h>

int main(){

   float score, totalScore = 0.0;

   int count = 1;

   

   printf("Enter marks for Student %d (or -1 to stop): ", count);

   scanf("%f", &score);

   while (score != -1){

       count++;

       totalScore += score;

       

       printf("Enter marks for Student %d (or -1 to stop): ", count);

       scanf("%f", &score);

       

   }

   printf("Number of students: %d\n", count-1);

   printf("Average: %.2f\n", totalScore/(count-1));

   

}

Explanation:

code for computer need a master code for it.

Answers

Answer:

Binary code comprises a series of zeros and ones, used to communicate instructions. This code is a low-level programming language. Each digit in a coded sequence connects to a switch in your computer.

programming languages are used for giving instructions to computers

Answers

Programming languages are used for giving instructions to computers is a true statement.

Do programming languages give computer instructions?

Using computer programming languages, we can communicate with a computer in a language that it can understand.

There are numerous computer programming languages available that programmers can use to interact with a computer, just as there are numerous human-based languages.

Therefore, a programming language is seen as a set of rules that tends to  gives the computer instructions on what actions to take. There are a lot of programming languages; some examples are BASIC, COBOL, and others.

Learn more about Programming languages from

https://brainly.com/question/16936315
#SPJ1

programming languages are used for giving instructions to computers. True/false

How is a high-level programming language compiled? (5 points)

All lines of code are translated together and then executed at once.

this is the correct answer
True
False

Answers

The way in which a high-level programming language is compiled is: A. All lines of code are translated together and then executed at once.

What is programming?

Programming simply refers to a process through which software developer and computer programmers write a set of instructions (codes) that instructs a software on how to perform a specific task on a computer system.

What is a compiler?

A compiler can be defined as a software program that is designed and developed to translate the entire source (all lines) code of a program all at once, in order to produce an object code.

This ultimately implies that, a compiler translates all lines of code of a software program that is written in a high-level programming language into low-level programming language (machine language) and then executed at once.

Read more on compiler here: https://brainly.com/question/27049042

#SPJ1

Complete Question:

How is a high-level programming language compiled?

A. A binary interpreter is used to translate each line of code.

B. All lines of code are translated together and then executed at once.

C. One line of code is translated and then executed before moving to the next line.

D. Six lines of code are translated and then executed before moving to the next set of six.

Which of the following would not impact the digital divide

Answers

The answer choice that would not impact the digital divide is b. Less sharing of the work we produce

What is Digital Divide?

This refers to the term that is used to describe the wide gap between people who have access to internet and technology in relation to those who do not have such access.

Hence, we can see that from the complete question, there are four answer choices given and each one of them includes an option that would actually impact this digital divide such as:

a. A decline in the price of internet accessc. Expansion of free wifi connectivity in major citiesd. Legislation allowing communications companies to charge per website for access

However, it is important to note that critically looked at, one can see that the answer that would NOT impact the issue of digital divide is actually the topic and issue of Less sharing of the work we produce which is actually option B.

Read more about digital divide here:

https://brainly.com/question/14896873

#SPJ1

The complete question is:

Which of the following would not impact the digital divide?

a. A decline in the price of internet access

b. Less sharing of the work we produce

c. Expansion of free wificonnectivity in major cities

d. Legislation allowing communications companies to charge per website for access

Marixa has recently discovered that she loves to sing. Even though she hasn’t had any formal vocal training, singing comes naturally to her, and she wows others with her performances. What would a career counselor call this new discovery?

A.
a soft skill

B.
an expertise

C.
an academic skill

D.
aAn aptitude

Answers

Answer:

an aptitude

Explanation:

she has been adapting to her singing voice

When we work on projects with others, we:
OA. are exposed to new possibilities.
OB. rely only on our own creativity.
O C. can take all the credit ourselves.
D. tend not to learn anything at all.

Answers

A makes the most sense

In this lab, you complete a partially written C++ program that includes a function that returns a value. The program is a simple calculator that prompts the user for two numbers and an operator ( +, -, *, or / ). The two numbers and the operator are passed to the function where the appropriate arithmetic operation is performed. The result is then returned to the main() function where the arithmetic operation and result are displayed. For example, if the user enters 3, 4, and *, the following is displayed: 3 * 4 = 12


The source code file provided for this lab includes the necessary variable declarations and input and output statements. Comments are included in the file to help you write the remainder of the program.


Instructions

1. Write the C++ statements as indicated by the comments.

2. Execute the program by clicking the Run button at the bottom of the screen.


The output works but I get 5 errors. I get a declared performOperation() error, and then I'm getting a Division, Multiplication, Addition and Subtraction error.

Code:

// Calculator.cpp - This program performs arithmetic, ( +. -, *. / ) on two numbers.

// Input: Interactive

// Output: Result of arithmetic operation


#include

#include


using namespace std;


// Write performOperation() function declaration here


int performOperation(double numberOne, double numberTwo, string op);

int main()

{

double numberOne, numberTwo;

string operation;

double result;

cout << "Enter the first number: ";

cin >> numberOne;

cout << "Enter the second number: ";

cin >> numberTwo;

cout << "Enter an operator (+.-.*,/): ";

cin >> operation;


// Call performOperation method here


result = performOperation(numberOne,numberTwo,operation);

cout << numberOne;

cout << " " << operation << " ";

cout << numberTwo;

cout << " = ";

cout << result << endl;

return 0;

} // End of main() function


// Write performOperation function here

int performOperation(double numberOne, double numberTwo,std::string(op)){

double result;

if (op == "+")

result = numberOne + numberTwo;

else if (op == "-")

result = numberOne - numberTwo;

else if (op == "*")

result = numberOne*numberTwo;

else if (op == "/")

result = numberOne/numberTwo;

else

cout<<"Wrong input. Please try again.";

return result;

}

Answers

Using the knowledge in computational language in C++ it is possible to write a code that  is a simple calculator that prompts the user for two numbers and an operator. The two numbers and the operator are passed to the function where the appropriate arithmetic operation is performed.

Writting the code:

#include <iostream>

#include <string>

using namespace std;

double performOperation(double num1, double num2,

string opt);

int main()

{

double numberOne, numberTwo;

string operation;

double result;

cout << "Enter the first number: ";

cin >> numberOne;

cout << "Enter the second number: ";

cin >> numberTwo;

cout << "Enter an operator (+.-.*,/): ";

cin >> operation;

result = performOperation(numberOne, numberTwo,

operation);

cout << numberOne;

cout << " " << operation << " ";

cout << numberTwo;

cout << " = ";

cout << result << endl;

return 0;

}

double performOperation(double num1, double num2,

string opt)

{

double res = 0.0;

if(opt == "+")

{

res = num1 + num2;

}

else if(opt == "-")

{

res = num1 - num2;

}

else if(opt == "*")

{

res = num1 * num2;

}

else if(opt == "/")

{

res = num1/num2;

}

return res;

}

See more about C++ at brainly.com/question/19705654

#SPJ1

What was the name of the switches used in second generation computers.

Answers

Answer: search on web it’s faster than brainly

Explanation:

Question 11 Which one of the following is an infinite loop?
A. for i in range(-1):
print(i)
B. X=10
while x <= 10:
x=x-1
print (x)
C. for I in range (10):
print (I -10)
D. none of the above

Answers

Answer:

B.

x=10

while x <= 10:

    x=x-1

Explanation:

Since x starts at 10 and keeps decreasing, its value will be always less than 10 so the loop will never end

what is mouse spealing

Answers

Answer:

use a mouse to move or position a cursor on computer screen

Explanation:

mouse cursor

What type of chart is a Clustered Column - Line chart?
a. Scatter chart
b. Combo chart
c. Stacked chart
d. Radar chart

Answers

The correct answer is combo chart so B

Write code that assigns valuesSum with the sum of all user inputs, while user input is less than 0. please help it keep saying im entering code wrong

Answers

Answer:

"""Write code that assigns values Sum

with the sum of all user inputs,

while user input is less than 0"""

sum = 0 #accumulator variable

# asks for user input converts to float number

num = float(input("Enter the next number to total(negative number to quit): "))  

# loop as long as number is 0 or positive

while (num >= 0):

   # add this number to accumulator sum

   sum += num      

   

   # since we are inside the loop we have to ask for the next one here

   num = float(input("Enter a number to total(negative number to quit): "))

                                                                           

print("Sum of all the numbers entered is ", sum)    

Explanation:

3.8.3 means that it is Python

Python code to compute sum as a running total and print it out as long as user does not enter a negative number

Accumulator variable sum keeps a running total

I have also attached a text file containing the code

Explain keyboard and it’s layout and how to type with a keyboard
List the function of keyboard in typing
Describe process of use of keyboard for typing

Answers

It depends on the country and the layout of the keyboard for example the French keyboard is different to the English keyboard. A keyboard's primary function is to act as an input device. Using a keyboard, a person can type a document, use keystroke shortcuts, access menus, play games and perform a variety of other tasks.

Write a recursive function encode that takes two Strings as an input. The first String is the message
to be encoded and the second String is the key that will be used to encode the message. The function
should check if the key and message are of equal length. If they are not the function must return the
string “Key length mismatch!” Otherwise the function must get the ASCII value of each character in
the key string and check if it is divisible by 2 if it is then the respective character in the message will be
encoded by getting the ASCII value of that character and adding 5. If corresponding key character it is
not divisible by 2 then 3 is added instead.

Answers

A recursive function that encodes that takes two Strings as input. The first String is the message to be encoded and the second String is the key that will be used to encode the message is given below:

The Recursive Function in C++

// C++ program to decode a string recursively

// encoded as count followed substring

#include<bits/stdc++.h>

using namespace std;

// Returns decoded string for 'str'

string decode(string str)

{

   stack<int> integerstack;

   stack<char> stringstack;

   string temp = "", result = "";

   // Traversing the string

   for (int i = 0; i < str.length(); i++)

   {

       int count = 0;

       // If number, convert it into number

       // and push it into integerstack.

       if (str[i] >= '0' && str[i] <='9')

       {

           while (str[i] >= '0' && str[i] <= '9')

           {

               count = count * 10 + str[i] - '0';

               i++;

           }

           i--;

           integerstack.push(count);

       }

       // If closing bracket ']', pop element until

       // '[' opening bracket is not found in the

       // character stack.

       else if (str[i] == ']')

       {

           temp = "";

           count = 0;

           if (! integerstack.empty())

           {

               count = integerstack.top();

              integerstack.pop();

           }

           while (! stringstack.empty() && stringstack.top()!='[' )

           {

               temp = stringstack.top() + temp;

               stringstack.pop();

           }

           if (! stringstack.empty() && stringstack.top() == '[')

               stringstack.pop();

           // Repeating the popped string 'temo' count

           // number of times.

           for (int j = 0; j < count; j++)

               result = result + temp;

           // Push it in the character stack.

           for (int j = 0; j < result.length(); j++)

               stringstack.push(result[j]);

           result = "";

       }

       // If '[' opening bracket, push it into character stack.

       else if (str[i] == '[')

       {

           if (str[i-1] >= '0' && str[i-1] <= '9')

               stringstack.push(str[i]);

           else

           {

               stringstack.push(str[i]);

               integerstack.push(1);

           }

       }

       else

           stringstack.push(str[i]);

   }

   // Pop all the element, make a string and return.

   while (! stringstack.empty())

   {

       result = stringstack.top() + result;

       stringstack.pop();

   }

   return result;

}

// Driven Program

int main()

{

   string str = "3[b2[ca]]";

   cout << decode(str) << endl;

   return 0;

}

Read more about recursive functions here:

https://brainly.com/question/489759

#SPJ1

What would the code for this be?
The language used is Python.
Please help.

Answers

Python, one of the most popular programming languages in the world, has created everything from Netflix’s recommendation algorithm to the software that controls self-driving cars. Python is a general-purpose language, which means it’s designed to be used in a range of applications, including data science, software and web development, automation, and generally getting stuff done.

What is Python?

Python is a computer programming language often used to build websites and software, automate tasks, and conduct data analysis. Python is a general-purpose language, meaning it can be used to create a variety of different programs and isn’t specialized for any specific problems. This versatility, along with its beginner-friendliness, has made it one of the most-used programming languages today. A survey conducted by industry analyst firm RedMonk found that it was the second-most popular programming language

I hope this helped you!

Other Questions
if the vaccine is safe and effective, why does people have this mindset that they would die after they take the vaccine? (pls help its for my mapeh) A number line going from negative 10 to positive 1. Use the horizontal number line shown to answer the question. Which statements are true? Check all that apply. 9 < 7 6 = 6 1 > 3 0 < 3 Which is the absolute maximum for the polynomial y = -x + 5x + x =1 (3.43,15.9)2 (-0.097,-6.049)3 004 There is no absolute maximum for the polynomial. a 5-year-old is being prepared for diagnostic cardiac catheterization, in which the catheter will be inserted in the right femoral vein. what intervention should the nurse take to prevent infection? lololoolololollololololoololololololololololololol In the common naming convention for carboxylic acids, what is the correct greek letter used for the carbon adjacent to the carboxyl group?. an equation that represents y= 1.75 5 important facts about a Benjamin Franklin Stray animals should be avoided because:they could bite and give you rabiesthey are hungry and need a homethey smell bad and need a baththey belong to someone else Which phrase from the Constitution gives Congress implied powers of lawmaking?O Supremacy clauseO Due process clauseO Expressed powers clauseNecessary and proper clause 1. According to the excerpt, which of the following is illegal?A. the enactment of laws without Parliament's permissionB. the unrestricted election of members of ParliamentC. the right of subjects to make requests of the kingD. keeping a standing army in time of peace with Parliament'sconsent Which example BEST illustrates hindsight bias?Please choose the correct answer from the following choices, and then select the submit answer button.Answer choicesA: You predicted you would earn 80 percent on your test, but you only earned 70 percent.B: You meet a person on the street and feel an instant attraction. Later on, you tell a friend about the encounter and state that you just met the person you will marry.C: You believe that previously infertile couples will become pregnant after adopting a child.D: You just found out that the homecoming queen and captain of the football team from your high school are splitting up. You think back to the last time you saw them together and have the feeling that you could have predicted their breakup. Bob can write a computer program in 30 hours. John can write a computer program in 1/2 the time it takes Bob. How long will it take them to complete the program working together? NEED HELP ASAP required: 1. suppose danas would like to generate a profit of $800. determine how many rosettes it must sell to achieve this target profit. 2. if danas sells 1,100 rosettes, compute its margin of safety in units, in sales dollars, and as a percentage of sales. 3. calculate danas degree of operating leverage if it sells 1,100 rosettes. 4a. using the degree of operating leverage, calculate the change in danas profit if unit sales drop to 935 units. 4b. prepare a new contribution margin income statement to verify change in dana's profit. FIND THE DOMAIN AND RANGE(Algebra 1) if president biden were to appoint an individual to fill a vacant position in the department of health and human services when the senate was adjourned, it would be an example of a(n a force of 5.0 n is applied to a point object at 30o with the horizontal. another force of 10.0 n is applied at 120o . a) determine the net force (the magnitude and angle) 0.26x0.205 lol use a step by step answer i know the answer just want to give some points to people so yeah Add the missing commas.We were unable to put all our supplies into the suitcases because we had packed haphazardly.1. We were unable to put all our supplies into the suitcases because we had packed, haphazardly.2. We were unable to put all our supplies into the suitcases because, we had packed haphazardly.3. We were unable to put all our supplies into the suitcases, because we had packed haphazardly.4. No commas needed. What did the title have to do with the stranger that came to town?