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
Nutka1998 [239]
3 years ago
5

4.2 lesson practice edhesive

Computers and Technology
1 answer:
Delvig [45]3 years ago
8 0

Answer:

Following are the code to this question:

m=3#defining a variable m  

while(m<22):#defining a while loop to count value  

 print(m)#print value

 m=m+3#increment the value by 3

Output:

Please find the attached file.

Explanation:

Note: In the given question, it is not clear that what the question asks about so, we describe the code above and its description can be defined as follows.

In the above code, an integer variable m is defined, that holds an integer value, in the next step, it uses a while loop to increment the value by 3 and use the print method to print its calculated value.

You might be interested in
Donna is in the Outlook Today window and clicks the F1 button on her keyboard. What is Donna most likely trying to do?
Jobisdone [24]
I believe the answer is D. <span>use the Help feature of Outlook
In general, f1 is the shortcut to access help feature in almost all computer program.
Other than using this method, Donna could also use 'tell me what to do' phrase in the query box in order to access the feature.</span>
8 0
3 years ago
Read 2 more answers
How can we use sprites to help us keep track of lots of information in our programs?
DIA [1.3K]

Explanation:

what kind of sprites do you mean?

8 0
3 years ago
Create an application that calculates and displays the amount of a homeowner's property tax. The tax is 1.35% of the property's
Valentin [98]

Answer:

a) Planning chart:

Create the form, and add two buttons, calculate and exit, and add two labels and two textboxes, as shown in the second image. Now code the buttons as shown in the image file, and debug. The required program is ready.

b) The design is as shown in the second image,

c) And the code for the windows form is also ready. Steps in brief. Open visual studio, Go to file menu and hit on New. Now choose Windows form from project type, and give the project name VB2017/chap02. Now code as explained in A, and as explained in images.

D) We just need to follow the plan to build the interface.

E) The code of exit button. Double click exit button to enter code-behind, and add this.Close(); And that's it, we have the project ready.

Explanation:

Please check the answer section.

And If you want Rounded off value, then you need to all below code in calc_click method. Double click on calc, and code behind will appear. Add the below code over there:

double tax = Convert.ToDouble((textBox1.Text)) * 5/100;

           double Roundedtax = Math.Round(tax, 2);

           textBox2.Text = Convert.ToString(Roundedtax);

           textBox2.Show();

           textBox3.Text = Convert.ToString(Convert.ToDouble(textBox1.Text) + Convert.ToDouble(textBox2.Text));

           textBox3.Show();

For dollar sign, add a label after each textbox, and change its text to $s.

5 0
3 years ago
Create a function void process(char ch, int x, int y)- to accept an arithmetic operator (+,-./, in argum
saul85 [17]

Answer:

The program is as follows:

import java.util.*;

public class Main{

   public static void process(char ch, int x, int y){

if(ch == '+'){

    System.out.print(x+y);  }

else if(ch == '-'){

    System.out.print(x-y);  }

else if(ch == '*'){

    System.out.print(x*y);  }

else if(ch == '/'){

    if(y!=0){

        double num = x;

        System.out.print(num/y);      }

    else{

        System.out.print("Cannot divide by 0");     } }

else{

    System.out.print("Invalid operator"); }

 }

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 int x, y;

 char ch;

 System.out.print("Enter two integers: ");

 x = input.nextInt(); y = input.nextInt();

 System.out.print("Enter operator: ");

 ch = input.next().charAt(0);  

 process(ch,x, y);

}

}

Explanation:

The function begins here

   public static void process(char ch, int x, int y){

If the character is +, this prints the sum of both integers

<em> if(ch == '+'){</em>

<em>     System.out.print(x+y);  }</em>

If the character is -, this prints the difference of both integers

<em> else if(ch == '-'){</em>

<em>     System.out.print(x-y);  }</em>

If the character is *, this prints the product of both integers

<em> else if(ch == '*'){</em>

<em>     System.out.print(x*y);  }</em>

If the character is /, this prints the division of both integers.

<em> else if(ch == '/'){</em>

<em>     if(y!=0){</em>

<em>         double num = x;</em>

<em>         System.out.print(num/y);      }</em>

<em>     else{</em>

<em>This is executed if the denominator is 0</em>

<em>         System.out.print("Cannot divide by 0");     } }</em>

Invalid operator is printed for every other character

<em>else{</em>

<em>     System.out.print("Invalid operator"); }</em>

<em> </em> }

The main begins here

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

This declares both integers

 int x, y;

This declares the operator

 char ch;

Get input for both integers

<em>  System.out.print("Enter two integers: ");</em>

<em>  x = input.nextInt(); y = input.nextInt();</em>

Get input for the operator

<em>  System.out.print("Enter operator: ");</em>

<em>  ch = input.next().charAt(0);   </em>

Call the function

 process(ch,x, y);

}

}

6 0
3 years ago
Select the correct answer.
andriy [413]

Answer:

C. Rulers indicate the margins, tabs, and indents in a presentation slide.

Explanation:

The status bar appears at the bottom of the page, and it never displays options the options to style the slides. And the toolbar never displays the thumbnails of the slides, as well as the document area never provides a list of the commands for creating, formatting or editing the presentations. However, the rules do indicates the margins, tabs, and indents in a presentation slide. Hence C. is the right option.

8 0
3 years ago
Other questions:
  • What term identifies a blank screen or animation that automatically displays on a computer monitor after a specified period of i
    9·1 answer
  • An example of a __________________ in the United States are computer hackers, whose members engage in actions that subvert autho
    11·1 answer
  • What is a benefit of Virtualization for organizations?
    15·2 answers
  • The rules of right-of-way<br> Pedestrians, bicyclists, and skateboarders<br> when they use the road.
    12·1 answer
  • The visitor's age is stored in the variable age, the day of the week is stored in a variable day, and the price in dollars is st
    8·1 answer
  • Ben is writing a paper for his college history class, and he wants to include some information he found on a Web site. What are
    5·1 answer
  • JAVA
    10·1 answer
  • Digital security measures include _____. Select 2 options.
    11·2 answers
  • Copying materials from a source text without using is<br> considered plagiarism<br> ?
    5·1 answer
  • Write a pseudocode algorithm to ask the user to input the name of a student, the marks he/she received in a test and the worth o
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!