• In determining the GCF of 3 and 1, case I applies because 3 is evenly

divisible by 1. The GCF of 3 and 1 is 1, and therefore the GCF of 7 and 3

is also 1.

hots

(a) The gcf method returns the greatest common factor of

parameters a and b, as determined by case I and case II. Write

the gcf method below. You are encouraged to implement this method

recursively

/** Precondition: a and b are positive integers.

Returns the greatest common factor of a and b, as described in part (a).

*/

public static int gcfint a, int b)

Answers

Answer 1

Answer:

I've added the complete code as a text attachment

Explanation:

This declares two variables as integer for input

       int f1, f2;

Prompts the user for two positive integer inputs

       System.out.print("Enter two positive integers: ");

This gets the two integer input from the user

       f1 = input.nextInt(); f2 = input.nextInt();

If both inputs are positive, the function is called and the gcf is printed

       if (f1 >0&& f2 > 0){

       System.out.printf("G.C.F of %d and %d is %d", f1, f2, gcf(f1, f2));}

If otherwise, a message is printed stating that only positive input is required

       else{            System.out.print("Positive inputs only");        }

   }

The function begins here

[tex]public\ static\ int[/tex] gcf(int a, int b) {

If the second number (b) is 0, the function returns the first number (a)

       if ([tex]b == 0[/tex]) { return [tex]a;[/tex] }

If otherwise, the function is called recursively

       else { [tex]return[/tex] (gcf([tex]b[/tex], [tex]a \% b[/tex])); }

   }

Answer 2

In this exercise we have to use the knowledge of computational language in C to describe the code, like this:

We can find the code in the attached image.

The code can be written more simply as:  

  int f1, f2;

Prompts the user for two positive integer inputs

      System.out.print("Enter two positive integers: ");

      f1 = input.nextInt(); f2 = input.nextInt();

      if (f1 >0&& f2 > 0){

      System.out.printf("G.C.F of %d and %d is %d", f1, f2, gcf(f1, f2));}

     else{            System.out.print("Positive inputs only");        }

  }

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

 In Determining The GCF Of 3 And 1, Case I Applies Because 3 Is Evenlydivisible By 1. The GCF Of 3 And

Related Questions

I just played slither.io and got a length of 50632! Can you beat that? http://slither.io



I WANNA SEE YOU BEAT ME ¯\_(ツ)_/¯ if my name is on the leader board it's kirishima​

Answers

Answer:

Nice

Explanation:

Answer:

well yes

Explanation:

can you plz tap the thanks button and rate 5 stars thx

Why do computers use binary code?

Answers

Answer:

To make sense of complicated data, your computer has to encode it in binary. Binary is a base 2 number system. Base 2 means there are only two digits—1 and 0—which correspond to the on and off states your computer can understand

Answer:

It has two clearly distinct states that provide a safety range for reliability and the least amount of necessary circuitry, which results in the least amount of space, energy consumption, and cost.

Geraldo would like to compare two areas of text, Text1 and Text2, to each other. What steps should he take?

select Text1, hit F1, click “Compare to another selection,” select Text2
select Text1, hold Shift+F1, click “Compare to another selection,” select Text2
hold Shift+F1, select Text1, hold Shift+F1 again, select Text2
hit F1, select Text1, hit F1 again, select Text2

Answers

Answer:

Can you elaborate on this?

60 points for this!!!!!!!!!!!!!!!!

Answers

Answer:

you can convert that to word document and aswer and edit every thing

Explanation:

Explanation:

it is clearly not visible

please send me again

Select the correct answer. In which item is energy stored in the form of gravitational potential energy? A. a slice of bread B. a compressed spring C. an apple on a tree D. a stretched bow string

Answers

Answer:

C. an apple on a tree

Explanation:

Energy can be defined as the ability (capacity) to do work. The two (2) main types of energy are;

a. Kinetic energy (KE): it is an energy possessed by an object or body due to its motion.

b. Gravitational potential energy (GPE): it is an energy possessed by an object or body due to its position above the earth.

Mathematically, gravitational potential energy is given by the formula;

[tex] G.P.E = mgh[/tex]

Where;

G.P.E represents gravitational potential energy measured in Joules.

m represents the mass of an object.

g represents acceleration due to gravity measured in meters per seconds square.

h represents the height measured in meters.

In an apple on a tree, energy is stored in the form of gravitational potential energy.

please help
match the features with the software
Word Processor, Spreadsheet, Database

- addiction of images, drawings, tables and graphics to text
- centralized data management
- data security
- digital version accounting sheets
- supports multiple users for adding data simultaneously
- visual representation of data
- digital version of a typewriter

