Write a Python program that asks the user for their name and then prints the name out in all uppercase and then in all lowercase letters. The output should look like this:

What is your name? Maria

Your name in all uppercase letters is: MARIA

Your name in all lowercase letters is: maria

Answers

Answer 1

Answer:

name = input("What is your name? ")

print("Your name in all uppercase letters is " + name.upper()

print("Your name in all lowercase letters is " + name.lower()

Explanation:

The first line takes in the user input and stores it in the variable name.

The second line concatinates the string with the variable name. Then to turn the string name to upper case i used the .upper() in built python method. and did the same thing with the .lower()

Answer 2

Answer:

print("What is your name?")

string = "Your name in Uppercase letters:MARIA"

print(string.upper())

string = "Your name in lowercase letters"

print(string.llower())


Related Questions

Monster Collector
Write this program using an IDE. Comment and style the code according to the CS 200 Style Guide. Submit the source code files (.java) below. Make sure your source files are encoded in UTF-8. Some strange compiler errors are due to the text encoding not being correct.
Monster collector is a game of chance, where the user tries to collect monsters by guessing the correct numbers between 1 and 5. If the user doesn't guess the incorrect number, you catch the monster, otherwise, it gets away!
Example output:
Welcome to Monster Collector, collect 2 monsters to win!
A wild pikamoo appears! Guess a number between 1 and 5
5
You almost had it, but the monster escaped.
A wild bulbaroar appears! Guess a number between 1 and 5
1
Congratulations, you caught bulbaroar!
There are no more monsters to encounter!
You caught i monsters of 2
Keep training to be the very best!
Welcome to Monster Collector, collect 2 monsters to win!
A wild pikamoo appears! Guess a number between 1 and 5
3
Congratulations, you caught pikamoo !
A wild bulbaroar appears! Guess a number between 1 and 5
1
Congratulations, you caught bulbaroar!
There are no more monsters to encounter!
You caught 2 monsters of 2
You're the monster collector master!
A more detailed explanation of the requirements for each method will be in the method header comments - please follow these closely. Suggested order of completion:getMonster(), catchMonster(), printResult() then main(). Config.java contains an array of monsters, and the seed for your random number generator.

Answers

Answer:

In java:

import java.util.*;

public class Main{

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 int monsternum, usernum;

 int count = 0;

 Random rand = new Random();

 String [] monsters = {"wild pikamoo","wild bulbaroar"};

 for(int i =0;i<2;i++){

     monsternum = rand.nextInt(5);  

     System.out.print("A "+monsters[i]+" appears! Guess a number between 1 and 5: ");

     usernum = input.nextInt();

     if(monsternum == usernum){      count++;      System.out.println("Congratulations, you caught a "+monsters[i]+"!");  }

 else{      System.out.println("You almost had it, but the monster escaped.");  }

 

 }

 System.out.println("There are no more monsters to encounter!");

 System.out.println("You caught "+count+" monsters of 2");

 if(count!=2){      System.out.print("Keep training to be the very best!");  }

 else{      System.out.print("You're the monster collector master!");  }

}

}

Explanation:

This declares monster and user number as integers

 int monsternum, usernum;

Initialize count to 0

 int count = 0;

Call the random object

 Random rand = new Random();

Create a string array to save the monster names

 String [] monsters = {"wild pikamoo","wild bulbaroar"};

Iterate for the 2 monsters

 for(int i =0;i<2;i++){

Generate a monster number

     monsternum = rand.nextInt(5);  

Prompt the user to take a guess

     System.out.print("A "+monsters[i]+" appears! Guess a number between 1 and 5: ");

Get user guess

     usernum = input.nextInt();

If monster number and user guess are equal, congratulate the user and increase count by 1

     if(monsternum == usernum){      count++;      System.out.println("Congratulations, you caught a "+monsters[i]+"!");  }

If otherwise, prompt the user to keep trying

 else{      System.out.println("You almost had it, but the monster escaped.");  }  

 }

Print no monsters again

 System.out.println("There are no more monsters to encounter!");

Print number of monsters caught

 System.out.println("You caught "+count+" monsters of 2");

Print user score

 if(count!=2){      System.out.print("Keep training to be the very best!");  }

 else{      System.out.print("You're the monster collector master!");  }

Where should a photographer place lights for a headshot? Headshot lighting is more important with darker backgrounds. The light should be at a 45-degree angle from the subject. The light should be in front of the subject. The third light should be the subject to form a ring of light around the subject’s hair.

Answers

Answer:

Headshot lighting is more important with darker backgrounds. The  

(key)  light should be at a 45-degree angle from the subject. The  

(fill)  light should be in front of the subject. The third light should be  

(behind) the subject to form a ring of light around the subject’s hair.

Explanation:

i searched it up individually and thats what i got

Solving Systems of Equations by Substitution
pdf

Answers

Bro look on photo math cjjdjsj

Wesley purchased a word-processing software program. He used it for a year, during which he got regular updates every two months. After a year, he was not allowed to update the software. However, he could continue using it. Why did the updates stop?

Answers

Group of answer choices.

A. The software was corrupt and resulted in a bug.

B. He purchased a license with maintenance for a year.

C. The organization discontinued the software.

D. He purchased an open-source license.

E. He purchase a perpetual non-maintenance license.

Answer:

B. He purchased a license with maintenance for a year.

Explanation:

A software can be defined as a set of executable instructions (codes) or collection of data that is used typically to instruct a computer how to perform a specific task and to solve a particular problem.

Basically, softwares are categorized into two (2) main categories and these are;

I. Open-source software.

II. Proprietary software.

A proprietary software is also known as a closed-source software and it can be defined as any software application or program that has its source code copyrighted and as such cannot be used, modified or distributed without authorization from the software developer. Thus, it is typically published as a commercial software that may be sold, licensed or leased by the software developer (vendor) to the end users with terms and conditions.

In this scenario, Wesley purchased a word-processing software program. He used it for a year, during which he got regular updates every two months. However, after a year, he was not allowed to update the software but he could continue using it.

This ultimately implies that, Wesley purchased a licensed software with maintenance for a year and as such he would stop receiving an update from the software developer after his subscription expired.

Find the number of ways in which a committee of 4 can be chosen from six boys and
six girls if it must contain at least one boy and one girl.​

Answers

Answer:

465 ways

Explanation:

Atleast 1 girl and 1 boy

Possible combinations :

1 girl ; 3 boys = 6C1 ; 6C3

2 girls ; 2 boys = 6C2 ; 6C2

3 girls ; 1 boy = 6C3 ; 6C1

(6C1 * 6C3) + (6C2 * 6C2) + (6C3 * 6C1)

Combination formula:

nCr = n! ÷ (n-r)!r!

We can also use a calculator :

6C1 = 6

6C3 = 20

6C2 = 15

Hence,

(6C1 * 6C3) + (6C2 * 6C2) + (6C3 * 6C1)

(6 * 20) + (15 * 15) + (20 * 6)

120 + 225 + 120

= 465 ways

See the picture and answer the coding question

Answers

Answer:

Actually I don't know computer so I can't help you sorry bro

Take a better picture please

How do most benchmark tests measure the performance of a graphic card​

Answers

Answer:

Using Frame Rate

Explanation:

Most benchmark tests measure the performance of a graphic card​ by using "Frame Rate"

This is because using Frame Rate assesses and then measures the number of images a GPU (graphic processing unit) can render and at the same time the number of images that are being shown on a monitor or screen per second.

Hence, in this case, the correct answer is "Frame Rate"

Information Technology




Answers

Answer:

whats the question

Explanation:

Answer:   The study or use of systems. Especially computers and telecommunications for storing, retrieving, and sending information.

Explanation: I don't know what you're asking buddy. If you're asking for the definition then there you go. Next time add the question :)

please help me on this coding problem :)

