![janeou17xn](/avatars/44475.jpg)
janeou17xn
18.12.2019 •
Engineering
The letter e is the most frequently used letter in english prose, and the letter z is the least frequently used. a friend of yours doing a sociology experiment believes that this may not necessarily be true of the writings of first-year college students. to test his theory, he asks you to write a program that will take a text file and print, for each letter of the english alphabet, the number of times the letter appears in the file. you can use the sample.txt provided. try your program on other text files as well. hint: use an integer array of size 128, and use the ascii values of letters to index into the array to store and retrieve
Solved
Show answers
More tips
- F Food and Cooking How to Make Napoleon Cake: A Step-by-Step Guide...
- F Food and Cooking From Latte to Espresso: Which Coffee Drink is the Most Popular on Earth?...
- C Computers and Internet How to Set Up Internet on iPhone? Detailed Guide with Step-by-Step Instructions...
- P Philosophy 8 привычек, чтобы достичь счастливой жизни...
- F Food and Cooking How Many Grams Are In a Tablespoon?...
- G Goods and services How to Choose the Right Iron: Purchase Tips...
- S Style and Beauty How to Choose the Perfect Hair Straightener?...
- H Health and Medicine How to Choose the Right Glasses?...
- H Health and Medicine What vaccines do children need?...
- H Health and Medicine AKDS Vaccination: Ensure Your Child s Safety...
Answers on questions: Engineering
- M Mathematics Can anyone help me with this?0...
- M Mathematics What is the products of the roots of the question?...
- C Computers and Technology Help Me What are the four types of graphic models?...
- H History Animals are classified as which of the following factors of production?...
- M Mathematics 18z + 9y - 4z + 15 - 8 + y - 2...
- H History Ion in the bor and your knowledge of social studies to answer the following ques According to the Republicans, what did the Sedition Act violate? A the First Amendment C the Alien...
- C Chemistry What does the term periodic mean?...
- M Mathematics X -5 -4 -3 -2 -1 0 1 N 3 f(x) 14 6 0 -4 -6 -6 -4 0 6 Based on the table, which statement best describes a prediction for the end behavior of the graph of f(x)? As x + 0,f(x) —...
- M Mathematics 90% of the tickets sold at an amusement park were discount tickets. If the park sold 90 tickets in all, how many discount tickets did it sell?...
- M Mathematics Justin is building a ramp in the shape of a right triangle to practice skateboarding. The ramp has a height of 3 feet and diagonal of 7 feet. Which value best represents the length...
Ответ:
2.72 A
7.41 V
3.95 V
Explanation:
Let's say I₁ is the current in the 3Ω resistor, I₂ is the current in the 10Ω resistor, and I₃ is the current in the 2Ω resistor.
Apply Kirchoff's voltage law to the top loop:
20 − 6 I₂ − 10 I₂ − 3 I₁ = 0
20 − 16 I₂ − 3 I₁ = 0
Apply Kirchoff's voltage law to the bottom loop:
20 − 4 I₃ − 2 I₃ − 3 I₁ = 0
20 − 6 I₃ − 3 I₁ = 0
Apply Kirchoff's current law at either junction:
I₁ − I₂ − I₃ = 0
I₁ = I₂ + I₃
Three equations, three variables. To solve, let's multiply the first equation by 3 and the second equation by 8:
60 − 48 I₂ − 9 I₁ = 0
160 − 48 I₃ − 24 I₁ = 0
Add:
220 − 48 I₂ − 48 I₃ − 33 I₁ = 0
220 − 48 (I₂ + I₃) − 33 I₁ = 0
Substitute and solve:
220 − 48 I₁ − 33 I₁ = 0
220 − 81 I₁ = 0
I₁ = 2.72
Therefore, from the first equation:
I₂ = 0.741
And from either the second or third equation:
I₃ = 1.98
So the voltage across the 10Ω resistor is:
V = IR
V = (0.741 A) (10 Ω)
V = 7.41 V
And the voltage across the 2Ω resistor is:
V = IR
V = (1.98 A) (2 Ω)
V = 3.95 V