Write a sub program to find the factors of a supplied number

Answers

Answer 1

Answer:

There are two options I can think of for you,

(Qbasic Code)

To Find the Factors of Given Number:

CLS

INPUT "Enter any number"; n

FOR i = 1 TO n

   x = n MOD i

   IF x = 0 THEN

       PRINT i;

   END IF

NEXT i

END

To Find the Factors of Given Number Using COMMON SHARED:

DECLARE SUB factor ()

COMMON SHARED n

CLS

CALL factor

END

SUB factor

INPUT "Enter any number"; n

FOR i = 1 TO n

   x = n MOD i

   IF x = 0 THEN

       PRINT i;

   END IF

NEXT i

END SUB


Related Questions

Which section of a PCM is responsible for sending the proper reference voltage to many of the sensors?

Answers

The section of a PCM that is responsible for sending the proper reference voltage to many of the sensors is the input sensor section.

What are PCM inputs?

The Powertrain Control Module (PCM) is known to be an input section of the PCM.

It is made up of the engine's ignition system, fuel injection system and also emission controls. The PCM is known to receives inputs a lot from different kinds  of sensors and switches.

Learn more about sensors from

https://brainly.com/question/26320121

Pauline has a well-established app with a large user base. Now she needs new users who complete valuable actions within the app. What phase does this fall under?

Answers

Answer:

Maturity because if you want new users who will complete [valuable]  actions they need to be [Mature].

Explanation:

100 POINTS PLEASE HELP
Create and initialize a 5 x 5 array as shown below.
0 2 0 0 0
0 2 0 0 0
0 2 2 0 0
0 2 0 2 0
0 2 0 0 2

First, write a printArray() function that prints out the array. Use a single parameter in the definition of the function, and pass the array you created above as the parameter. Call the function so it prints the original array.

Then write a flipHorizontal() function that flips the contents of the array horizontally and prints the result. This means that the values in each row should be reversed (look at the second array in the sample run of the program for clarity). Again, this function should pass the original array as the parameter. Within your flipHorizontal() function, call the printArray() function to print the new array that has been horizontally flipped.

Reset the array back to the original 5 x 5 array we started with.

Then write a flipVertical() function that flips the contents of the array vertically and prints the result. This means that the values in each column should be reversed (look at the third array in the sample run of the program for clarity). Again, this function should pass the original array as the parameter. Within your flipVertical() function, call the printArray() function to print the new array that has been vertically flipped.

The sample run below shows how your code should print the original array, followed by the horizontally-flipped array, followed by the vertically-flipped array. Notice that the output below includes blank lines between each of the three arrays - yours should do the same.

Code should be able to do this

0 2 0 0 0
0 2 0 0 0
0 2 2 0 0
0 2 0 2 0
0 2 0 0 2


0 0 0 2 0
0 0 0 2 0
0 0 2 2 0
0 2 0 2 0
2 0 0 2 0


0 2 0 0 2
0 2 0 2 0
0 2 2 0 0
0 2 0 0 0
0 2 0 0 0

Answers

Answer:

hope this helped ,do consider giving brainliest

Explanation:

import numpy as np

#PrintArray Function

def printArray(array):

for i in range(len(array)):

for j in range(len(array[i])):

print(array[i][j], end= " ")

print()

#Flip horizontal function

def flipHorizontal(array):

#reversing the order of arrays

array2 = np.fliplr(array).copy() printArray(array2)

#Flip Vertical function

def flipVertical(array):

#Preserving the order of array and reversing each array.

array3 = np.flipud(array).copy() printArray(array3)

#Main() function def main():

array = [[0,2,0,0,0],[0,2,0,0,0],[0,2,2,0,0],[0,2,0,2,0],[0,2,0,0,2]]

print("The array: \n")

printArray(array)

print("\nFlipped horizontally: \n") flipHorizontal(array)

print("\nFlipped vertically: \n") flipVertical(array)

if __name__=="__main__":

main()Explanation:

Answer:

Answer:

hope this helped ,do consider giving brainliest