Consider the following code segment.

int a = 0;
int b = 3;

while ((b != 0) && ((a / b) >= 0)
{
a = a + 2;
b = b - 1;
}
What are the values of a and b after the while loop completes its execution?

a = 4, b = 1
a = 0, b = 3
a = 6, b = 0
a = 8, b = -1

Answers

Answer:

a=4 , b=1

Explanation:

I'm not a computer science major at all but I think I can help you with this code.

Our program wants us to add 2 to a get new a value while also subtracting 1 from b value to obtain new b value. We we want to for for as long b is not 0 and a/b is nonnegative.

One round we get:

New a=0+2=2

New b=3-1=2

Let's see if we can go another round:

New a=2+2=4

New b=2-1=1

We can't go another round because b would be negative while a is positive which would make a/b negative. So our loop stops at this 2nd round.

a=4 , b=1

Other notes:

2nd choice makes no sense because a is always going to increase because of the addition on a and b was going to decrease because of the subtraction on it.

Third choice makes no sense because a/b doesn't even exist.

Fourth choice a/b is negative not nonnegative.

Helllp me you will git 16 points

Answers

Answer:

False

Hope it helps...

Have a great day :P

Answer is false.................

Y’all what’s some celebrities that have kids??

Answers

Answer:

Angelina Jolie

Parents: Jon Voight, Marcheline Bertrand

Eddie Murphy

Parents: Charles Edward Murphy, Lillian Murphy

Sandra Bullock

Parents: Helga Meyer, John W. Bullock

Kate Hudson

Parents: Goldie Hawn, Bill Hudson

Katie Holmes

Parents: Kathleen A. Stothers-Holmes, Martin Joseph Holmes, Sr.

Reese Witherspoon

Parents: Betty Reese, John Witherspoon

Meryl Streep

Parents: Harry William Streep, Jr., Mary Wolf Wilkinson

Oprah Winfrey

Parents: Vernon Winfrey, Vernita Lee

Tina Fey

Parents: Zenobia Xenakes, Donald Fey

Uma Thurman

Parents: Nena von Schlebrügge, Robert Thurman

David Beckham

Parents: David Edward Alan Beckham, Sandra Georgina West

Susan Sarandon

Parents: Leonora Marie Criscione, Phillip Leslie Tomalin

Sofía Vergara

Parents: Julio Enrique Vergara Robayo, Margarita Vergara Dávila de Vergara

Hilary Duff

Parents: Susan Colleen Duff, Robert Duff

Miley Cyrus

Parents: Billy Ray Cyrus, Tish Cyrus

Zoë Kravitz

Parents: Lisa Bonet, Lenny Kravitz

Beyoncé

Parents: Tina Knowles, Mathew Knowles

Alexis Bledel

Parents: Nanette Bledel, Martin Bledel

Hugh Grant

Parents: Finvola Grant, James Grant

Britney Spears

Parents: Lynne Spears, Jamie Spears

Cindy Crawford

Parents: Jennifer Sue Crawford-Moluf, John Crawford

Adele

Parents: Penny Adkins, Mark Evans

Gwyneth Paltrow

Parents: Blythe Danner, Bruce Paltrow

Solange Knowles

Parents: Tina Knowles, Mathew Knowles

Hoda is creating a report in Access using the Report Wizard. Which option is not available for adding fields using the wizard?

1. Tables
2. Queries
Reports
All are available options.

Answers

Answer:

Reports

Explanation:

Answer:

reports

Explanation:

How can a user restore a message that was removed from the Deleted Items folder?


by dragging the item from Deleted Items to the Inbox

by dragging the item from Deleted Items to Restored Items

by clicking on "Recover items recently removed from this folder"

by clicking on the Restore button in the Navigation menu

Answers

Answer:

by clicking on "Recover items recently removed from this folder".

Answer:

c

Explanation:

Which wizard is a tool provided by Access that is used to scan the table's structure for duplicate?

O Query Design Wizard
O Table Design Wizard
O Table Analyzer Wizard
O Performance Analyzer Wizard

Answers

Answer:

The tool provided by access that’s used to scan the table’s structure for duplicate is “Table Analyzer Wizard”.

1. Define Primary Key. Why do we need primary key ?

2. Define Field size.

3. Define Validation Rule.

4. . Not leaving the house and a lack of exercise can cause health problems like obesity. TRUE OR FALSE

5. Rebecca only works 3 days in a week but she works longer hours each day to ensure she hits the 40-hour work week.
-art-time working
-Compressed hours
-Job sharing
-Flexible hour

Answers

Answer:

1 .The main purpose of primary key is to identify the uniqueness of a row, where as unique key is to prevent the duplicates, following are the main difference between primary key and unique key.

Explanation:

2. Field size means the dimensions along the major axes of an area in a plane perpendicular to the central axis of the useful beam of incident radiation at the normal treatment distance and defined by the intersection of the major axes and the 50 percent isodose line.

PLEASE HELP IM STUCK!!!!!!!!!!!!!!!!!!!!! Which of the following terms is described as "the art and design of using text”?
O typography
O elements of design
O typos
O graphic design

Answers

typography is the correct answer

yes how many poly pockets if I had 10 and gave 2 to esmeraldas father who died and left 1 to his cat, sir whisker?

Answers

Answer:

Total 13 poly packets are there

Explanation:

Total number of poly packets = 10

Number of poly packets given to esmeraldas father = 2

Number of poly packets left with his cat = 1

Total remaining poly packets = 10 + 2 + 1 = 10 + 3 = 13

please help me with this coding problem :)

