PYTHON- Credit card numbers follow a standard system. For example, Visa, MasterCard, and Discover Card all
have 16 digits, and the first digit serves to indicate the card brand. All Visa cards start with a 4;
MasterCard cards always starts with a 5; and Discover cards start with a 6. Write out a program that
prompts for a credit card number and emits the name of the brand. If the card brand cannot be
determined, the program should output "Unknown Card"

Answers

Answer 1

Answer:

ccard = input("What is your credit card #: ")

if ccard[0] == 4:

   print("Visa")

elif ccard[0] == 5:

   print("MasterCard")

elif ccard[0] == 6:

   print("Discover")

else:

   print("Unknown Card")


Related Questions

Which of the following uses graphic symbol to depict the nature and flow of the process? *
1 point
A. FLOWCHART
B. PROCESS
C. CONDITION
D.ARROW LINE​

Answers

Answer:

Flowchart.

Explanation:

It is literally in the name. "flow of the process" -----> Flowchart.

A graphic symbol is a written symbol used to represent speech. A commonly known graphic symbol is an arrow which is used in flow charts to depict the nature and flow of the process.

Question 4 (5 points)
Protecting an IT system from security threats is the responsibility of the IT
department.
True
False

Answers

Answer:

true

Explanation:

IT security teams do:

Set and implement user access controls and identity and access management systems

Monitor network and application performance to identify and irregular activity

Perform regular audits to ensure security practices are compliant

Deploy endpoint detection and prevention tools to thwart malicious hacks

Set up patch management systems to update applications automatically

Implement comprehensive vulnerability management systems across all assets on-premises and in the cloud

Work with IT operations to set up a shared disaster recovery/business continuity plan

Work with HR and/or team leads to educate employees on how to identify suspicious activity

Write a program that prompts for a positive integer and prints the factors of all integers from 1 to that input integer. For example, if the user enters the integer 6 then the program will output: 1: 1 2: 1, 2 3: 1, 3 4: 1, 2, 4 5: 1, 5 6: 1, 2, 3, 6 Determine the appropriate loop(s) to use (while loop or for loop) when a task requires looping. Study the tests below to help you understand program behavior. Use the following tests and your own tests to run against your solution in Develop mode. These are the same tests that your solution will be executed against when you submit your work in Submit mode. User input is in bold:

Answers

74(Frequency) or 34(frequency)

what does MOS stand for

Answers

Metal Oxide Semiconductor

There are lots of things that fall under that acronym.

However, the one used most often would be:

Metal Oxide Semiconductor

state the difference between a monitor and a television​

Answers

The size of a monitor is not much larger. As these are used from a specific distance, it would be so inconvenient if a monitor size is too big.

Answer:

Monitors- The Resolution of a Monitor is High.

Televisions-The Resolution of a Television is Low.

Explanation:

A monitor is no less than television. Earlier, the monitors were made with the help of a cathode ray tube that renders the video image.

hope it helps

mark me brainliest

am nevoie de un referat pe tema ,,Asezarea in Pagina '' la informatica

Answers

Answer:

Explanation:

Microsoft Word este un procesor de text modern,Microsoft Excel,

Microsoft PowerPoint si Microsoft Access.

Programul va poate ajuta sa realizati documente,

Think of the silliest problem the problem solving process could help with.

Answers

Answer:

12 FISH ARE IN A BOWL. SOME BIG OTHERS LITTLE IF 5 BIG FISH ATE 2 SMALL FISH EACH HOW MANY FISH ARE LEFT IN THE BOWL ???

PLEASE MARK ME BRAINLIST IF YOU CAN'T ANSWER IT

Drones are considered as a? A.trendy,but unnecessary product B.great innovation C.Disruptive technology D.product concept​

Answers

Answer:

Great innovation

Explanation:

because they're important for cinematic uses

1
On October 31, Year 1, A company general ledger shows a checking account balance of $8,424. The company's cash receipts for the
month total $74,500, of which $71,340 has been deposited in the bank. In addition, the company has written checks for $72,494, of
which $71,144 has been processed by the bank
20
poir
LOOK
The bank statement reveals an ending balance of $12,384 and includes the following items not yet recorded by the company bank
service fees of $240, note receivable collected by the bank of $5.900, and interest earned on the account balance plus from the note
of $770. After closer inspection, the company realizes that the bank incorrectly charged the company's account $660 for an automatic
withdrawal that should have been charged to another customer's account. The bank agrees to the error
Required:
1. Prepare a bank reconciliation to calculate the correct ending balance of cash on October 31 Year 1 (Amounts to be deducted
should be indicated with a minus sign.)
Print
References
Bank's Cash Balance
Per bank statement
Bank Reconciliation
October 31, Year 1
Company's Cash Balance
Per general ledger
8424
Bank balance per reconciliation
Company balance per reconciliation