Explanation:

import numpy as np

#PrintArray Function

def printArray(array):

for i in range(len(array)):

for j in range(len(array[i])):

print(array[i][j], end= " ")

print()

#Flip horizontal function

def flipHorizontal(array):

#reversing the order of arrays

array2 = np.fliplr(array).copy() printArray(array2)

#Flip Vertical function

def flipVertical(array):

#Preserving the order of array and reversing each array.

array3 = np.flipud(array).copy() printArray(array3)

#Main() function def main():

array = [[0,2,0,0,0],[0,2,0,0,0],[0,2,2,0,0],[0,2,0,2,0],[0,2,0,0,2]]

print("The array: \n")

printArray(array)

print("\nFlipped horizontally: \n") flipHorizontal(array)

print("\nFlipped vertically: \n") flipVertical(array)

if __name__=="__main__":

main()Explanation:

Explanation:

What happens when an auditory system and computing system are connected by abstraction?
A. They convert sound signals Into data that can be used to tell a device how to function.
B. They allow blological abstractions and computing systems to filter data.
C. They analyze data from both systems so only doctors can uno medical devices. D. They separate Input and output data from one another. ​

Answers

Answer:

It's A. They convert sound signals Into data that can be used to tell a device how to function.

Explanation:

____ is a very fast network media. It contains multiple (sometimes several hundred) clear glass or plastic fibers, each about the thickness of a human hair. Each fiber has the capacity to carry data for several television stations or thousands of voice conversations, but each fiber can only send data in one direction. Data sent over a fiber-optic cable is represented by light pulses and is sent at speeds of up to trillions of bits per second

Answers

Fiber optic cable (FOC) is a very fast network media and it comprises multiple clear glass or plastic fibers.

What is a fiber optic cable?

A fiber optic cable can be defined as a type of wired connector which are either made of glass or plastic and they are typically used for connecting one network device to another, so as to form a computer network and enable the continuous transmission of data between them.

In Computer technology, fiber optic cables (FOCs) are commonly produced through the use of several concentric layers of transparent material such as glass or plastic, with each having a slightly different index of refraction for light waves and about the thickness of a human hair.

Read more on fiberoptic cables here: https://brainly.com/question/116766

lynn wants to share parts of an essay she wrote in her slide presentation

Answers

Answer:

no

Explanation:

No she should not  because it might be for a test

Answer: Use bullet points to summarize the main parts of your essay

Explanation: I took the test myself

4. is the disappearance of the individual a bad thing?

Answers

Answer:

The program completed in a third of the time with six computers versus one computer.

Explanation:

Why didn’t social media become popular when the first cell phone hit the market in the late 1990s and early 2000s?
a.
using phones for communication was a cultural shift.
b.
the first cell phones were not connected to the internet.
c.
people often ignorde call from individuals they do not know.
d.
it was very unusual for individuals to have access to cell phones.

Answers

Answer:

b. the first cell phones were not connected to the internet.

Explanation:

Social media has only risen in popularity in the last decade. Additionally,  the first cell phones were not touch screens as they are nowadays. On some, you only called people you couldn't even text. Some did not even have caller ID's let alone other apps

The first cell phones were not connected to the internet. The correct option is B.

What is social media?

Online platforms and tools that enable individuals and groups to create, share, and exchange user-generated content, as well as participate in online communication and social networking, are referred to as social media.

People use social media for communication, entertainment, news consumption, and social interactions, and it has become an increasingly important part of their daily lives.

The first cell phones did not have internet access. Early cell phones were primarily used for voice calls and text messaging and had limited functionality.

With the introduction of smartphones and the expansion of cellular data networks, widespread use of social media on mobile devices became possible.

Thus, the correct option is B.

For more details regarding social media, visit:

https://brainly.com/question/30326484

#SPJ2

Your transactions data set contains more than 10,000 rows. Some rows contain the same transaction. How would you remove the rows containing the identical transactions?.

Answers

To remove the rows containing the identical transactions, first click on the data tab that is displayed at the top of the screen. Then you select the range by highlighting it.

