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
vitfil [10]
3 years ago
8

What is the python code for these problems (100 points): Ask the user to enter a name. If there is an ‘a’ in the name, print a m

essage saying ‘The name contains at least one a.’ If there is no ‘a’, print “The name does not contain the letter a.” Extend the previous program and count the number of a’s that come in the name. Ask the user to enter a number. If the number is between 1 and 50, print “The number is too small.” If the number is between 50 and 100, print “The number is too big.” If the number is 50, print “You found me.” If the number is 100, print “You found a tip: The number is between 45 and 60.” The program should keep asking the user for the number until he enters 50. Use a for loop to print numbers from 10 to 40. Ask the user to enter a number. Print all the even numbers till that number using a for loop. Generate a random integer. It can be any number from 1 to 100. Print numbers from 1 to that number. Repeat question 4. Replace the for loop with a while loop. Thanks so much!!!
Computers and Technology
1 answer:
OLEGan [10]3 years ago
4 0

Answer:

Sorry, but I do not know the answer. Although, I will say to go onto codesters, or codehs and they have some free coding classes that can help you get better at coding.

Explanation:

You might be interested in
What is the advantage of defining a target user?
spayn [35]
3) helps the designer develop a website tailored to the desired audience
4 0
3 years ago
Hey I don’t have a question I’m just testing something on this app
Dafna1 [17]

Answer:

hahaha

Explanation:

4 0
3 years ago
Read 2 more answers
What will the computer do in response to a line of code reading # name = input("What is your name?")
lorasvet [3.4K]

Answer:

it would show What is your name? on the screen and you would be able to input your name

Explanation:

4 0
3 years ago
Scientists measure an object’s mass in kilograms and its weight in newtons. If you knowthe amount of mass of an object in kilogr
Phoenix [80]

Answer:

public class WeightCalculator {

   

   private static DecimalFormat df2 = new DecimalFormat("#.##");

   

   public static void main(String args[]){

       //create scanner to receive user input

       Scanner in = new Scanner(System.in);

       //alert user to input mass

       System.out. println("Enter the Mass in Kg");

       //collect the input as a string

       String s = in. nextLine();

       //convert string to double and multiply by 9.8

       Double weight = Double.valueOf(s)* 9.8;

       

       //Print out answer formatted to 2 decimal place

       System.out. println("The Weight is " + df2.format(weight) + "N");

       

       //conditional statement to check if weight is less than 100

       if (weight < 100){

           System.out. println("Oops, it is too light");

       }

       //conditional statement to check if weight is more than 500

       if (weight > 500){

           System.out. println("Oops, it is too heavy");

       }            

   }

}

7 0
4 years ago
you have obtained a program under development to test on your computer. While you are using the program, it crashes with a messa
LenKa [72]

Answer:

It leaves behind Error Code 5

Explanation:

This happens when the parameter provided fails the function requirement this could be as a result of wrong data type or when the parameter provided exceeds the function requirement.

5 0
3 years ago
Other questions:
  • In the two-level directory, if a user refers to a particular file then__________________ Select one: a. only his/her own UFD (us
    7·1 answer
  • If you want to prioritize downloads of your mobile app instead of visits to your mobile site, you should: a) add a sitelink exte
    10·1 answer
  • What is the formula that calculates the session fee for members in excel
    13·1 answer
  • List at least five tasks a layer performs. Could one (or more) of these tasks could be performed by multiple layers?
    13·1 answer
  • You need to set up a network that needs to span multibple buildings. For this reason, you want to use the cabling that supports
    10·1 answer
  • Quien invento el primer vehiculo con motor?
    15·2 answers
  • In Java please:Re-type the code and fix any errors. The code should convert non-positive numbers to 1. if (userNum &gt; 0) Syste
    10·1 answer
  • ?__________ is the term that describes devices that automate many industrial tasks by receiving digital commands and converting
    5·1 answer
  • In a void function, the return statement is not necessarily. True or false? ​
    11·2 answers
  • Write a c++ program which has array in fifteen element sort the array by selection the search for in element using binary search
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!