Answers

Answer:

word processor- addition of images, drawing tables, and graphics to texts and digital version of a typewriter. spreadsheet- digital version of accounting sheets and visual representation of data. database- centralized data management, data security, and supports multiple users for adding data simultaneously

Just switch the two I got wrong and you'll get the correct answers. :)

How does cybercrime impact the economy? Select 3 options,
People lose their job
Intellectual property is stolen,
It stimulates the economy.
Businesses are ruined,
Opportunities are created.

Answers

Answer:

People lose their jobs.

Intellectual property is stolen.

Businesses are ruined.

Explanation:

got it right on edge

Cybercrime impact the economy by:

People lose their jobs.Intellectual property is stolen.Businesses are ruined.

What is the effect of cybercrime in the economy?

The growing rate of  cybercrime issues is one that has lead to high cost in the economy  of the world and it has also lead to global losses.

Conclusively, a lot of business has closed up due to cybercrime and the government now spends resources that can be used for other purposes to fight cybercrime.

Learn more about Cybercrime from

https://brainly.com/question/25157310

essay about important of

education
and discipline?​

Answers

Answer:

Importance of Education & Discipline

Explanation:

Education is an enlightening learning process.

It enhances knowledge & perspective towards selves & outside world. It enriches our capabilities, virtues & minimises our vices.

Education is a crucial strong tool, which can empower & transform individuals & society, make world better.

Discipline is obedience to appropriate code of behaviour.

It is very integral to maintain orderliness, no chaos in life. It is interconnected with good qualities of dedication (commitment) to goal & hard work. So, it helps attain desired goal with positive outlook & sense of self accomplishment.

who doesn't like reeses

Answers

Answer:

I like Reeses. but then sometimes I don't

literally nobody lol

Decimal numbers are based on __________.

letters (a and b)
16 digits
10 digits
two digits (1s and 0s)

Answers

They are based on 10 digits.

I’m not sure.

Answer:

They are based on 10 digits.

Explanation:

I just did the test and got the answer right.

questions about the data policy and privacy policy of YT
the questions are in the picture attached below!

Answers

Answer:

I'm confused

Explanation:

List three differences between word and excel

Answers

Answer:

Word: A word processor

           File extension is .doc

          Images, texts, and graphic styles can be added

Exel: A spreadsheet software

       Comprises rows and columns which combine to form cells

       File extension is .xls

I hope i helped! xoxo

Stephen is creating video tutorials to sell his company's products. The target audience will consist of company employees using primarily new computers with the Windows operating systems and Internet Explorer 9. Stephen is debating whether to publish the videos using the MP4 or the OGG video format. Both formats are compatible with the HTML5 video element, which he is using in his tutorials. Which of the following would be a reason for Stephen to choose one format over the over?
A. The MP4 video format is a free open-source solution that is compatible with all browsers.
B. The OGG video format is a free open-source solution that is compatible with all browsers.
C. The MP4 video format is natively supported by Internet Explorer 9 and does not require a plug-in.
D. The OGG video format is natively supported by Internet Explorer 9 and does not require a plug-in.

Answers

Answer:

The answer is "Option C".

Explanation:

MP4 is a digital video filesystem that was firstly introduced in 2001. That very many platforms or applications throughout the digital market support MP4. Sound signals, video clips, yet still images, and text could be stored in an MP4 format, therefore internet Explorer 9 accepts the MP4 video format it does not have to have a plug-in.

I need the answer ASAP. I’ll mark brainliest if right

Answers

Answer:

copy or repeat

Explanation:

When planning your App what difficulties did come across and why?

Answers

Answer:

1. An engaging app idea

2. Sufficient funds

3. Cross-platform apps

4. Interactive apps

5. Application content management

ETC...

There are a lot difficulties you might come across but thats based on your knowledge

Match each role to the corresponding web development task.

Answers

Answer:

1. Art director: selecting color palettes.

2. Web project manager: creating budget spreadsheets.

3. Usability lead: researching target audiences.

4. Developer: coding.

Explanation:

HTML is an acronym for hypertext markup language and it is a standard programming language which is used for designing, developing and creating web pages.

Generally, all HTML documents are divided into two (2) main parts; body and head. The head contains information such as version of HTML, title of a page, metadata, link to custom favicons and CSS etc. The body of the HTML document contains the contents or informations of a web page to be displayed.

The various role performed during the web development process (task) includes;

1. Art director: selecting color palettes. This individual is saddled with the responsibility of choosing the color that best fits a website.