Later on check the top of the screen and then click on the data tab. The various commands will be displayed to you, and you should then click the 'remove duplicates'.

What does duplicate transactions implies?

Duplicate transactions is known to take place when a customer is said to refreshes their checkout page or when they had clicked on the buy button in a lot of times.

Note that identical transaction implies that there is a transaction about an items with some identical attributes or technical characteristics.

Learn more about identical transactions from

https://brainly.com/question/7176767

In best practice, should you use all lowercase, all uppercase or a mixture of cases in HTML tag names?

a
All lowercase

b
The first letter should be uppercase, the rest lowercase.

c
A mixture is fine.

d
All uppercase

Answers

B considering it’s proper english, we went through this about a week ago

A programmer ensures the user inputs valid data by setting algorithms boundaries data output

Answers

Answer:

boundries

Explanation:

i did the test so trust me its right

The proper type of data is required. Users must, for instance, enter a figure in the field labeled “Total purchase units.” There must be a limit on the data's range of values. For instance, customers can only select a legitimate loan type from a list of possibilities.

What is the input's valid data by setting algorithms?

An input validation approach is used to ensure that the data given by a user is accurate.

A software might ask for a score between 0 and 50, for instance, and employ an input validation technique to make sure that numbers below 0 and beyond 50 are rejected.

Any Value—This nullifies any previous data validation. Whole Number—Only whole numbers are permitted. You might stipulate, for instance, that the user must enter a value between 0 and 30. Decimal: The user must provide a decimal-valued number.

Therefore, boundaries programmer ensures the user inputs valid data by setting algorithms boundaries data output.

Learn more about algorithms here:

https://brainly.com/question/28283722

#SPJ5

i am looking for some code to write 1,1,1 to 1,1,20 then switch to 1,2,1 to 1,2,20 all the way up to 20,20,20. any info would help alot thanks.

Answers

Answer:

press [Alt]+[F3] to open the create new building block dialog box. AutoText is listed in the Quick Parts dropdown, which is in the Text group on the insert tab.

Match up each definition and term. Please help asap

Answers

Answer:

Query - Definition - Search by specific information Example - Find T-shirt in a specific size

Flat File Database - Definition - Simple database where each row is a record Example - Excel file of names and addresses

Fields - Definition - Different types of data for each record (columns) Example - Type of clothing, colour, size, price

Sort - Definition - Show records in different order based on its fields Example - Arrange all records alphabetically by colour

Record - Definition - Main item in a list (row) Example - Jeans

Text Field - Definition - Any number, letter, and all symbols Example - Levi's 518

Date Field - Definition - Date in a specific format Example - 2020-06-30

TIME Field - Definition - Any format of a timestamp Example - 10:42 PM

Graphic Field - Definition - Any kind of image Example - Logo

Calculated Field - Definition - Contains a formula to work something out Example - Length of time item has been in inventory

Number Field - Definition - Contains numbers that may be used in future calculations Example - $237.42

Brainlist Pls!

i really need the answer now!!

3. Which is the path through which an electric current flow? *
1 point
A. close circuit
B. electric circuit
C. parallel circuit
D. series circuit
4. Which of the following is a device that acts as an automatic switch that opens the circuit if too much current flows through it? *
1 point
A. battery
B. circuit breaker
C. switch
D. volts
5. Which statement is true about parallel circuit? *
1 point
A. All parts are connected in a single path.
B. Current flows through more than one path.
C. Same amount of current passes through each load.
D. One electrical device goes out, the rest will not work anymore.
6. Which of the following can cause electrical fire? *
1 point
A. Play with the switches.
B. Insufficient supply of current.
C. Excessive current may overheat the wires.
D. Turn off the appliances when nobody is using it.
7. How many volts of electric energy do the outlets in the Philippines commonly have? *
1 point
A. 50 to 100 volts
B. 100 to 150 volts
C. 110 to 150 volts
D. 200 to 220 volts
8. When a short circuit takes place, the fuse wires melt and break __________? *
1 point
A. battery
B. breaker
C. circuit
D. wires
9. Which of the following shows the proper way in using electricity? *
1 point
A. Use damaged appliances.
B. Use overloaded extension wires.
C. Turn off the lights when not in use.
D. Plug appliances when nobody left in the house.
10. Gemma ironed their clothes. She stopped it when she smells burnt wires. Why did she stop ironing the clothes? *
1 point
A. Check if the extension wire is in good condition.
B. Search any busted bulb or outlet.
C. Find the burnt wires.
D. All of these

