Can you structure this code in if-statements?
public int getdata(int datanumber)
...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 07.11.2019 17:31 spezzatti221
Can you structure this code in if-statements?
public int getdata(int datanumber)
{
switch(datanumber)
{
case 1: return quizscore1;
case 2: return quizscore2;
case 3: return quizscore3;
default: return (integer) null;
}
}
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 21.06.2019 23:00, zahraa244
Describe in pseudocode an algorithm that given an integer n and a linked list of elements increases the linked list by a factor of n by replacing each element in the original list with n copies of that element. for example, if l: [18, 7, 4, 24, 11] and n = 3 the resulting list should be l: [18, 18, 18, 7, 7, 7, 4, 4, 4, 24, 24, 24, 11, 11, 11]. if the value of n is less than or equal to 0, the list should be empty after the call. what’s the running time of your algorithm?
Answers: 3
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 15:00, 2alshawe201
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 10:00, austintules2005
Whats three fourths of 15(this is supposed to be in math but i clicked too fast)
Answers: 1
You know the right answer?
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 14.12.2020 21:20
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 14.12.2020 21:20
![Konu](/tpl/images/cats/en.png)
English, 14.12.2020 21:20
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 14.12.2020 21:20
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/fr.png)