Consider the following field and incomplete method of some class. The method calcTotal is intended to return the sum of all values in vals.

private int[] vals;

public int calcTotal()
{
int total = 0;

/* missing code */

return total;
}
Which of the code segments shown below can be used to replace /* missing code */ so that calcTotal will work as intended?

I.
for (int i : vals)
{
total += i;
}
II.
for (int pos = vals.length; pos > 0; pos--)
{
total += vals[pos];
}
III.
int pos = 0;
while (pos < vals.length)
{
total += vals[pos];
pos++;
}


I only
II only
I and III
II and III
III only

Answers

Answer:

ll and lll

Explanation:

list dont be a looser

Why is it important that you cite your sources?

Answers

Answer:

1. It gives credit to the authors/creators who's work you used.

2. Allows people who read your work a way find your sources if they want to learn more.


10. List three adaptations of wind-pollinated plants to promote pollination.

Answers

Answer:

No bright colors, special odors, or nectar.

Small.

Most have no petals.

You should always keep a backup of data stored in the cloud because the cloud provider does not automatically do this True or false???

Answers

Answer:

False

Explanation:

paisa pay is facilitated in which e commerce website​

Answers

Answer:

The answer is "Option A".

Explanation:

The PaisaPay is the digital payment service of eBay, whereby buyers can pay sellers through credit card or Online Money Order. For quick, safe transactions or their cash back, their buyers must use PaisaPay. So, it is easier to go to eBay.co.in, was its digital payment service of eBay, whereby purchasers can charge vendors by credit card or Online Bank Transfer.