Answers

Answer:

3. B.

4. B.

5. B.

6. C.

7. D.

8. C.

9. C.

10. D.

Explanation:

I hope I helped you.

Web résumés allow you to include extra graphics and images that you would not include in a traditional résumé. Please select the best answer from the choices provided T F.

Answers

A web resume is far better than a traditional resume because it can carry so much data about the person, and it includes images also. This statement is true.

What is a web resume?

A web resume is termed as a resume that is read by a computer program that summarizes the information of each employee.

Web resume has the data such as their parent name, education, skills, job experience, hobbies, languages, and so on.

Thus, the photo of the document about the project or internship that has been done in the past can be given on the web resume by uploading the certificate on the computer system along with the resume.

For example, in companies like Linkedin, apna, and so on there are many companies that ask about the person before creating an account.

More about the web resume link is given below.

brainly.com/question/862477

Answer:

true

Explanation:

The first time you save a file, there is no difference between the Blank Space __________ and Save As commands.

Answers

I think the answer is save.

Hope that helps!

On a Windows computer, which tab can be used in Task Manager to set the priority given to a specific application or service?

Answers

Answer:

details tab

Explanation:

HURRY IM TAKING A TEST, WORTH 50 POINTS
Bar graphs compare values across categories using BLANK to display their information Fill in the blank:
1 Lines
2 Colums
3 Maps
4 Circle

Answers

Answer: Colums

Explanation:

Quizlet

Answer:

the answer your looking for is 2/B columns

Explanation:

what are computer networks​

Answers

Answer:

A computer network is a set of computers sharing resources located on or provided by network nodes. A computer network is a system that connects numerous independent computers in order to share information (data) and resources.

Explanation:

:)

Which one of these actions isn't a valid way to update the status of a lead? A. Click "Mark Status as Complete" in Path. B. Click the desired step on the Path, then click "Mark Current Status." C. View the lead record, click "Edit," and change the Status field. D. Change the Kanban settings Group By to "status." Drag the record to a different column. E. In any list view, click "Shuffle" to change up every record's status.

Answers

The action that is not  a valid way to update the status of a lead is that In any list, click "Shuffle" to change up every record's status.

How do I update lead status?

To update any  lead from a list view such as one that is found in Salesforce One has to select the leads that the person want to edit and then by double-clicking the specified field value and then make the change that you want.

Note that the update  differs for others and the action that is not a valid way to update the status of a lead is that In any list, click "Shuffle" to change up every record's status. This is wrong.

Learn more about update from

https://brainly.com/question/10106963

The traditional ROM-BIOS has been replaced with __________. ELAM Boot Secure Boot Unified Extensible Firmware Interface (UEFI) Trusted Machine Platform

Answers

The traditional ROM-BIOS has been replaced with Unified Extensible Firmware Interface (UEFI).

Why the use of traditional BIOS?

This type of BIOS is one that is known to have drive support that is saved in its ROM, which makes updating BIOS firmware a little hard .

The use of a BIOS is known to be a kind of firmware that often gives  one runtime services mainly for operating systems and programs.

Learn more about ROM from

https://brainly.com/question/24688176

Question 17 of 40
What should you do before an interview?
A. Come up with one or two questiono for the Interviewer.
B. Eat a large meal.
C. Study as if for a final.
D. Stay up late the night before trying to guess what the interviewer
will ask.

Answers

C.

Because when you are getting interviewed you need to first study up on what you'd say!

Answer:

I think A

Explanation:

