Answer:
Explanation:
The following is written in Python and takes in the input string, then loops through it counting all of the upper and lower case letters and adds it to the dictionary.
string = input("input string: ")
upper_case = 0
lower_case = 0
for char in string:
if char.isupper() == True:
upper_case += 1
elif char == ' ':
pass
else:
lower_case += 1
letter_dict = {'upper_case': upper_case, 'lower_case': lower_case}
Three reasons Why we connect speakers to computers
Answer:
we connected speakers with computers for listening voices or sound .. because the computer has not their own speaker..
Explanation:
Write a program that asks the user to enter an international dialing code and then looks it up in the country_codes array (see Sec 16.3 in C textbook). If it finds the code, the program should display the name of the corresponding country; if not, the program should print an error message. For demonstration purposes have at least 20 countries in your list.
Answer:
Explanation:
The following code is written in Python, it prompts the user for a country code, look it up and if found prints out the corresponding country name. If not it prints out an error message stating "Code not found"
country_codes = {"Argentina": 54, "Bangladesh": 880,
"Brazil": 55, "Burma (Myanmar)": 95,
"China": 86, "Colombia": 57,
"Congo: Dem. Rep. of": 243, "Egypt": 20,
"Ethiopia": 251, "France": 33,
"Germany": 49, "India": 91,
"Indonesia": 62, "Iran": 98,
"Italy": 39, "Japan": 81,
"Mexico": 52, "Nigeria": 234,
"Pakistan": 92, "Philippines": 63,
"Poland": 48, "Russia": 7,
"South Africa": 27, "South Korea": 82,
"Spain": 34, "Sudan": 249,
"Thailand": 66, "Turkey": 90,
"Ukraine": 380, "United Kingdom": 44,
"United States": 1, "Vietnam": 84}
user_code = int(input("Enter Country code: "))
keys = list(country_codes.keys())
vals = list(country_codes.values())
if user_code in vals:
print(keys[vals.index(user_code)])
else:
print("Code not found")
PLEASE ANSWER SOON I NEED IT TODAY
If you plan on operating several applications at a time, the amount of RAM should be considered when purchasing a computer.
a. True
b. False
Answer:
true
Explanation:
true because the more ram the more efficient the computer can run, but also depends on what applications you're running.
Select the correct answer.
Which graphic file format is used for commercial purposes?
OA.
TIFF
B.
GIF
C. JPG
OD.
PNG
O E.
BMP
Dat
Answer:
png or jpg
Explanation:
match the following Microsoft Windows 7
Answer:
Explanation: will be still function but Microsoft will no longer provide the following: Technical support for any issues
Write an instance method in Rational called add that takes a Rational number as an argument, adds it to this, and returns a new Rational object. There are several ways to add fractions. You can use any one you want, but you should make sure that the result of the operation is reduced so that the numerator and denominator have no common divisor (other than 1).
Answer:
Explanation:
I do not have the Rational class but based on the information provided, the following class has been tested and does what is requested. It can simply be added to the Rational class and it will work fine. Due to technical difficulties I had to add the instance method as an attachment in a text file down below.
# change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies
my code produces no output and i cant find why?
coin_change =int(input())
def coin_change(cents):
if cents <= 0:
print( 'Zero cents.')
else:
quarter = cents // 25
dime = (cents % 25) //10
nickle = cents % 25 % 10 // 5
penny = cents % 5
print (coin_change )
# produces no output
Answer:
Explanation:
The Python code provided was not producing any output because you were never printing out the coin variables that you created. The following code adds the needed print statements using the right singular or plural coin name as needed.
cents = int(input())
def coin_change(cents):
if cents <= 0:
print('Zero cents.')
else:
quarter = cents // 25
dime = (cents % 25) // 10
nickle = cents % 25 % 10 // 5
penny = cents % 5
if quarter == 0 or quarter > 1:
print(str(quarter) + " quarters")
else:
print(str(quarter) + " quarter")
if dime == 0 or dime > 1:
print(str(dime) + " dimes")
else:
print(str(dime) + " dime")
if nickle == 0 or nickle > 1:
print(str(nickle) + " nickels")
else:
print(str(nickle) + " nickel")
if penny == 0 or penny > 1:
print(str(penny) + " pennies")
else:
print(str(penny) + " penny")
coin_change(cents)
A user has a computer with a single SSD, and the entire drive contains one partition. The user wants to install a second OS on the computer without having to reinstall the current OS. The user wants to be able to select which OS to use when booting the computer. Which Disk Management tools should the user utilize to accomplish this task?
Answer:
The correct approach is "Shrink partition". A further explanation is given below.
Explanation:
Shrinking partition shrinks or decreases this same disc size as well as unallotted disc space, unallotted space could be utilized to mount a secondary Operating system to operate as a double operating system.Whilst also diminishing everything into neighboring volatile memory on another disc, this same space required for area as well as drives could also be reduced.Thus the above is the correct answer.
jettison folk 2007, Magnum opus, be moving, offers poisoned commentary on the film industry.
Answer:
I'm a little confused...
Explanation:
Can you reword this please?
how do i remove my search history?
Step 1: Go to PC settings from the Start Menu or Desktop. Step 2: In PC settings, choose Search in the menu, and click Delete history.
If you are insured with third party insurance, it will cover which costs?
A. business losses due to a denial-of-service attack
B. loss of data in your laptop because of a coffee spillover
C. ransomware attack on your laptop
D. costs related to lawsuits, and penalties due to a cyberattack
Answer:
c.
Explanation:
Answer: D (costs related to lawsuits, and penalties due to a cyberattack)
Explanation: Third Party insurance covers the liabilities of policyholders to their clients or customers. Regulatory: It covers the cost related to legal affairs, lawsuits and penalties due to a cyberattack.
Write a python program to print the square of all numbers from 0 to 10.
Answer:
for i in range(11):
print(i^2)
It goes through printing the square of each number with a range of 11 since 0 is also included
Which of the following does cloud computing allow users to do? Check all of the boxes that apply.
access data from anywhere with an Internet connection
store pictures and music
store data
have a unique address for their computer
Answer:
a b c
Explanation:
there just right
Answer: a b c d
Explanation edge 2023
At the beginning of the semester, we studied partially filled arrays. This is when the number of elements stored may be less than the maximum number of elements allowed. There are two different ways to keep track of partially filled arrays: 1) use a variable for the numberElements or 2) use a sentinel (terminating} value at the end of elements (remember c-strings?). In the code below, please fill in the details for reading the values into the an array that uses a sentinel value of -1. Complete the showArray function as well.
#include
using namespace std;
void showArray(int array[]);
// ToDo: Code showArray function with one array parameter
int main()
{
const int MAX_SIZE=16;
int array[MAX_SIZE]; // store positive values, using -1 to end the values.
cout <<"Enter up to " << MAX_SIZE-1 << " positive whole numbers, use -1 to stop\n";
//To do: Read the int values and save them in the static array variable.
// When the user enters -1 or the array has no more room, leave the loop..
//To do: store -1 at the end of elements in the array
// Show array function
showArray(array);
return 0;
}
// To do: print out for the array
void showArray(int array[])
{
}
Answer:
Complete the main as follows:
int num;
cin>>num;
int i = 0;
while(num!=-1 && i <16){
array[i] = num;
cin>>num;
i++; }
array[i+1] = -1;
The showArray() as follows:
int i =0;
while(array[i]!=0){
cout<<array[i]<<" ";
i++;
}
Explanation:
See attachment for complete program where comments are used to explain difficult lines
Create another method: getFactorial(int num) that calculates a Product of same numbers, that Sum does for summing them up. (1,2,3 ... num) Make sure you use FOR loop in it, and make sure that you pass a number such as 4, or 5, or 6, or 7 that you get from a Scanner, and then send it as a parameter while calling getFactorial(...) method from main().
Answer:
The program in Java is as follows;
import java.util.*;
public class Main{
public static int getFactorial(int num){
int fact = 1;
for(int i =1;i<=num;i++){
fact*=i;
}
return fact;
}
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Number: ");
int num = input.nextInt();
System.out.println(num+"! = "+getFactorial(num)); }}
Explanation:
The method begins here
public static int getFactorial(int num){
This initializes the factorial to 1
int fact = 1;
This iterates through each digit of the number
for(int i =1;i<=num;i++){
Each of the digits are then multiplied together
fact*=i; }
This returns the calculated factorial
return fact; }
The main begins here
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
This prompts the user for number
System.out.print("Number: ");
This gets input from the user
int num = input.nextInt();
This passes the number to the function and also print the factorial
System.out.println(num+"! = "+getFactorial(num)); }}
reasons why users attach speakers to their computer
Answer:
To listen to sounds or voices because maybe the computer doesn't have its own speakers
Suppose you observe that your home PC is responding very slowly to information requests from the net. And then you further observe that your network gateway shows high levels of network activity, even though you have closed your email client., Web browser, and other programs that access the net. What types of malware could cause these symptoms
ANSWER: BOT
EXPLANATION: When a PC is experiencing the listed effects, it thus depicts that the PC is under attack by a bot, which is a type of script or software application that establishes automated tasks via command.
However, a bad bots often initiate malicious tasks that gives room for attackers to take control over an affected PC remotely, most especially for fraudulent activities.
When several affected computers are connected, they form a botnet connection.
is a general-purpose computing device?
Answer: I think so
Explanation: All mainframes, servers, laptop and desktop computers, as well as smartphones and tablets are general-purpose devices. In contrast, chips can be designed from scratch to perform only a fixed number of tasks, but which is only cost effective in large quantities (see ASIC).
Please give brainliest not this file virus exploiter
g Write a function named vowels that has one parameter and will return two values. Here is how the function works: Use a while loop to determine if the parameter is greater than 1. If it is not greater than 1, do the following: Display a message to the user saying the value must be greater than 1 and to try again. Prompt the user to enter how many numbers there will be. Use a for loop that will use the parameter to repeat the correct number of times (if the parameter is 10, the loop should repeat 10 times). Within this for loop, do the following: Generate a random integer between 65 and 90 Convert this integer to is equivalent capital letter character by using the chr function. If num is the variable with this integer, the conversion is done like this: ch
how does such editing affect courtrooms where visual evidence is often presented?
. Create an abstract Dollar class with two integer attributes, both of which are non-public (Python programmers - it is understood that there is nothing private in Python but try to not access the attributes directly from outside the classes). The int attributes will represent whole part (or currency note value) and fractional part (or currency coin value) such that 100 fractional parts equals 1 whole part.
Answer:
Explanation:
The following code is written in Java. It creates the abstract dollar class that has two instance variables for the dollars and the coins that are passed as arguments. The test output can be seen in the picture attached below.
class Dollar {
int dollars;
double coin;
private Dollar(int dollar, int coin) {
this.dollars = dollar;
this.coin = Double.valueOf(coin) / 100;
}
}
Which of the following best describes the safety of blogging
Generally safe, but there may be some privacy and security concerns. Therefore option B is correct.
While blogging can offer a relatively safe platform for expressing ideas and connecting with an audience, it is not entirely risk-free.
Privacy and security concerns can arise, especially when bloggers share personal information or discuss sensitive topics.
Cybersecurity threats, such as hacking or data breaches, can also compromise a blogger's personal information or their readers' data.
Additionally, bloggers should be mindful of online harassment and potential legal issues related to content ownership or copyright infringement.
Being aware of these risks and implementing best practices for online safety can help ensure a more secure and enjoyable blogging experience.
Therefore option B is correct.
Know more about Cybersecurity:
https://brainly.com/question/31928819
Your question is incomplete, but most probably your full question was.
Which of the following best describes the safety of blogging?
A. Completely safe, with no risks involved.
B. Generally safe, but there may be some privacy and security concerns.
C. Moderately safe, but potential risks exist, especially with sensitive topics.
D. Highly unsafe, with significant risks to personal information and security.
Michael needs to ensure that those items that are automatically archived are still easily accessible within Outlook. Which option should he configure?
Answer:
show archive in folder list
Answer:
d
Explanation:
3. Never
to any instant messages, phone call, video call, or screen
staring requests from someone you do not know.
A. reply
B. refuse
C. forward text
D. accept pictures
Answer:
[tex]\color{Blue}\huge\boxed{Answer} [/tex]
B.Refuse
Answer:
Never reply to any instant messages, phone call, video call, or screen staring requests from someone you do not know.
Hope it helps u ARMY!!
Your organization, which sells manufacturing parts to companies in 17 different countries, is in the process of migrating your inventory database to the cloud. This database stores raw data on available inventory at all of your company's warehouses globally. The database will be accessible from multiple cloud-based servers that reside on your cloud provider's hardware located in three regions around the world. Each redundant database will contain a fully synchronized copy of all data to accelerate customer access to the information, regardless of the customer's geographical location.What database trend is your company implementing
Answer:
Disributed database
Explanation:
A distributed database stores data on multiple servers sometimes placed in distinct geographical locations.
what is a computer and what is the work of it
Answer:
A computer is an electronic machine that processes information. It is an information processor. It takes data, stores it, and then gives the result or answer.
It is a machine composed of hardare and software componests to be manually ised or atonomosly used.
Hope this helps!
Answer:
A computer is a machine that accepts data as input, processes that data using programs, and outputs the processed data as information. Many computers can store and retrieve information using hard drives. Computers can be connected together to form networks, allowing connected computers to communicate with each other.
Take a number N as input and output the sum of all numbers from 1 to N (including N).
Answer:
Incluint respuet
Explanation:
espero que te sirva
PLEASE DO THIS QUESTION IN PYTHON
You will write two programs for this endeavor. The first will be a class definition module, and
the second will be the driver program. (Remember the naming rules for these modules!)
The class module should contain the following:
1. An initializer method that accepts two parameters (other than self):
a. A parameter corresponding to the name of the food
b. A parameter corresponding to the amount of the food (in pounds) to order
However, the initializer method should contain four hidden attributes:
a. The name of the food - to be updated using the food parameter
b. The amount in pounds - to be updated using the amount parameter
c. The standard price of the food item per pound - to be updated using a private
method
d. The calculated price of the ordered item (based on amount ordered) – to be
updated using a public method
2. A private method that will store the list of items and their price per pound (in other
words, the information provided in the table above). The method accepts no
parameters (other than self) and returns no value. Use an if-elif structure to set the
standard prices of the food. Reference the hidden attributes of food name and standard
price to set the prices.
Use the header of the method is (provided below) as well as the pseudocode to
complete this method:
#use this header (note the __ before the name)
def __PriceList(self):
if foodname is 'Dry Cured Iberian Ham' #write in actual python
then standardprice is 177.80
#complete the method…
Make sure to include a trailing else that sets the price to 0.00 if an item that is not on
the table is referenced (or if an item is misspelled J )
3. A public method to calculate the cost of the ordered food. The cost should be calculated
using the formula:
Amount of food (in pounds) x price per pound
The method accepts no parameters (other than self), but returns the calculated cost.
4. Accessors as needed (or an __str__ method if you prefer).
The driver program will import the class module you created. This module should contain the
following components:
1. A function that creates a list of objects. The function accepts no parameters but returns
the list of objects. The function should:
a. Create an empty list.
b. Prompt the user for the number of items. This value will be used to determine
the number of repetitions for a necessary loop. (Make sure to include input
validation to ensure that the number of items purchases is at least 1.)
c. Contain a loop that prompts the user for the name of the item and the amount
of the item in pounds. (Make sure to include input validation to ensure that the
number of pounds is greater than 0.) The loop should use this information to
create an object, and append the object to the list
d. Returns the list (once the loop is completed)
2. A function to display the contents of the list. This function accepts a list of objects as a
parameter but does not return a value. The function should:
a. display the contents of each object in the list (all 4 attributes). Make sure to
include appropriate formatting for prices.
3. A function that calculates the total cost of all items. Recall, your object will only have the
cost of each item (based on the amount of pounds ordered for that item). This function
accepts the list of objects as a parameter and returns a value. This function should:
a. access the individual cost of each ordered item
b. calculate the total cost of all the items in the list
c. return the total cost
4. A main function. Your main function should:
a. Call the three aforementioned functions
Dry Cured Iberian Ham $177.80
Wagyu Steaks $450.00
Matsutake Mushrooms $272.00
Kopi Luwak Coffee $317.50
Moose Cheese $487.20
White Truffles $3600.00
Blue Fin Tuna $3603.00
Le Bonnotte Potatoes $270.81
Answer:
Explanation:
This is a project. This is not Brainly material. Just sink your teeth into it and do your best. I definitely would not rely on some stranger on the Internet to give me a good program to turn in for this project anyway. Just start coding and you'll be done before you know it.
Add my epic games account "Lil Carr OXB" and if that not work, then "swish4444"
Or on Xbox "Lil Carr OXB" Thanks.
Answer:
-_________________________________-
Explanation:
-__________________________________________________________-
Answer:
okExplanation:
Project Description:
In the following project, you will edit a worksheet that will be used to summarize the operations costs for the Public Works Department.
Instructions:
For the purpose of grading the project you are required to perform the following tasks:
Step Instructions Points Possible
1. Start Excel. Download and open the file named go16_xl_ch03_grader_3g_hw.xlsx. 0.000
2. In the Expenses worksheet, calculate row totals for each Expense item in the range F5:F9. Calculate column totals for each quarter and for the Annual Total in the range B10:F10. 8.000
3. In cell G5, construct a formula to calculate the Percent of Total by dividing the Annual Total for Salaries and Benefits by the Annual Total for Totals by Quarter. Use absolute cell references as necessary, format the result in Percent Style, and then Center. Fill the formula down through cell G9. 12.000
4. Use a 3-D Pie chart to chart the Annual Total for each item. Move the chart to a new sheet and then name the sheet Annual Expenses Chart. 8.000
5. For the Chart Title, type Summary of Annual Expenses and format the chart title using WordArt Style Fill - Blue, Accent 1, Shadow. Change the Chart Title font size to 28. 6.000
6. Remove the Legend from the chart and then add Data Labels formatted so that only the Category Name and Percentage display positioned in the Center. Change the Data Labels font size to 12, and apply Bold and Italic. 8.000
7. Format the Data Series using a 3-D Format effect. Change the Top bevel and Bottom bevel to Circle. Set the Top bevel Width and Height to 50 pt and then set the Bottom bevel Width and Height to 256 pt. Change the Material to the Standard Effect Metal.
Note, the bevel name may be Round, depending on the version of Office used. 4.000
8. Display the Series Options, and then set the Angle of first slice to 125 so that the Salaries and Benefits slice is in the front of the pie. Select the Salaries and Benefits slice, and then explode the slice 10%. Change the Fill Color of the Salaries and Benefits slice to a Solid fill using Green, Accent 6, Lighter 40%. 4.000
9. Format the Chart Area by applying a Gradient fill using the Preset gradients Light Gradient – Accent 4 (fourth column, first row). Format the Border of the Chart Area by adding a Solid line border using Gold, Accent 4 and a 5 pt Width. 6.000
10. Display the Page Setup dialog box, and then for this chart sheet, insert a custom footer in the left section with the file name. 4.000
Answer:
pelo o que diz na database é que você n é ser humano normal por perguntar isso!!