please help
Consider the following code segment.

int a = 0;
int b = 3;

while ((b != 0) && ((a / b) >= 0)
{
a = a + 2;
b = b - 1;
}
What are the values of a and b after the while loop completes its execution?

a = 4, b = 1
a = 0, b = 3
a = 6, b = 0
a = 8, b = -1

Answers

Answer:

a = 6, b = 0

Explanation:

The loop ran 3 times before b == 0. The statement "while ((b != 0)" is essentially saying: 'While b is not equal to 0, do what's in my loop'. Same general thing with "&& ((a / b) >= 0)". The "&&" is specifying that there should be another loop condition. The final part of the while loop states: 'as long as a ÷ b is greater than 0, do what's in my loop'. If all of these conditions are met, the loop will run. It will continue to run until at least one of the conditions are not met.

Side note: I can't help but notice you posted the same question a while ago, so I just copied and pasted my previous response with some tweaking here and there. Hope this helps you! :)

How can you create the first row of the table as the header of the table?
In the Insert Table dialog box, you select the ______
checkbox to create the first row as the header of the table.

Answers

Answer:

table style option

Explanation:

Answer: table style

Explanation:

You have just started a new job as the administrator of the eastsim domain. The manager of the accounting department has overheard his employees joke about how many employees are using "password" as their password. He wants you to configure a more restrictive password policy for employees in the accounting department. Before creating the password policy, you open the Active Directory Users and Computers structure and see the following containers and OU: eastsim Builtin Users Computers Domain Controllers Which steps must you perform to implement the desired password policy? (Select three. Each correct answer is part of the complete solution.)

Answers

Explanation:

To implement the desired password policy, you have to carry out these steps

1. An organizational unit, OU has to be created for these employees in east-sim.com

2. Since there is an organizational unit created for the accounting employees, you have to put the employees user objects in this Organizational unit.

3. Then as the administrator the next step that i would take is the configuration of the password policy, then i would link this to the already created organizational unit for these employees

function _one(array)
Create a JavaScript function that meets the following requirements:




Please give your function a descriptive name
o ( _one is not acceptable, and is only displayed here for illustration purposes)
Receives an array of integers as an argument
The function removes all duplicates (if they exist) from the array and returns it to the caller.
Assume the input array parameter will have at least one element in it.
Examples :
_one([33])
➔ [33]
_one([33, 33, 1, 4])
➔ [1, 4]
_one([33, 33, 1, 4, 1]) ➔ [4]​

Answers

Answer:

function removeRepeaters(list){

   var goodList = [], badList = {}, used = {}, n;

   // ensure that the argument is indeed an array

   if(!Array.isArray(list)){

        throw "removeRepeaters: Expecting one argument of type Array";

   }

   // loop through the array and take note of any duplicates

   for(n in list) used[list[n]] == true ? badList[list[n]] = true : used[list[n]] = true;

   // now loop through again, and assemble a list of non-duplicates

   for(n in list) if(badList[list[n]] == undefined) goodList[] = list[n];

   return goodList;

}

Explanation:

I assume you're familiar with trinary operators, but just in case, that's what's happening in this first for loop:

for(n in list) used[list[n]] == true ? badList[list[n]] = true : used[list[n]] = true;

this is the same as saying:

for(n in list){

   if(used[list[n]] == true){

       badList[list[n]] = true;

   } else {

       used[list[n]] = true;

   }

}

This loop flags all of the values in the list that are duplicated.  Note that both "badList" and "used" are declared as objects instead of arrays.  This allows us to compare keys in them with an == operator, even if they're not defined, making it a convenient way to flag things.

Note that I haven't tested it, so I may have overlooked something.  I suggest testing it before handing it in.

PLEASE HELP WILL MARK BRAINLEST!!


What are some inadvertent effects of technology?

Answers

Answer:

Industrialization increased our standard of living, but has led to much pollution and arguably, even some social ills. The benefits brought by the internet are too many to mention, yet viral misinformation, vast erosion of privacy, and the diminishing patience of society as a whole were all unintended consequences.

Answer:

It has also increased idle time of workers

It is also true that we are now spending more time visiting social networking sites, rather than our friends and family

Explanation:

Remember partially filled arrays where the number of elements stored in the array can be less than its capacity (the maximum number of elements allowed). We studied two different ways to represent partially filled arrays: 1) using an int variable for the numElems and 2) using a terminating value to indicate the end of elements called the sentinel value. In the code below, please fill in the details for reading values into the latter type of array that uses a sentilnel value. Don't forget to complete the printArray function.
#include
using namespace std;
void printArray(int array[]);
// Implement printArray as defined with one array parameter
int main()
{
const int CAPACITY=21;
int array[CAPACITY]; // store positive/negative int values, using 0 to indicate the end of partially filled array
cout <<"Enter up to " << CAPACITY-1 << " non-zero integers, enter 0 to end when you are done\n";
//To do: Write a loop to read up the int values and store them into array a.
// Stop reading if the user enters 0 or the array a is full.
//To do: store 0 to indicate the end of values in the array
//Display array function
printArray(array);
return 0;
}
// To do: implement display for the given array
void printArray(int array[])
{
}

