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
Oliga [24]
3 years ago
13

Grade 10 python exercise

Computers and Technology
1 answer:
lbvjy [14]3 years ago
7 0

number = 547

nums = {1:"one", 2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine"}

print("The last digit of",number,"is",nums[number%10])

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

You might be interested in
Prompt the user to input five pairs of numbers: A player's jersey number (0 - 99) and the player's rating (1 - 9). Store the jer
tiny-mole [99]

Answer:

  1. import java.util.Scanner;
  2. public class Main {
  3.    public static void main (String [] args) {
  4.        int jersey_num [] = new int[5];
  5.        int rating [] = new int[5];
  6.        Scanner inStream = new Scanner(System.in);
  7.        for(int i=0; i < 5; i++){
  8.            System.out.print("Enter player " + (i+1) + "'s jersey number:");
  9.            jersey_num[i] = inStream.nextInt();
  10.            System.out.print("Enter player " + (i+1) + "'s rating:");
  11.            rating[i] = inStream.nextInt();
  12.        }
  13.        System.out.println("ROSTER");
  14.        for(int j=0; j < 5; j++){
  15.            System.out.println("Player " + (j+1) + "-- Jersey number: " + jersey_num[j] + ", Rating: " + rating[j]);
  16.        }
  17.    }
  18. }

Explanation:

The solution code is written in Java. Firstly create two array, jersey_num and rating, with int type. This is to hold the five pairs of numbers input by user (Line 6 -7).

Next, create a for loop that run for 5 iterations and in each iteration prompt user to input jersey number and rating (Line 11 -17). The input number and rating will be set to the array, jersey_num and rating, respectively.

Next, print the title "Roster" (Line 19).

Create another for loop to display the five input pair of values (Line 21 - 23).

3 0
3 years ago
The reading element punctuation relates to the ability to
Goshia [24]
The ability to pause
3 0
3 years ago
Translating an algorithm into the syntax of Java is the design phase of software development.
Digiron [165]

Answer:

I think it's false

Explanation:

I don't think so. What makes me hesitate is that you may have been told that in your text or in the classroom.

Here are the steps as I understand them.

  1. Understand the problem you are trying to solve.
  2. Design a solution.
  3. Draw a flow chart.
  4. Write pseudo-code.
  5. Write code.
  6. Test and debug.

I think you've done the designing long before you start writing code or even pseudo-code.

4 0
2 years ago
I need help please!!?
tensa zangetsu [6.8K]

Answer: C. Shaking hands after a game/contest

Have a nice day!

5 0
3 years ago
Read 2 more answers
A circuit is supplied with 30 VDC and contains three resistors connected in series. The value or R1 is 80 , the value of R2 is 1
sukhopar [10]
The answer is 5.68 Volts.

So givens are electric supply of 30 VDC and the values of 3 resistors. 

Given:
E= 30 VDC
R1 = 80 Ohms
R2 = 1000 Ohms
R3= 42000 Ohms

And what we are looking for is the voltage on the second resistor.
First we have to get the current of the circuit.

I = E/(R1+R2+R3)
I = 30 / (80+1000+4200)
I = 30 / (5280)
I = 0.00568 A

Then get the voltage V = I x R

V = 0.00568 x 1000
V = 5.68 V
4 0
3 years ago
Other questions:
  • What is a computer ?it types​
    11·2 answers
  • How could TWC continue to leverage mobile apps to further monetize its significant investment in its weather data? What addition
    6·1 answer
  • To what would you compare the transport layer?
    14·1 answer
  • Presently we can solve problem instances of size 30 in 1 minute using algorithm A, which is a algorithm. On the other hand, we w
    8·1 answer
  • One advantage of a resource like the World Wide Web is that it connects people with problems to people who have__
    14·1 answer
  • What are the side effects of overclocking?
    13·1 answer
  • What were black codes?
    7·2 answers
  • "Na2SO3” represents sodium sulfite.
    13·2 answers
  • PLEASE ANSWER FAST, WILL GIVE BRAINLIEST AND 20 POINTS
    11·2 answers
  • Microsoft Access is a
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!