some things you can try
sign out of teams and back in
refresh the page by pressing ctrl+r
try a different browser
contact Microsoft
-scava
• 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)
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])); }
}
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 Java:
Assume the availability of an existing class, ICalculator, that models an integer arithmetic calculator and contains:
a private instance variable currentValue that stores the current int value of the calculator
a getter method for the above instance variable
methods add, sub, mul, and div
Each method in ICalculator receives an int argument and applies its operation to currentValueand returns the new value of currentValue. So, if currentValue has the value 8 and sub(6) is invoked then currentValue ends up with the value 2, and 2 is returned.
Write a public subclass, ICalculator1, based on ICalculator. The class ICalculator1 has one additional method, sign, that receives no arguments, and doesn't modify currentValue. Instead, it simply returns 1, 0 or -1 depending on whether currentValue is positive, zero, or negative respectively.
Answer:
A subclass?
Explanation:
A public subclass for ICalculator1 has one additional method, sign, that receives no arguments, and doesn't modify current Value. Instead, it simply returns 1, 0 or -1 depending on whether current Value is positive, zero, or negative respectively.
What is public subclass?A member's access is declared to be public with the Java keyword public. All other classes can see members of the public class. This implies that a public field or method can be accessed by any other class. In addition, public fields can be changed by other public subclass or classes unless they are marked as final.
Further a subclass is defined as a class that is descended from another class (also a derived class, extended class, or child class). A superclass is the class from which a subclass is descended (also a base class or a parent class).
A public subclass for ICalculator1 has one additional method, sign, that receives no arguments, and doesn't modify current Value:
In Java,
public class ICalculator1 extends ICalculator {
public int sign() {
if (getCurrentValue() > 0)
return 1;
else if (getCurrentValue() == 0)
return 0;
else
return -1;
}
}
Therefore the availability of an existing class, I-Calculator, that models an integer arithmetic calculator, above public subclass has been made.
Learn more about public subclass:
https://brainly.com/question/15992142
#SPJ12
How do you calculate the slope for a voltage-current graph?
Answer:
Choose two points on the line to work from (point C and point D).
Calculate the voltage difference between the two points (the RISE of the slope).
Calculate the current gap between the two points (the RUN of the slope).
Subtract the RISE from the RUN. This is the line's slope.
Explanation:
Luis saves an attachment that he received from Kevin. Where will the attachment save by default?
on the desktop
in the documents directory
in the Outlook Archive
in the downloads directory
The folder (path) where the attachment would be saved by default is: B. in the documents directory.
What is a folder?A folder is also referred to as a directory and it can be defined as a document that is typically used for storing and organizing an attachment or file on a computer system.
The type of folders.In Computer technology, there are different type of folders and these include:
Downloads folderDocuments folderQuick file folderMain folderSearch folderIn this scenario, the attachment that Luis received from Kevin would be saved in the documents directory by default.
Read more on folder here: https://brainly.com/question/7697887
Answer:
in the documents directory
Explanation:
got it right on edge hope this helps
Effective controls protect ______ from workplace hazards.
Answer:
Contact your team leader, supervisor, manager, etc.
Answer:
The Worker I did the TEST and got it right.
which category of computers would you place an n-series nokia phone
Answer:
under "portable smart phone" I would assume
Explanation:
The N-series Nokia phone will come under the category of portable computer.
What is a computer?A computer is an electronic device that is configured for doing the task automatically after giving the command to the computer system. It automatically performs functions like perform arithmetic or logical functions.
The portable computer is a type of computer system that is handy and can be used from anywhere by carrying it, either in pocket or a bag. Therefore, the N-series Nokia phone is handy and can be carried in pocket anywhere.
Thus, it is a type of portable computer.
Learn more about portable computer, here:
https://brainly.com/question/20385904
#SPJ2
When planning your App what difficulties did come across and why?
Answer:
1. An engaging app idea
2. Sufficient funds
3. Cross-platform apps
4. Interactive apps
5. Application content management
ETC...
What is the value of the variable result after these lines of code are executed?
>>> a=6
>>> b=2
>>> C=3
>>> result = a*b-alc
The value of the variable is
Answer:
W
Explanation:
W
Answer:
a + b - a|c = 7
Explanation:
"The output of bitwise OR is 1 if at least one corresponding bit of two operands is 1. In C Programming, bitwise OR operator is denoted by |."
-Ayush Rikhra
Good Luck!
What is the term used for information being sent in a packet?
Webpage HTML
Packet contents
Data payload
Multimedia
Answer:
Data payload
Explanation:
A packets contains control information and a data payload.
How many conditions are needed in a while loop that should run until a user guesses the correct number or until they have made five guesses?
Group of answer choices
0
1
2
3
Answer:
2
Explanation:
MS Coding 1 A ED
---------------------------------------------------------------------------------------
I hope this helpedBrainilest appreciated!Where do file name extensions appear?
(Select the best answer.)
O Above the file name
O Below the file name
O At the beginning of the file name
O At the end of the file name
Answer:
At the end of the file name
Explanation:
Answers for 1-6 on 9.3 Lesson Practice Edhesive?
Answer:
1.two
2.row, columns
3.will
4.realize
5.fabric
6.bandana
Explanation:
If this is the quiz after the videos here are the answers that got me through it
WHAT IS A GOOD APP FOR REMOVING VIRUSES AND IT YOU DONT HAVE TO PAY MUCH FOR IT ????? PLEASE HELP ME
Answer:
Best free virus removal and free malware removal tools
Avira Free Antivirus – Offers a larger package of free security tools than most competitors, including real-time AV, malware removal, and a VPN. Bitdefender Antivirus Free Edition: Award-winning free version
How many cubic millimeters are present in 0.0923 m3?
92300000 is the answer.
when converting meter to millimeter we multiply 1000
when converting m³ to cm³ we multiply by 1000000000(1000 x 1000 x1000)
please help me very important
Answer:
C, Or D.
Explanation:
Because A speed enhancing hard drive Can store any type of quick file if you just click on it will load fast. Same thing goes for a hard drive but you have to transfer the file
In order to restrict editing to a document, a user will go to Review, , Restrict Editing, and will then select what kinds of editing are allowed.
Answer:
Then select No Changes (Read only) from the drop-down list
Explanation:
guys tell the answer correctly
Answer:
1st ans: where u can see yellow colored line
2nd ans: currency one
3rd ans: cells
Explanation:
hi my name is jef and sug fdbdsghfda zkuiga gy jb dfsg sadHGa
I totally agree with what you're saying, man. How they haven't placed you upon a golden throne in a kingdom made of steel is something that nobody will ever find out.
I need the answer ASAP. I’ll mark brainliest if right
Answer:
copy or repeat
Explanation:
cual es la importancia de la red WAN
Explanation:
Las WAN se utilizan para conectar redes LAN y otros tipos de redes. Así los usuarios se pueden comunicar con los usuarios y equipos de otros lugares. Muchas WAN son construidas por una organización en particular y son privadas.
what do we call goods that are no longer available once you have used them??
Answer:
Either limited sources or extinct
Explanation:
Natural resources are things that can easily be replaced by nature. Limited resources are something that cannot be replaced by nature <33
Describe how to create a new folder on the desktop
Justt create a new folder!
What is the opinion that David Ellis has about technology
Answer:
his opinion is that technology is running our lives
Explanation:
lemme know if I needa right more
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.
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.
Decimal numbers are based on __________.
letters (a and b)
16 digits
10 digits
two digits (1s and 0s)
Answer:
They are based on 10 digits.
Explanation:
I just did the test and got the answer right.
7.4 code practice question 1 edhesive
Answer:
7.4 Code Practice: Question 1
def GPAcalc(g):
if g == "a" or g == "A":
return 4
elif g == "B" or g == "b":
return 3
elif g == "C" or g == "c":
return 2
elif g == "D" or g == "d":
return 1
elif g == "F" or g == "f":
return 0
Explanation:
Answer:
def GPAcalc(letterG):
if "a" in letterG.lower():
return 4
elif "b" in letterG.lower():
return 3
elif "c" in letterG.lower():
return 2
elif "d" in letterG.lower():
return 1
elif "f" in letterG.lower():
return 0
else:
return("Invalid")
letterGrade = input("Enter your Letter Grade: ")
grade = GPAcalc(letterGrade)
print("Your GPA score is: " + str(grade))
Explanation:
yuh yuh
How will you apply the different wiring devices according to its main purposes and functions?
Answer:Wiring devices are current-carrying electrical or electronic products that serve primarily as a connection or control point for electrical circuits within a range of 0–400 amperes, 0–600 volts (AC and DC), and AC/DC (660 watts, 1,000 volts AC fluorescent) as well as certain non-current-carrying wiring devices and supplies.
Wiring devices include:
Convenience plugs and power outlets (plugs and receptacles)
Connector bodies and flanged outlets
Cover plates
General-use switches and dimmers
Lampholders (incandescent, fluorescent, cold cathode, neon, quartz lamps, and others)
Lighting control devices
Motion sensing and timer switches
Receptacles
Switch, outlet, FM/TV, blank, and telephone plates
Undercarpet premise wiring systems
Products include receptacle-type arc-fault circuit interrupters (AFCIs), protection devices that can detect an unintended electrical arc and disconnect the power before the arc starts a fire. AFCI technology in residential and commercial buildings is an important electrical safety device.
what is local area network
Explanation:
local area network is a computer network that interconnects computers within a limited area such as a residence, school, laboratory, university campus or office building. By contrast, a wide area network not only covers a larger geographic distance, but also generally involves leased telecommunication circuits.
hope it helps
Answer and Explanation:
A local area network is a computer network that interconnects computers within a limited area such as a residence, school, laboratory, university campus or office building. The function of Local Area Networks is to link computers together and provide shared access to printers, files, and other services..
The number of mobile app users in 2022 is expected to reach _____.
178 billion
220 billion
200 billion
258 billion
Answer:
258B
Explanation:
who doesn't like reeses
Answer:
I like Reeses. but then sometimes I don't
literally nobody lol