Answers

Answer:

Complete the main method as follows:

int num;

cin>>num;

int i = 0;

while(num!=0){

array[i] = num;  

cin>>num;

i++;

}

Complete the printArray function as follows:

void printArray(int array[]){

int i =0;

while(array[i]!=0){

   cout<<array[i]<<" ";

   i++;

}}

Explanation:

Main method

This declares a variable that gets input from the user

int num;

This gets input from the user

cin>>num;

This initializes a count variable to 0. It represents the index of the current array element

int i = 0;

while(num!=0){

This inserts the inputted number to the array

array[i] = num;

This gets another input  

cin>>num;

The counter is incremented by 1

i++;

}

The above loop is repeated until the users enters 0

printArray method

This declares the array

void printArray(int array[]){

This initializes a counter variable to 0

int i =0;

This is repeated until array element is 0

while(array[i]!=0){

Print array element

   cout<<array[i]<<" ";

Increase counter by 1

   i++;

}}

See attachment for complete program

Select the correct answer.
Which function returns the lowest value of a given set of numbers or range of cells?

A.
ROUND
B.
COUNT
C.
MAX
D.
MIN

Answers

Answer:

D. Min

Explanation:

PLZ HELP !!!!!
plzzzz

Answers

Answer:

Producers

Explanation:

