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
quester [9]
3 years ago
9

Modify the program so the output is: Annual pay is 40000 Note: Whitespace (blank spaces / blank lines) matters; make sure your w

hitespace exactly matches the expected output. Also note: These activities may test code with different test values. This activity will perform two tests: the first with wage = 20, the second with wage = 30
Computers and Technology
1 answer:
il63 [147K]3 years ago
4 0

Answer:

The following answer is written in Java Programming Language:

public class Salary {   //define class

 public static void main (String [] args) {  //define main method

   int wage = 20;   //initialize an integer variable

   /* Your solution are here */

   System.out.println("Annual Pay is "+wage * 40 * 50);  //print result

   return;  

 }

}

Explanation:

Here, we define the class  "Salary".

Then, we define the void type main() function inside it we define an integer type variable "wage" and assign value to 20 and after that, we print the result.

After all, we close the main function and then class.

You might be interested in
PLEASE ANSWER
son4ous [18]

Answer:

Turing test is the answer

8 0
3 years ago
Assume that the data on a worksheet consume a whole printed page and two columns on a second page. You can do all of the followi
UNO [17]

Answer:

Option (2) is the correct answer of this question.

Explanation:

We will increase the left and right margins of the data on a worksheet that will consume a whole printed page  and columns on second page then the data will print all in one page.

Following are the steps to print the Data all in on page:-

Step 1.  Choose the Ribbon Page Design button

Step2.  select 1 page in the Scale to Fit category, and in the Width box, we  will automatic choose the height box.                

Step 3 .Finally we will  choose 1 page in the Height box to print your worksheet to a single page.

 "Other options are incorrect because they are not related to the given    question.i.e, to print the data in on page in the worksheet".

4 0
3 years ago
Integers and booleans. Write a program RightTriangle that takes three int command-line arguments and determines whether they con
icang [17]

Answer:

<em>The programming language is not stated;</em>

<em>I'll answer using C++</em>

#include<iostream>

#include<cmath>

using namespace std;

int main()

{

int side1, side2, side3;

cout<<"Enter the three sides of the triangle: "<<endl;

cin>>side1>>side2>>side3;

if(side1<=0 || side2 <= 0 || side3 <= 0) {

 cout<<"Invalid Inputs";

}

else {

 if(abs(pow(side1,2) - (pow(side2,2) + pow(side3, 2)))<0.001) {

  cout<<"Right Angled";

 }

 else if(abs(pow(side2,2) - (pow(side1,2) + pow(side3, 2)))<0.001) {

  cout<<"Right Angled";

 }

 else if(abs(pow(side3,2) - (pow(side2,2) + pow(side1, 2)))<0.001) {

  cout<<"Right Angled";

 }

 else {

  cout<<"Not Right Angled";

 }

}

return 0;

}

Explanation:

The following line declares the three variables

int side1, side2, side3;

The next line prompts user for input of the three sides

cout<<"Enter the three sides of the triangle: "<<endl;

The next line gets user input

cin>>side1>>side2>>side3;

The following if condition checks if any of user input is negative or 0

<em> if(side1<=0 || side2 <= 0 || side3 <= 0) { </em>

<em>  cout<<"Invalid Inputs"; </em>

<em> } </em>

If otherwise

else {

The following if condition assumes that side1 is the largest and test using Pythagoras Theorem

<em>if(abs(pow(side1,2) - (pow(side2,2) + pow(side3, 2)))<0.001) { </em>

<em>   cout<<"Right Angled"; </em>

<em>  } </em>

The following if condition assumes that side2 is the largest and test using Pythagoras Theorem

<em>  else if(abs(pow(side2,2) - (pow(side1,2) + pow(side3, 2)))<0.001) { </em>

<em>   cout<<"Right Angled"; </em>

<em>  } </em>

The following if condition assumes that side3 is the largest and test using Pythagoras Theorem

<em>  else if(abs(pow(side3,2) - (pow(side2,2) + pow(side1, 2)))<0.001) { </em>

<em>   cout<<"Right Angled"; </em>

<em>  } </em>

If none of the above conditions is true, then the triangle is not a right angles triangle

<em>  else { </em>

<em>   cout<<"Not Right Angled"; </em>

<em>  } </em>

}

return 0;

Download cpp
4 0
4 years ago
What is software? Why is it needed? ​
sesenic [268]

Computer software, also known simply as software, also known by overseas Vietnamese as software is a collection of data or commands that instruct the computer to tell the computer how to work.  This is in contrast to the physical hardware, from which the system is built and actually does the work.  Because it helps people perform functions that humans can't do or do for a very long time

8 0
3 years ago
An administrator needs to set up an authentication server for users connecting to a network through a VPN. What kind of server c
Leya [2.2K]

Answer:

RADIUS

Explanation:

The administrator needs to set up a RADIUS server for this particular example, RADIUS is a networking protocol, this protocol provides centralized Authentication, Authorization for users who connect and use a network service, this is an authentication remote service, and we can use it with the VPN  (virtual private networks).

7 0
3 years ago
Other questions:
  • What kind of digital certificate is typically used to ensure the authenticity of a web server to a client?
    7·1 answer
  • To save a file so that it can be opened on most computers, select the ____ option.
    10·2 answers
  • Imagine you're developing a Pokemon game, and you need to implement the battle party mechanic. Recall that the player's party ca
    10·1 answer
  • In which country did the World Cyber Games originate?
    9·2 answers
  • Is phone data used when connected to wifi
    12·1 answer
  • What is malware? a type of virus that spreads through a network connection a type of virus that targets programs and files any p
    8·1 answer
  • In computer science what are the methods used to protect the information stored by a piece of software called?
    10·1 answer
  • Question 22 of 25
    10·1 answer
  • Fill in the blanks to help write this professional e-mail:
    6·1 answer
  • True or false: If you have a 32-bit CPU architecture, it's recommended to use a 64-bit operating system.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!