2. Web project manager: creating budget spreadsheets. He or she is responsible for performing tasks such as creating a financial (budget) plan, start and finish date (timing), procurement, etc.

3. Usability lead: researching target audiences. This individual is saddled with the responsibility of surveying and collecting data from the demography for which the website is designed.

4. Developer: coding. This is the technical expert referred to as a web developer and is responsible for writing the set of instructions (codes) that enables the website to work properly and serve a purpose.

Which part or section of the website will enable Lana to add her company name and logo to the top of every page of the website?

Answers

Answer:

Header section of  the website.

Explanation:

Header is the main part of the website located on the top of the webpage which has important links and logo of the company. The header includes different pages of the website which a user might want to navigate before purchasing or making a query. They have same items on every page so that a user can navigate easily from one page to other.

Answer:

header section

Explanation:

What protects your computer so that it doesn't get a computer virus?

Answers

Answer:

an anti-virus program such as avg

An anti virus program or a vpn also protects your information and makes all of the stuff on your computer safe

Cindy, our company’s Chief Technology Officer (CTO), suspects that someone is trying to hack into the company, and she’s heard that you have some cybersecurity skills that could prove useful. Cindy suspects that there are some hackers who are using SQLi to launch attacks and steal information from one of the databases and also to hijack users’ sessions and take over certain accounts. Can you use your cybersecurity penetration testing skills with SQLi to track down the hackers?
Cindy will need for you to submit a report with recommendations on your findings, which is pretty typical for others in your industry with this type of role.
Write a security assessment report that will be sent to the technical team and senior management, and specifically Cindy, the CTO. Your report should be approximately 3 pages and address the following:

Summary of Findings (overview of vulnerabilities found)

Types of tests used (with details on outcomes)

Impact of Threats

How any parts of the CIA Triad could be compromised with the vulnerabilities

Does OWASP have any recommendations that you can apply?

Executive Summary (what recommendations would you give to the CTO)

Present potential solutions, mitigations, or other
suggestions for reducing or eliminating the vulnerability​

Answers

Answer:

I'm a cyber security enthusiast

Explanation:

How do you want the report delivered to you?

I NEED THIS ASAP!!! I"LL GIVE 30 PTS.!!!

2 things are required to make a loop: a. ______________ b. _____________

Answers

Answer:

(not quite sure what the question is asking seems you need, but bare minimum is)

an initial value and an increment or decrement

a condition where the loop stops

Explanation:

assuming you have the structure for the loop, depending on the language it could be a for, while or until command. You will always need the initial value for the variable your looping on, how it changes (increment or decrement) and then a condition when the looping in to stop.

e.g. say you want to add up the numbers from 1 to 10, inclusive

sum = 0

for I is 1 to 10 incremented by 1

sum=sum+I

end of loop

Sampson runs his own online business, and much of his success depends on the reliability and accuracy of various online data needed to run that business. How does integrity help to ensure that Sampson can trust the online data he is using?

because integrity takes steps to ensure Sampson's information cannot be altered or deleted by unauthorized people and that it stays intact, no matter where it goes

because integrity refers to a process that makes it impossible for anyone but Sampson to see the data that he is using

because integrity blocks all hackers from interfering with Sampson's data and what he does with it

because integrity allows Sampson to access and move data on an unsecure network

Answers

Answer:

because integrity takes steps to ensure Sampson's information cannot be altered or deleted by unauthorized people and that it stays intact , no matter where it goes.

What is one feature of flexographic printing?
O printing on plastic
O changing images
O raised lettering
O beautiful photographs

Answers

Answer:

A is the answer thank me later

A company is recruiting for a web designer. What kind of candidate should the company recruit so that they can complete the tasks
resourcefully?

Answers

Answer:

Explanation:

The company should recruit someone who possesses at least an associate's degree in computer science or a technical subject and knows designing languages such as HTML5 and CSS. These two languages are the primary design languages that every single web designer must know. Without these two languages, a website cannot be created. Every career in tech teaches these two languages since they are basics that must be known, therefore an associate's degree would show that they have well versed in many technical subjects.

Help easy 50 points!!!!
How do i make someone be the brianliest? No crown thing is appering!!!!

Answers

Answer:

When someone answers your question there should be a button to crown them but it's weird there is no crown showing...

Answer:

2 ppl should answer ur question, then you'll see an option to - Mark as brainliest, then u can mark the answer as brainliest ~~~ Why not try it for me? Lolz UwU

