Answer:
- import random
-
- states = {
- "Alabama": "Montgomery",
- "California": "Sacramento",
- "Florida": "Tallahassee",
- "Hawaii": "Honolulu",
- "Indiana": "Indianapolis",
- "Michigan": "Lansing",
- "New York": "Albany",
- "Texas" : "Austin",
- "Utah" : "Salt Lake City",
- "Wisconsin": "Madison"
- }
-
- correct = 0
- wrong = 0
- round = 1
- while(round <= 5):
- current_state = random.choice(list(states))
- answer = input("What is the capital of " + current_state + ": ")
-
- if(answer == states[current_state]):
- correct += 1
- else:
- wrong += 1
-
- round += 1
-
- print("Correct answer: " + str(correct))
- print("Wrong answer: " + str(wrong))
Explanation:
The solution code is written in Python 3.
Line 3 -14
Create a dictionary of US States with capital as each of their corresponding value. Please note only ten sample states are chosen here.
Line 16 - 18
Create variables to track the number of correct and inaccurate response and also round counter.
Line 19 - 28
Set the while condition to enable user to play the quiz for five questions and use random.choice to randomly pick a state from the dictionary and prompt user to input the capital of selected stated.
If the answer matched with the capital value of the selected state, increment the correct counter by one. Otherwise the wrong counter will be incremented by one. Increment the round counter by one before proceed to next round.
Line 30 - 31
Print the number of correct responses and wrong responses.
Answer:
For dynamic disks, the term volume is used to define the space where a file system in installed.
Explanation:
A volume is defined as the storage area extracted from free space or say unused space. A file system is used to format a volume or to assign it a drive name.
Five types of volumes are supported by dynamic disks. They are as follows:
- Simple Volumes
- Mirrored volumes
- Striped volumes
- Spanned volumes
- RAID-5 volumes
The performance of a mobile device is relative rather than absolute, since it depends on the utility the user requires of it.
It could be that the space remaining on the storage is low or the ram is too small.
Often times, users tend to load their devices with tonnes of applications not considering the RAM size, available memory of the device, these applications may be space demanding and expensive, and in the long run lead to the low performance of the device.
Learn more about Mobile device specification here:
brainly.com/question/25363479
The possible solutions to recommend are that Vertical scaling, Horizontal scaling, Cloud bursting
The cloud computing business model is based on a utilitarian business model, which charges you solely for the resources you use. With this strategy, you may scale your cloud fleet to suit its present workload and add and subtract capacity as needed. Variability may be used to scale cloud services in a variety of ways, including vertical and horizontal scaling and bursting. Horizontal scaling in cloud computing refers to adding more instances rather than switching to a bigger instance size. Vertical scaling involves the addition of more or faster CPUs, memory, or I/O resources to an existing server or the replacement of one server by a more physical server.
Learn more about the utility business model here: brainly.com/question/28668154brainly.com/question/29349562
#SPJ4