because need a question before your interview

Which of the following is an example of effective nonverbal communication?
O presenting information about the status of a project in a team meeting
O an e-mail congratulating a team for attaining their goal
O eye contact and a smile
Opointing, frowning, and turning away

Answers

Answer:

Eye contact and a smile

Explanation:

There are only two nonverbal communication options in the list you gave:

eye contact and a smilepointing, frowning, and turning away

Pointing, frowning, and turning away would not be effective nonverbal communication because it seems uninviting and disrespectful. Eye contact and a smile is effective nonverbal communication because it shows that you're respectful, paying attention, and understanding.

Explain why Austin takes close-up pictures of whales and displays them in life-size? worth 50 points

Answers

The reason why Austin takes close - up pictures of and displays them in life - size is due to the fact that  he wants to give viewers an indelible view or opinion of what a whale is.

It also to give whales a background to bring out unexplored thought and emotion in a lot of ways that has been yet to pursued .

What are Whales?

This is known to be Animals that are said to be mostly distributed and have a lot of group of aquatic placental marine mammals.

They are known to belong to an informal grouping as they belong to the order Cetartiodactyla.

Learn more about pictures from

https://brainly.com/question/25938417

how do I fix when it hits the second session it skips scanf..
#include <stdio.h>
#include <unistd.h>
#include <ctype.h>
main() {
double first, second;
while(1){
printf(" Calculator\n");
printf("\n 7 8 9 / \n 4 5 6 x \n 1 2 3 - \nEnter operator: ");
char op;
scanf("%c" ,&op); //entering operators such as + - \ *
printf("Enter two operands:");
scanf("%lf %lf", &first, &second); //entering operands such as 1 2 5 8 12 414
switch (op) { // printing the math
case '+'://if its +
printf("%.1lf + %.1lf = %lf\n\n", first, second, first + second);
break;
case '-'://if its -
printf("%.1lf - %.1lf = %lf\n\n", first, second, first - second);
break;
case '*'://if its *
printf("%.1lf * %.1lf = %lf\n\n", first, second, first * second);
break;
case '/'://if its :
printf("%.1lf / %.1lf = %lf\n\n", first, second, first / second);
break;
default://if its not + - / *
printf("error!");
}
}
}​

Answers

Answer:

the answer can be found HERE:

https://stackoverflow.com/a/13473767

put a leading space in the scanf(" %c", &op)

Explanation:

#include <stdio.h>

#include <unistd.h>

#include <ctype.h>

main() {

double first, second;

char op;

while(1){

printf(" Calculator\n");

printf("\n 7 8 9 / \n 4 5 6 x \n 1 2 3 - \nEnter operator: ");

scanf(" %c", &op); //entering operators such as + - \ *

printf("Enter two operands:");

scanf("%lf %lf", &first, &second); //entering operands such as 1 2 5 8 12 414

switch (op) { // printing the math

case '+'://if its +

   printf("%.1lf + %.1lf = %lf\n\n", first, second, first + second);

   break;

case '-'://if its -

   printf("%.1lf - %.1lf = %lf\n\n", first, second, first - second);

   break;

case '*'://if its *

   printf("%.1lf * %.1lf = %lf\n\n", first, second, first * second);

   break;

case '/'://if its :

   printf("%.1lf / %.1lf = %lf\n\n", first, second, first / second);

   break;

default://if its not + - / *

   printf("error!");

}

}

}

W
tickets for tsg airlines are coded as follows:
• united kingdom flights are coded a, european flights b, asian
flights c, and american flights d.
overnight flights between 10pm and 6am use the same codes,
but with lower case letters (a, b, c, d)
• male passengers are coded x and female passengers are coded
y
• children under 16 are coded lowercase (x, y)
• meals are coded vegetarian v, beef b, and chicken k
• first class passengers are a, business class are b, and economy
is c
what is the code for a flight from chicago to new york at 5am for a
vegetarian 8 year old girl traveling in economy class?

Answers

The flight code of the tsg airlines is an illustration of computer coding

The code of the flight is AayvC

