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
Eva8 [605]
3 years ago
5

Someone help me I don’t know what to do /COMPUTER SCIENCE

Computers and Technology
1 answer:
nydimaria [60]3 years ago
5 0
It kind of depends on the intended language, but I can see the following mistakes:

- lines not terminated with a semicolon (but not all languages require this)
- while statement missing parenthesis, ie., while (num1 <= num2), also not required in all languages
- statements below the while statement must be grouped by curly braces
- num1+5 should be num1=num1+5 or num1 += 5

Output will be:

10
15
20
25
30
You might be interested in
Flash drives cds external disks are all examples of storage (memory) devices
abruzzese [7]
True; you can store anything up to operating systems on them. Come in handy when transferring data from computer to computer.
8 0
3 years ago
PLSS HELP ME!!
Nady [450]

Answer:

1 no. USB port?!?

2no. Hard Disk Drive?!?

3no. Firmware.

7 0
3 years ago
Using word, which tool are best to place <br> images in word and why
stellarik [79]

Answer:

i know

Explanation:

7 0
3 years ago
Read 2 more answers
A corporation needs an operating system that allows the various teams in its office to network and collaborate on projects. Whic
RideAnS [48]

Answer:

The answer is Network Operating System.

Explanation:

<em>Network OS supports network operations and functions. Such operations includes, file-sharing, permission assignments, user groups and privileges, and network security implementation that is needed. Network OS also offers patches, fixes, network monitoring and support unlike with other OS that is focusing more on interface, errors and bugs fix. To install network OS, you need to set up a client and a server computer first.  </em>

<em> To implement network OS in the given scenario, each user will be assigned in a group. Each group is categorized per department to make them communicate and share files within their members. Then there will be a bigger group which involved all departments. The reason why user must be grouped is to prevent other departments to see confidential files which is only authorized to access by certain members. Collaborations can also be conducted per group or to the whole office.  </em>

<em> Example of network OS is Microsoft Server Operating Systems.</em>

5 0
3 years ago
Write a recursive method that tests whether a string is a palindrome. It should return a boolean T or F depending on whether or
Sveta_85 [38]

Answer:

// program in java.

// library

import java.util.*;

// class definition

class Main

{

// recursive function to check palindrome

   public static boolean isPalin(String str){

// base case

     if(str.length() == 0 ||str.length()==1){

        return true;

     }

// if first character is equal to last

     if(str.charAt(0) == str.charAt(str.length()-1))

     {

     // recursive call

        return isPalin(str.substring(1, str.length()-1));

     }

     // return

     return false;

  }

  // main method of the class

public static void main (String[] args) throws java.lang.Exception

{

   try{

    // object to read input

Scanner scr=new Scanner(System.in);

System.out.print("Enter a string:");

 // read string from user

String myString =scr.nextLine();

 // call function to check palindrome

     if (isPalin(myString)){

        System.out.println("Given String is a palindrome");

     }

// if string is not palindrome

     else{

        System.out.println("Given String is not a palindrome");

     }    

   }catch(Exception ex){

       return;}

}

}

Explanation:

Read a string from user and assign it to variable "myString" with scanner object. Call the method isPalindrome() with string input parameter.In this method, if  length of string is 0 or 1 then it will return true(base case) otherwise it will call itself and compare first character with last character.If string is palindrome then function will return true else return false.

Output:

Enter a string:ababa                                                                                                      

Given String is a palindrome

8 0
3 years ago
Other questions:
  • Лемма деген не<br> конспект
    7·1 answer
  • The interaction between information technology and organizations is influenced___________.A) solely by the decision making of mi
    12·1 answer
  • How might the website owner use theses details other than to verify login details?
    6·2 answers
  • Hope wants to add a third use at the end of her
    14·1 answer
  • When two or more tables share the same number of columns, and when their corresponding columns share the same or compatible doma
    12·1 answer
  • Define the terms of data and information .​
    6·1 answer
  • For problems 14 – 21 determine all the roots of the given function.
    12·2 answers
  • Help brainleist giving exam
    15·1 answer
  • How many basic elements of QBASIC are there
    14·1 answer
  • In a database, what term is used to describe a group of fields that are all associated with and accessed using single primary ke
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!