Record the amounts that increase cash

Answers

Please rate and comment if any problem. Thanks will appreciate it

What is the name of the most popular American computer repair shop?

Answers

Apple Pie with some expensive stuff

It is Called Monster Computers!

9. Which of the following is considered an interface? (1 point)
O the buttons on the screen of an ATM
O the code that builds a web page
O the materials used to build a computer
O the mechanical workings of an MP3 player

Answers

Answer:

The buttons on the screen of an ATM.

Explanation:

An interface is the way you interact with something. Hope this Helps! (:

If there are power lines near a work site, it must be determined how close they are to any crane activities. Which of the following are options for keeping workers safe if the power lines will be closer than 20 feet to crane activities?

Answers

Answer:

it says choose three so choose all but the removing the crane

The following are options for keeping workers safe if the power lines will be closer than 20 feet to crane activities the answer is option c.

What is the feature of cranes?

A crane is a sort of machine, typically geared up with a hoist rope, twine ropes or chains, and sheaves, that may be used each to raise and decrease substances and to transport them horizontally. It is in particular used for lifting heavy matters and transporting them to different places.

After figuring out the paintings zone, it have to be decided if any a part of the equipment, load line or load (such as rigging and lifting accessories) could, on the equipment's most operating radius, get nearer than 20 ft to an electricity line in the decided paintings zone.

Read more about the crane activities:

https://brainly.com/question/15062909

#SPJ2

What is the output?
>>> phrase = "abcdefgh"
>>> phrase[4-7]

Answers

Answer:

efg

Explanation:

abcdefgh

01234567

Differentiate
1. operating system from application program.
2.Program from software

I will give brainliest for the one who gave me answer in this question. Thank you! :)

Answers

Answer:

Operating systems basically manages all computer hardware and system resources and it also provides services for computer program where as software tells the computer what to do with the resources and so on...

Sometimes I have trouble connecting to the network from certain locations in the house, but other times I can connect from the same location without issue. What might be causing the problem?​

Answers

Answer:

Sometimes it might not be your fault, but the service that you use. Or another possibility that multiple users connect to the internet and reach a certain amount of threshold that the service provider blocks all incoming connections.

Answer:

WELL IT DEPENDS ON THE AMOUNT OF WALLS BETWEEN YOU AND THE NETWORK

PLEASE MARK ME AS BRAINLIST

Population Growth The world population reached 7 billion people on October 21,
2011, and was growing at the rate of 1.1% each year. Assuming that the population
continues to grow at the same rate, approximately when will the population reach
8 billion? using python

Answers

Hope it this helps.

Why did the spelling and grammar checkers in Word miss the errors highlighted in yellow?

3-5 sentences
Please help

Answers

Answer:

It missed them because the highlighted errors are actually words that are not in the right place and when you misspelled them, it turned into a word in the incorrect place.

Explanation:

Answer:

It missed them because “Tying” is a real word. Whoever wrote this misspelled typing and it autocorrected it to “Tying,” which doesn’t make sense in that sentence. As quoted in lesson 3.07, page 2, “A word can be spelled correctly but used incorrectly.”

Explanation:

hope this helps! :)

(30%) Test.java: write a test program to create a hash table with the size of 109. Import 65 data items (given by a text file). The data file " broster.txt " is provided, which contains the all players of Cleveland Browns (2019). Please use the first column, the last name, as the key, and treat the rest of information as value. Please perform the following tasks after the data are imported to the hash table: Print out the number of collisions occurred during the data insertion, and discuss which approach causes more collisions. Comparing the resulting tables between Linear Probing and Double Hashing, and have a discussion which approach has a more obvious trend of clustering.

Answers

The answer will be 69

Write a statement using a compound assignment operator to cut the value of pay in half (pay is an integer variable that has already been declared and initialized). C++

Answers

Hope it helped. Thanks.

Microsoft PowerPoint is an example of what type of software?

Answers

Answer: it is Presentation Software. Hope this helps!

Explanation:

LANGUAGE IS PYTHON
9.8 LAB: Convert to binary

Write a program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in binary. For an integer x, the algorithm is:

As long as x is greater than 0
Output x modulo 2 (remainder is either 0 or 1)
Assign x with x divided by 2
Note: The above algorithm outputs the 0's and 1's in reverse order.