Producers manufacture and provide goods and services to consumers.

Other Questions
Owner investment: $8,000Revenue: $15,000Equity: $21,000Expenses: $3,000Based on this data, the net profit or loss on the income statement should be: Photosynthesis occurs in a plant cell's Cellular respiration occurs in a plant or animal cell's What new "weapon" does Alexander first encounter in India?This question is on my assignment, referring to the documentary "Battles BC: Alexander the Great," S1, E6. I need help right away, as the assignment is due today. Thanks! 1) f(x)=(x - 3)(x - 5) A f(x) = x2 - 8x+15 B. f(x) = x2 -15x-8 C. $(x) = x? - 8x-15which is the equivalent? PLEASE HELP D:Which of the following possibilities will form a triangle?A - Side = 16 cm, side = 8 cm, side = 7 cmB - Side = 16 cm, side = 9 cm, side = 7 cmC - Side = 17 cm, side = 12 cm, side = 7 cmD - Side = 17 cm, side = 11 cm, side = 5 cm If one-fourth of 2^30 is equal to 2^x, what is x? what were the essential services that were not suspended during lockdown 10 POINTS PLEASE HURRY Describe a problem you are having with a friend or peer. If you do not have a current conflict with someone you will need to make one up.Answer in 3 to 7 complete sentences.--------------------------------------------------------------------------------------------------------------Step 1: Define the conflict. Think of a conflict that you currently have or make one up.Step 2: Discuss solutions. List all possible solutions to your conflict even the ones that might not be the best option.Step 3: Attempt to reach a resolution. Pick the best solution from your list in step 2.Step 4: Assess the success. Was your solution a success?Repeat: Repeat steps 1 to 4 if necessary.(PLEASE HELP I DON"T HAVE ANY TIME ON MY HANDS TO DO THIS)(BEST ANSWER GETS BRAINLIEST) This law prohibited American trade with foreign countries.A. Whiskey taxB. Kentucky and Virginia resolutionsC. Alien and sedition actD. Embargo act of 1807 HELP! The law of conservation of energy states:A. Energy increases exponentially with timesB. Total energy decreases due to energy output.C. Energy cannot be created or destroyed.D. Energy always remains in the same form. Please help this is a timed test and I really need help were U.S.-Soviet relations like after the U-2 incident?A mysteriousB damagedC cooperativeD friendly In which step did Daniela make the first error? Which is one way NOT to ask if someone is home?Puedo tomar un mensaje?Podra hablar con ____?Est ____ all?Se encuentra ____? When using a one-sample t-procedure to construct a confidence interval for the mean of a finite population, a condition is that the population size be at least 10 times the sample size. The reason for the condition is to ensure that the sample size is large enough the sample size is large enough A the central limit theorem is applicable for the sample mean the central limit theorem is applicable for the sample mean B the sample standard deviation is a good approximation of the population standard deviation the sample standard deviation is a good approximation of the population standard deviation C the degree of dependence among observations is negligible the degree of dependence among observations is negligible D the sampling method is not biased How does the us constitution protect democratic ideals? Any help?The Kb for hydroxylamine, HONH2, is 1.1 x 10 -8. What would be the pH of a solutionprepared by placing 1.34 g of HONH2 in 0.500 L of water? Please help with the blank spaces! Will thank and give brainliest to the correct answer! To fill in the blank you have to use the verb in parentheses and put it in the blank in its correct form Please help I would really appreciate it The NewEnglandColoniesTheMiddleColoniesWhere were the NewEngland Colonieslocated?TheSouthernColoniesA. Central United StatesB. Western United StatesC. Southern United StatesD. Northern United States