How to determine the code of the flight?

From the question, we have the following parameters:

UK = A, Europe = B, Asian = C, and the Americas = D.Flight between 10 pm and 6 am = (a,b,c, and d)Male passengers = X;  Female passengers = Y.Children under 16 = (x.y)Vegetarian Meal  = v; Beef = b, Children = KFirst Class = A, Business Class = P; Economy = C

To code the flight of the girl, we have the following parameters:

Destination =UK; UK code is ATime = 5AM; UK flight before 6AM is coded aFemale children under 16 is coded yMeal = vegetarian; The code for this is vEconomy class is coded C

Hence, the code of the flight is AayvC

Read more about coding at:

https://brainly.com/question/24735155

The page that appears when you first open your Internet browser is the _____.


opening page
opening page

launch page
launch page

home page
home page

first page
first page

Answers

Answer:

i think it's opening page

Answer:

i think its also opening page

Explanation:

(iii) ............ characters can be stored in memo field. (a) 50 (b) 64000 (c) 255 (d) 200 ​

Answers

Answer:

(b) 64000

Explanation:

Assuming that the "Memo" being mentioned is a Microsoft Access memo field, it can hold up to 64,000 characters, even in the more recent version of the application where the "Memo" is now know as the "Long Text" field.

According to microsoft.com, "In earlier versions of Access, we used the Memo data type to store large amounts of text... the Long Text field works the same as the Memo field of old... [it] can only display the first 64,000 characters."

Please put "Brainliest" on my answer if it helped you out the most!

(Further Reading) If you're still confused, I suggest you search up the following:

- Microsoft Access Long Text character limit

Which discipline focuses on the design of computer hardware?

information technology

computer engineering

information systems

computer science

Answers

computer engineering

Answer:

Computer Engineering

Explanation:

People that work in the computer engineering field usually create hardware such as the CPU, PSU, RAM, GPU, SSD & a few more.

In a single processor system running Windows, when the kernel accesses a global resource, it A) uses spinlocks. B) masks all interrupts. C) uses a dispatcher object. D) atomic integers.

Answers

In a single processor system running Windows, If the kernel accesses a global resource, it masks all interrupts.

What does it implies to mask an interrupt?

An internal switch setting is known to often controls if an interrupt can be worked on or not.

The act of a Maskable interrupt is known to be when a hardware is said to interrupt and as such, it can disabled or left like that by the instructions of CPU.

Learn more about Windows from

https://brainly.com/question/25243683

Other Questions
Would a compound event involving a standard number cube and a spinner be dependent or independent? data in ai uses what > Whats the answer???? When developing a written argument, what best explains why an author would use a graph as a source? (NEED ANSWER TODAY!) The dimensions of this figure are changed so that the new surface area is exactly 1/3 what it was originally.What is the new surface area?Enter your answer as a decimal in the box. An organism with the GG genotype would be Which document established standard requirements for conducting federal background investigations according to a five-tiered model Solve the equation: 3/4x - 12 = 12 -1/4 (24ab + 8c) please help ILL GIVE BRAINLIEST. ANSWER ASAP 40 points please help can someone answer this please Make 2 full sentences using the scientific term "homoozygous" and 2 full sentences for "heterozygous (Side note: i had to add an extra O to the first thing so its not considered a offensive word-Thank you for your help!) How do you calculate the diameter of a circle Explain the differences between horticulture and agriculture. What do people find troublesome or confusing about christianity and why?. Write a letter to to the chairperson of the ward you reside mentioning the social problems of your society and mention the measures to overcome them. Which number is bigger: 0.135 or 0.14? Help please, I need to match these 92 POINTS, EASY QUESTION Which of the following best describes the effect of the cotton gin on slavery?AAThe number of enslaved people working on cotton plantations increased.BThe number of enslaved people working on cotton plantations decreased.cBecause the cost of growing cotton decreased, the need for slave labor remained thesameDBecause the cotton gin reduced the labor of removing seeds, it reduced the need forslaves to grow and pick the cotton.