1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
steposvetlana [31]
3 years ago
15

Rewrite this method so that it avoids the use of a return statement:

Computers and Technology
1 answer:
olganol [36]3 years ago
8 0
Sorry we chose 0 for the denominator
You might be interested in
What types of data might you insert into an Excel workbook to be used in an annual financial statement?
Alex Ar [27]
The correct answer for this question is this one: "numerical and financial data." <span>The types of data that you might insert into an Excel workbook to be used in an annual financial statement includes numerical data and financial data."</span>
Hope this helps answer your question and have a nice day ahead.
4 0
3 years ago
Which job role requires you to set up an internet system access
user100 [1]

indeed I think it is correct

4 0
3 years ago
Ocial need, social resources, and a sympathetic social context are the three points of
Ostrovityanka [42]
The correct answer to the question is Option D (<span>social involvement in technology innovation). It has been said that there are three points at which there must be some social involvement in </span><span>technological innovation:
1. So</span><span>cial need
2. Social resources
3. A sympathetic social ethos

If there is a default in any of these three factors, it is unlikely that a </span>technological innovation will be widely adopted or successful.
8 0
3 years ago
The Fibonacci sequence starts 1, 1, 2, 3, 5, 8, .. . . Each number in the se-quence (after the first two) is the sum of the prev
dem82 [27]

Answer:

value=int(input("Enter the number up-to the user wants the Fibonacci series: "))

a=0

b=1

c=1

for x in range(value):

   print(c,end=" ")

   c=a+b

   a=b

   b=c

Output :

  • If the user input 5, then the output is "1 1 2 3 5".
  • If the user input 10, then the output is "1 1 2 3 5 8 13 21 34 55".

Explanation:

  • The above defined a python program which is used for the Fibonacci series.
  • The first line of the program is used to instruct the user and take the input from the user.
  • Then the for loop executes up-to that range value.
  • Then in the for-loop, the two variable needs to store the current value and previous value which is used to give the series after addition.
5 0
3 years ago
This program needs to be written in Java. Along with NO For/while loops, and no methods.
Umnica [9.8K]
The only way without a while loop and no method I can think of is use switch with every possible variation of the four digit binary which is 15.

Here is the starter code:

import java.util.Scanner;
public class MyClass {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int digit = sc.nextInt();
switch(digit) {
case 0000:
System.out.println("0");
break;
case 0001:
System.out.println("1");
break;
case 0010:
System.out.println("2");
break;
case 0011:
System.out.println("3");
break;
case 0100:
System.out.println("4");
break;

… (fill in other cases)


}
}
}

Use this link: https://www.electronics-tutorials.ws/binary/bin_3.html

There might be a better way, but without loops or methods this is all I got.
6 0
2 years ago
Other questions:
  • Which consumer document is most likely to help you if you have trouble figuring out how to operate a device
    6·1 answer
  • If a document reaches you, and requires you to perform some action, you should do it immediately if ________.
    11·2 answers
  • A ___________ variable is declared outside all functions.
    15·1 answer
  • Which function is going to find the lowest value in a range of numbers? MIN MAXAVERAGE COUNT
    5·1 answer
  • What is a computer attack where an attacker accesses a wireless computer network, intercepts data, uses network services, and/or
    7·1 answer
  • Will a debit card still work if i put stickers on it?
    15·2 answers
  • assume that youre creating a website for a school. you want to insert pictures of students and teachers. which tag will you use
    8·2 answers
  • WHY IS BRAINLY NOTIFICATIONS LIKE THIS?????
    15·2 answers
  • How do you set up nordvpn with spectrum?
    13·1 answer
  • What type of malicious software tries to gather information about you without your consent?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!