Using the simple alphabet code below, you will decode and encode the message. Write the Full
Message on the line given. Your spaces have been indicated.
1
3
5
6
7
8
9
10
12
13
2
b
4
d
11
k
a
с
e
h
i
m
f
19
j
23
1
25
14
15
16
17
18
20
21
22
24
26
Z
n
O
p
q
r
t
u
V
w
х
у

Answers

Answer:

acefghijlmb2d4k1113589136510waynopqrtuvx2261415161718202122232425

Explanation:

In your own words! Give me an example of Digital Literacy? (50 words
No links or I will report!!!!!!!

Answers

Answer: See explanation

Explanation:

Digital literacy is when an individual can compose, find, and evaluate, a clear and composed information on digital platforms.

It involves possessing the skills that one need to live, and learn, through the use of digital platforms such as social media, mobile

Example of digits literacy is the use of search engines, understanding how web browser can be used or sending of emails. etc

Best beginner racing drones?

Answers

One that are somewhere between 200-400 for the good quality

Answer:

Walkera Runner 250

Explanation:

This drone is durable, and offers a lot of features while not totally being over the top!

Use parallel and highway in a sentence

Answers

Answer:

The road ran parallel to the highway, with the Uncompahgre River separating the unpaved road from the main thoroughfare to the east.

Answer:

QUESTION:

Use parallel and highway in a sentence

ANSWER:

We were on the highway parallel to the train tracks.

Explanation:

Hope that this helps you out! :)  

If any questions, please leave them below and I will try my best and help you.  

Have a great rest of your day/night!  

Please thank me on my profile if this answer has helped you!

Abby wants a high-end computer system for her home office that can be upgraded. Which of the following should she choose?
Laptop
Gaming Console
Desktop
Server

Answers

Desktop, it can be customised more and laptops are poorly made often, gaming console makes no sense same with server

How does computer science play a role in art?

Answers

Answer:

Many artists now learn to code; computer scientists develop algorithms with aesthetics as the goal. Projects such as Deep Dream, a program that uses neural networks to produce new visuals, let anyone use AI approaches to generate, ostensibly, art.

Other Questions
Slow cooling of magma leads to the formation of large crystals, such as halite and calcite.Select the correct response:TrueFalse victor is keeping track of winter temperatures for a project. yesterday the thermometer read 12F, and today the temperature has dropped 7F. he wants to determine the temperature today. which operation should he use to solve this problem? A) addition B) subtraction C) multiplicationD) division pls help!!!!!!!! i need help please If P = (3,2), find the imageof P under the following rotation.270 counterclockwise about the origin([?], []) look at pic 10 pts will mark brainilest What single percentage change is equivalent to a 11% decrease followed by a 13% decrease? What was service Field's contribution to the industrial world Which is an ABIOTIC factor in biomes? *A. average temperatureB. kinds of treesC. moss and algaeD. number of insect species how is carbon captured and stored by organisms? how is carbon passed through the ecosystem? how is carbon returned to the ecosystem? if u mess around and dont give me answers i reporting:) Select all shapes that have a volume of 36pi cubic units. (see attached picture) RealTurf is considering purchasing an automatic sprinkler system for its sod farm by borrowing the entire $50,000 purchase price. The loan would be repaid with four equal annual payments at an interest rate of 12%/year. It is anticipated that the sprinkler system would be used for 9 years and then sold for a salvage value of $5,000. Annual operating and maintenance expenses for the system over the 9-year life are estimated to be $10,500 per year. If the new system is purchased, cost savings of $20,500 per year will be realized over the present manual watering system. RealTurf uses a MARR of 15%/year for economic decision making.What is the internal rate of return used to reach your decision? Name 3 countries that still have slavery in today's life. PLSSSSS HELPPPPP CANT GET THIS WRONG PLSSS HELPPPPOne cause of variation in a population when there is a random change in the base pairs of DNA.A. EvolutionB. Natural SelectionC. MutationD. Adaptation The actual length of side y is 22cm. Use the scale drawing to find the length of side x. What figure of speech doesDickinson use in the followingexcerpt from "After GreatPain, A Formal FeelingComes"?A wooden wayA. personificationB. simileC. alliterationD. light-hearted diction get this right N Ill give you brain list! Discounting Cash Flows and Earnings. Under the residual income approach and the discounted cash flow approach to firm valuation, carnings and cash flows, respectively, are discounted using a firm's cost of equity. Discuss why the cost of equity is the appropriate discount rate to use to discount a firm's camings and cash flows. Why is the cost of debt inappropriate to use to discount a firm's earnings or cash flows 7. If you are giving advice to a friend who is considering sexual activity, whatwould you say? Use details from the text to support your answer.Wear a condom Chris drinks 3 pints of milk a day. How much is this in cups?