Ex: If the input is:

6
the output is:

011
6 in binary is 110; the algorithm outputs the bits in reverse.

Answers

The program illustrates the use of modulo operators

The modulo operator is used to return the remainder of a division.

The program in Python, where comments are used to explain each line is as follows:

#This imports the math module

import math

integer_value = int(input())

#This initializes the remainder to an empty string

remainder = ""

#This loop is repeated while the integer input is greater than or equal to 1

while integer_value>=1:

   #This calculates the remainder after the integer value is divided by 2

   remainder+=str(integer_value % 2)

   #This gets the floor division of the integer input by 2

   integer_value=math.floor(integer_value/2)

#This reverses the string

binary_equiv = remainder[::-1]

#This prints the binary equivalent

print(binary_equiv)

At the end of the program, the binary string is printed

Read more about similar programs at:

https://brainly.com/question/24742544

what characteristics that a graphic designer should possess?​

Answers

Graphic design qualities that will help you succeed

Active listening. Graphic designers aren't solo artists who work in solitude to create whatever they want. ...

Clear and concise communication. ...

Time management. ...

The ability to accept constructive criticism in stride. ...

Patience. ...

Storytelling ability.

Apart from the United States, which country/countries got more gold medals, more silver medals, and more bronze medals than Great Britain?

Answers

Apart from United States, Japan got more gold medals, more silvers medals and more bronze medals than Great Britain

kĩ năng microsoft word

Answers

Answer: I think it's just placeholder text. I might be wrong.

A year with 366 days is called a leap year. Leap years are necessary to keep the calendar synchronized with the sun because the earth revolves around the sun once every 365.25 days. Actually, the figure is not entirely precise, and for all dates after 1582 the Gregorian correction applies. Usually years that are divisible by 4 are leap years, for example 1996. However, years that are divisible by 100 (for example, 1900) are not leap years, but years that are divisible by 400 are leap years (for example, 2000). Write a program that asks the user for a year and computes whether the year is a leap year. Provide a class Year with a method isLeapYear. Use a single if statement and Boolean operators.
I have two java files to work from below: Year.java and LeapYearTester.java. The LeapYearTester.java is not supposed to be altered. Any help on the problem would be appreciated. Thank you.
Year.java
public class Year{
// declare your instance variables here
// write your constructor here
public Year(int y){
// your code here
}
public boolean isLeapYear(){
// your code here
}
}
LeapYearTester.java
import java.util.Scanner;
public class LeapYearTester{
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.println("Please enter a year");
int year_input = input.nextInt();
// now make a Year object
Year theYear = new Year(year_input);
// now check to see if it's a leap year
if (theYear.isLeapYear())
System.out.println("That's a leap year!");
else
System.out.println("That's not a leap year!");
}
}

Answers

Answer:

omg what is this

Explanation:

how will I answer this

What problems do you see in the process of transacting business online

Answers

Lack of Computer Expertise. ...

Difficulty Developing Relationships. ...

Privacy and Security Concerns. ...

Issues With Copyrights. ...

Limitations of Business Types.

A project brief explains what a project is about. A project brief usually includes detailed requirements.

Answers

A project brief gives a short account or run through of the essential elements of a project.

A project brief can be described as a brief but concise information about a project which is aimed at passing key information to stakeholders or project collaborators.

A project brief should not include too many background or root details or account of the task, rather it should convey essential project requirement in a clear and concise manner.

Therefore, a project brief gives a summarized account of the essential elements of a project.

Learn more :https://brainly.com/question/25047693

Double clicking the top right corner of a document will

Answers

Answer:

open the header. hope this helps

How many combinations of 1s and Os can we make with 6 place values?

Answers

Explanation:

which question is this

Which type of list should be used if the items in the list need to be in a specific order? Reference

Bulleted

Review

Numbered

Answers

Answer:

Numbered

Explanation:

If you want a list of items to be in a specific order, you should use Numbered. This is because it makes the list have numbers in front, starting with one. This puts them in a specific order.

The numbered list should be utilized whether the items throughout the list need to be in a specific order.

Numbered list

Whenever users want to display whole phrases or paragraphs in a succession, have been using a numbered list. If somehow the items constitute phrases, have used a lettered as well as bulleted list instead of a numbered listing.

To construct a numbered list, utilize one word-processing project's numbered category feature. This would also immediately or effectively indent the listing.

Thus the response above i.e., "option c" is correct.

Find out more information about the numbered list here:

