Answer:
In python Language:
cardNotation = raw_input("Enter card notation: ")
# Create a dict for values
cardColors = {"D": "Diamonds",
"H": "Hearts",
"S": "Spades",
"C": "Clubs"}
cardNumberValues = {"A": "Ace",
"J": "Jack",
"Q": "Queen",
"K": "King",
"2": "Two",
"3": "Three",
"4": "Four",
"5": "Five",
"6": "Six",
"7": "Seven",
"8": "Eight",
"9": "Nine",
"10": "Ten"}
# Handle cases when 10 comes in input
if len(cardNotation) == 3:
number = cardNotation[:2]
color = cardNotation[2:]
print cardNumberValues.get(number) + " of " + cardColors.get(color)
elif len(cardNotation) == 2:
number = cardNotation[:1]
color = cardNotation[1:]
print cardNumberValues.get(number) + " of " + cardColors.get(color)
else:
print "INVALID VALUE"
1. Requirements gathering/analysis.
2. Design.
3. Development.
4. Testing.
5. Maintenance.
A hypothetical company that needs an information system is Memphis drilling and construction company.
<h3>What is the size of a project?</h3>
This is known to be the the number of firms taking part in the project and thus in the case above, it is small project.
In terms of Staff/experts availability, there are experts from the mining industry with years of experience, soil survey analyst as well as other minor staff.
In terms of System level of criticality, it is big because the extent to drilling will make use of the information system and other major decisions made.
Learn more about information system from
brainly.com/question/14688347
#SPJ1
Answer:
The solution code is written in Python 3
- count = 0
- sum = 0
-
- num = input("Enter a number: ")
-
- while(num != ''):
- sum += float(num)
- count += 1
- num = input("Enter a number: ")
-
- print("Sum : " + str(sum))
- print("Average: " + str(sum / count))
Explanation:
Firstly, we declare two variables count and sum to hold the number of input number and the total of the input number, respectively (Line 1-2)
Next, we prompt user to input the first number (Line 4). While the num is not ' ' (This means it is not "Enter" key), accumulate the num to sum variable and increment count by one (Line 6-8) and then prompt the user to input the next number (Line 9).
At the end, display the sum and average using print function (Line 11 -12).