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
uranmaximum [27]
3 years ago
11

+ Use for loop to print numbers from 100 to 10

Computers and Technology
1 answer:
nika2105 [10]3 years ago
5 0

for x in range(100,9,-10):

   print(x)

I wrote my code in python 3.8. I hope this helps.

You might be interested in
What should be used to keep a tablet dry?
Firlakuza [10]

Answer: A duster so it won't be wet

Explanation:

5 0
3 years ago
How to write pseudo code that compute net salary = basic salary + transport + medical + housing - deduction​
igomit [66]

Answer:

Begin (Program Start)

Ask for BASIC SALARY from user!

Get BASIC SALARY.

Ask for TRANSPORT (FEE) from user!

Get TRANSPORT (FEE) .

Ask for MEDICAL (FEE) from user!

Get MEDICAL (FEE) .

Ask for HOUSING (FEE) from user!

Get HOUSING (FEE) .

Ask for DEDUCTION from user!

Get DEDUCTION.

NET SALARY = basic salary + transport + medical + housing - deduction

Calculate NET SALARY and DISPLAY it to the user.

End

6 0
3 years ago
Write a program that deliberately contains an endless or infinite while loop. The loop should generate multiplication questions
Westkost [7]

Answer:

The Java code is given below with appropriate variable names for better understanding

Explanation:

import java.util.Random;

import java.util.Scanner;

public class MultiplicationQuestions {

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       Random rand = new Random();

       int n1, n2, result, total = 0, correct = 0;

       char ch = 'y';

       while(ch == 'y'){

           n1 = 1 + rand.nextInt(9);

           n2 = 1 + rand.nextInt(9);

           System.out.print("What is "+n1+" * "+n2+" ? ");

           result = scan.nextInt();

           if(result==n1*n2){

               System.out.println("Correct. Nice work!");

               correct++;

           }

           else{

               System.out.println("Incorrect. The product is "+(n1*n2));

           }

           System.out.print("Want more questions y or n ? ");

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

           total++;

       }

       System.out.println("You scored "+correct+" out of "+total);

   }

}

3 0
3 years ago
In what ways are outlook notes useful for personal or professional use?
RSB [31]

Answer:

Hope this helps ya out

Explanation:

Microsoft Outlook is an application that is used mainly to send and receive emails. It can also be used to manage various types of personal data including calendar appointments and similar entries, tasks, contacts, and notes

6 0
3 years ago
Write a function called PayLevel that returns a level given an Ssn as input. The level are: "Above Average" if the employee mak
kotykmax [81]

Answer:

Explanation:

Since no further information was provided I created the PayLevel function as requested. It takes the Ssn as input and checks it with a premade dictionary of Ssn numbers with their according salaries. Then it checks that salary against the average of all the salaries and prints out whether it is Above, Below, or Average. The output can be seen in the attached picture below.

employeeDict = {162564298: 40000, 131485785: 120000, 161524444: 65000, 333221845: 48000}

average = 68250

def PayLevel(Ssn):

   pay = employeeDict[Ssn]

   print("Employee " + str(Ssn) + " is:", end=" "),

   if pay > average:

       print("Above Average")

   elif pay < average:

       print("Below Average")

   else:

       print("Average")

PayLevel(161524444)

PayLevel(131485785)

7 0
3 years ago
Other questions:
  • Does anyone have any social media message me
    14·1 answer
  • If x window system is installed, linux users can use x11 forwarding to run __________ as they would on a windows computer. gui a
    11·1 answer
  • A bakery sells three types of muffins whose prices are as follows: 1- blueberry muffin, $2.98 2- chocolate chip muffin, $4.50 an
    6·1 answer
  • Complete the following sentences by choosing the best answer from the drop-down menus.
    5·1 answer
  • Education is better than money give point​
    13·1 answer
  • 1. Answer the following questions: a. What are the different types of number system? Name them.​
    8·1 answer
  • Finish the code to search for a 7 in the array.
    9·1 answer
  • PLEASE BE CONFIDENT ABOUT YOUR ANSWER
    11·2 answers
  • What is the half of 3/18
    6·1 answer
  • What is the optimal number of members for an Agile team?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!