https://brainly.com/question/4509295

Other Questions
The three wicked fairies laughed and tittered in unsettling peals is an example of what point of view? 2. 1- =[?] -3 3 What number makes the equation true? Enter the answer in the box. HELP PLS THIS IS IMPORTANT a squirrel is 5.0 m away from you while moving at a constant velocity of 3 m\s away from you, how far is the squirrel after 5 seconds? What is the difference between give out and giving out? Which of the following is an example of an indirect tax?Estate taxFederal income taxPersonal property taxSales tax i think that it (rain)....tomorrow Which situation BEST represents the equation below? What are some of the features of ancient civilizations 1Select the correct answer.Each of the following describes the location of the heart except one. Which is incorrect?A.Posterior to the lower half of the sternum.B.Anterior to the thoracic vertebraeC.Between the lungsOD.Below the 11th ribResetNext La serie de Lyman se situa en la region ultravioleta del espectro. Que linea quedara mas cerca de la zona visible del espectro? Explica por qu. Find the measure of the indicated angle Show work How are the two political parties dependent on one another Who are the main fathers of the fathers of confederation? An elevator cable winds on a drum of radius 771 cm that is connected to a motor.If the elevator moves down 8.60 m, how many revolutions has the drum made? Write an algebraic expression that represents8 minus the quantity b divided by 6. Nico could feel that they were out there, looking in on him as if he were some sort of sideshow attraction at a carnival. He was facing his own reflection, but he knew he was actually standing on the wrong side of a two-way mirrorthey could see him, but he couldn't see them. Nico realized things were unfortunately going to stay this way, too, if he continued to remain silent.2Nico pulled away from the mirror and once again scanned the tiny room that had been his noiseless prison for days. The walls were cold and blank, and they seemed to shine with some sort of clear, icy liquid. The floor felt like rough slate on his bare feet, and it, too, was cold and clammy. The chill of the room had gotten into his bones, and every night Nico crouched, shivering in the corner, wrapped tightly in the flimsy fabric they had left for him.3In the center of the room was a steel table, bolted to the floor, with a single, bare light bulb dangling above it, just out of reach. Atop the table lay the remains of Nico's latest meal, if it could even be called that: a rock-hard crust of bread, some tepid broth, and a fatty lump of meatthe likes of which Nico had never before seen, let alone eaten. Of course, Nico hadn't touched a thing they had offered, choosing instead to take an occasional secret nibble from the protein bar he had secreted away in a hidden pocket of his uniform.4The worst part of this whole ordeal, however, wasn't the room or the food. It was the deafening silence. Nico was alone in this box with only the pounding thoughts of uncertainty in his head. He went over and over the events leading to his incarceration, and he had absolutely no answers. Where was he? How long would he be here? Who was outside, looking in?5Nico had originally come to this supposedly uninhabited globe to take rock and crust samples for the International Geologic Institute. The planet certainly appeared deserted when he and his fellow scientists first landed. Then, after getting separated from the rest of his crew, Nico made the greatest and most shocking discovery of his careerthe planet he was sent to explore was anything but deserted. It was a vibrant and very inhabited world.6That was when Nico was discovered by the alien patrols. They surrounded him, confiscated his equipment, and dumped him into this room. He was cut off from all contact whatsoever, completely isolated and alone with his thoughts.7Nico couldn't take the silence a minute longer. He had to make contact, even if it meant contact with alien life-forms. He returned to the mirror and began pounding on the inch-thick glass. Get me out of here! he bellowed. I'll tell you anything you want to know! Anything! Just get me out of here! Please... Nico slumped to the floor, and the door opened slowly. Two beings walked over to Nico, lifted him gently to the chair, and handed him a mug of sweet-smelling, warm liquid.8We are glad you are finally ready to talk to us, Mr. Nico. We are very eager to hear about your reasons for visiting our little planet, explained one of the beings. Oh, and goodness, where are our manners? I am Agent Davis and this is Agent Billings. Welcome to planet Earth, Mr. Nico. We do hope you will enjoy your stay with us.What is the best characterization of Nico in this passage?AHe is cold and extremely hungry.BHe knows the planet he is on is not deserted.CHe is isolated and uncertain of what awaits him.DHe is determined to remain silent. Drag each label to the correct location. Each label can be used more than once.Match the causes with the geographical features and effects that led to civilizations developing in Mesopotamia. why does sleeping on your back cause sleep paralysis The slant asymptote of f(x)=X2-4x+12x-3is Y = 1/2x- 5/4Please select the best answer from the choices providedTF