Answer:
Here is the Python program:
COOKIES_PER_BAG = 40 #sets constant value for bag of cookies
SERVINGS_PER_BAG = 10 #sets constant value for serving in bag
CALORIES_PER_SERVING = 300 #sets constant value servings per bag
cookies = int(input("How many cookies did you eat? ")) #prompts user to input how many cookies he or she ate
totalCalories = cookies * (CALORIES_PER_SERVING / (COOKIES_PER_BAG / SERVINGS_PER_BAG)); #computes total calories consumed by user
print("Total calories consumed:",totalCalories) #displays the computed value of totalCalories consumed
Explanation:
The algorithm is:
StartDeclare constants COOKIES_PER_BAG, SERVINGS_PER_BAG and CALORIES_PER_SERVINGSet COOKIES_PER_BAG to 40Set SERVINGS_PER_BAG to 10Set CALORIES_PER_SERVING to 300Input cookiesCalculate totalCalories: totalCalories ← cookies * (CALORIES_PER_SERVING / (COOKIES_PER_BAG / SERVINGS_PER_BAG))Display totalCaloriesI will explain the program with an example:
Lets say user enters 5 as cookies he or she ate so
cookies = 5
Now total calories are computed as:
totalCalories = cookies * (CALORIES_PER_SERVING / (COOKIES_PER_BAG / SERVINGS_PER_BAG));
This becomes:
totalCalories = 5 * (300/40/10)
totalCalories = 5 * (300/4)
totalCalories = 5 * 75
totalCalories = 375
The screenshot of program along with its output is attached.
What are the steps In order that Jonah needs to follow to view the renaissance report ?
Incomplete question. The full question reads;
Jonah needs to add a list of the websites he used to his report. He opens the "Websites" document and copies the information. He now needs to change his view to the "Renaissance" report to add the information before saving his report.
What are the steps, in order, that Jonah needs to follow to view the "Renaissance" report?
Click on the View tab.
Go to the ribbon area.
Click on the "Renaissance" report.
Click on the Switch Windows tab.
Explanation:
Step 1.
Jonah should⇒ Go to the ribbon area
Step 2.
At the ribbon area, he should find and⇒ Click on the View tab.
Step 3.
Next⇒ Click on the Switch Windows tab.
Step 4.
Lastly, he can then⇒ Click on the "Renaissance" report.
HELPPPP!!!!
How are unethical practices in the digital sphere the same as or different from such practices in the offline world ?
It might not seem as if these questions have much to do with your future self as a professional, but theydo. Being ethical online is as important to future employers as being ethical in the workplace. Knowingwhat is ethical and thinking about how to handle these situations will affect the way you handle dilemmasthat come up in the professional world. Online behavior is also one way you shape yourself as a personof integrity. Remember,integrityis the quality of being honest and having strong moral principles. Thedigital realm is a very important arena for exercising integrity
Future employers place equal value on online ethics as they do on ethics in the office. You'll be able to handle ethical difficulties that arise in the workplace better if you are aware of them and consider how to approach them.
What are ethics?Ethics are defined as a subfield of philosophy that "systematizes, defends, and counsels conceptions of right and wrong behavior." The Fundamental Ethics Principles. The four ethical tenets are beneficence, nonmaleficence, autonomy, and justice. In order to tell the truth, maintain our word, or assist a stranger in need, we must follow ethical principles.
One method to develop yourself as a person of integrity is through your online behavior. Keep in mind that having integrity means being trustworthy and adhering to high moral standards. The internet world is a crucial space for upholding integrity.
Thus, future employers place equal value on online ethics as they do on ethics in the office. You'll be able to handle ethical difficulties that arise in the workplace better if you are aware of them and consider how to approach them.
To learn more about ethics, refer to the link below:
https://brainly.com/question/11992384
#SPJ2
Call the favoriteFruit function with parameter "pineapple". I'm stuck and probably doing it all wrong. Can anyone help?
In this example, we simply have to call the function.
favoriteFruit("pineapple");
Your output will be "My favorite fruit is pineapple."
Works in the public domain have copyright that are expired or abandoned true or false
Answer:
False
Explanation:
Only one of the two are true. Works in the public domain have a copyright that has expired only. E.g. Works of classical music artist, are almost always expired, in accorance with American Copyright law. Abandoning a copyright doesn't do anything because so long the copyright has remained unexpired, the copyright remains. Thats why it can take decades for a new movie in a series to release, like "IT" by Stephen King. The copyright hasn't expired but rather was 'abandoned'. Before "IT" 2017 was relasesed, the copyright was abandoned.
________________________ is an information system that stores user data in many different geographical locations and makes that data available on demand.
Answer:
CDN(content delivery network)
Explanation:
Content delivery network(CDN) which can as well be regarded as Content Distribution Network helps in acheiving high website performance, it essential in reduction of latency, through making the time a request is made using a website to when the website is fully loaded to be short and Minimal. It important in a situation whereby there is traffic loads from the users as well as server. It should be noted that CDN
is an information system that stores user data in many different geographical locations and makes that data available on demand. CDN's usefulness is also found in Cloud computing network such as Software as a service(SaaS). Google doc is an example.
In much of the world, SI units are used in everyday life and not just in science. Why would it make sense for people in the United States to use SI units in everyday life, too?
Answer:
The use of SI is a way to standardize all measurements.
Explanation:
The use of SI is a way to standardize all measurements. In this way, people all over the world can communicate the data without any confusion. This allows them to exchange quantitative information when it comes to business and science in an effective and convenient way.
For everyday files that users will use regularly on a user's own Word-compatible computer, the best file format to save as is: o PDF. DOCX ORTE. OTXT.
Answer:
DOCX? I think
Explanation:
Which of the following practices is NOT recommended when designing with type?
A:Choose fonts that reflect the mood and style of your project. DO NOT- Use all caps or bold unless titles, headlines, logos. (graphics vs text) Type over high contrast BG... Is it readable?
B:Choose colors that have a clear contrast with the background.
C:Use all caps or bold text for paragraphs.
D:Make your headings and titles larger than the paragraph text.
Answer:
C
Explanation:
Typically speaking BOLD OR CAPS CAUSE THE PARAGRAPH TO BE HARD TO READ AND NOT CLEAN IN TERMS OF DESIGN.
But keeping general capitical rules and using italics to put emphasis in the paragraph is much easier to read, and much cleaner to the eye.
Type the correct answer in the box
in which phishing technique are URLs of the spoofed organization misspelled?
anon
is a phishing technique in which URLs of the spoofed organization are misspelled
Answer: Link manipulation
Explanation:
Answer:
Typo Squatting
Explanation:
Identify the computer cycle in each of the descriptions below by choosing the answer from the
drop-down menus.
The keyboard and mouse are examples of
devices.
The part of the information processing cycle in which raw data is received is known as
The part of the information processing cycle where raw data is converted into meaningful information is
The type of memory used during the processing cycle is
The series of mathematical steps taken by the CPU during processing results in
Answer:
1. Input.
2. An input.
3. Processing.
4. Random Access Memory (RAM).
5. An output.
Explanation:
1. The keyboard and mouse are examples of input devices.
2. The part of the information processing cycle in which raw data is received is known as an input.
3. The part of the information processing cycle where raw data is converted into meaningful information is processing.
4. The type of memory used during the processing cycle is Random Access Memory (RAM).
5. The series of mathematical steps taken by the CPU during processing results in an output.
Answer:
1. Input
2. Input
3. Processing
4. Random Access Memory (RAM)
5. Output
Explanation: Just did it on edge 2023!
PV = 11,000 AC = 6000 CV = 4,000. What is SV? What does this calculation tell you?
Answer:
I don't see an SV in the examples.. I suspect these are the name plate numbers off of a transformer... but.. more context would really help
Explanation:
1.2
Is media a curse or a blessing? Explain.
Answer:
i think its both because if there is misunderstanding between media and government then the media distroys the government and if there us no misunderstanding between media and government and if it goes smoothly then its like a blessing for government
Answer:
Media is a blessing...a curse as well when it's misguiding the world and hiding the real sinner and juxtaposing the culprit as the saviour
Two middle-order batsmen are compared based on their performance in their previous cricket match.
Batsman A got 9 runs more than Batsman B and Batsman A's runs are 56% of the sum of both their runs.
What runs did Batsman A and B score, respectively?
Write a program that declares variables named init1, init2, and init3, to hold your three initials. Display the three initials with a period following each one, as in J.M.F.
Answer:
Written in Python
init1 = input("initials 1: ")
init2 = input("initials 2: ")
init3 = input("initials 3 ")
print(init1+"."+init2+"."+init3)
Explanation:
This line prompts user for init1 and gets the input
init1 = input("initials 1: ")
This line prompts user for init2 and gets the input
init2 = input("initials 2: ")
This line prompts user for init3 and gets the input
init3 = input("initials 3 ")
This line prints out the required output
print(init1+"."+init2+"."+init3)
Tony Stark wants to build a 1000 meter high tower as quickly as possible. He has unlimited resources and an unlimited budget and is willing to spend any amount to get the job done.
He has chosen to build the tower with blocks that are 100 meters long and 100 meters wide, but only 1 meter tall. The blocks interlock on top and bottom (like legos). They cannot be stacked sideways.
Using special lifters, putting one block on top of another block takes one week. Putting a stack of up to 100 blocks on top of another stack of 100 or less also takes a week. If either stack is more than 100, it takes two weeks.
What is the shortest amount of time that it will take to build the tower?
Why is your answer the shortest amount of time?
How did you solve the problem? What is your algorithm?
Answer:
10 weeks
Explanation:
100 blocks stacked over 10 weeks will be 1000 meters tall
1000 divided by 100 equals 10
The shortest amount of time it will take to build the tower is 10 weeks.
How can the tower be built in the shortest amount of time?To minimize the construction time, Tony Stark can follow a strategy where he first builds 10 stacks of 100 blocks each, which will take 10 weeks.
Then, he can stack these 10 stacks on top of each other in a single week since they are all 100 blocks or less. By doing so, he can complete the tower in a total of 10 weeks.
Read more about tower construction
brainly.com/question/30730573
#SPJ2
Edhesive 3.2 Lesson Practice question 1
value = float(input("Enter a number: "))
if value > 45.6:
print("Greater than 45.6")
I hope this helps!
The program for the given output can be find in the explanation part which will show the answer "greater than 45.6" if the number exceeds than the digit.
What is computer programming?The development of individual pieces of software that allow the entire system to function as a single unit is referred to as systems programming.
Many layers are involved in system programming, including the operating system (OS), firmware, and development environment.
The complexity of the instructions that computers comprehend is the primary reason why programming is considered difficult to learn. You cannot instruct computers in English or any other human language.
Individuals interested in becoming computer programmers must first obtain a degree in computer science, information technology, mathematics, or a related discipline.
value = float(input("Enter a number: "))
if value > 45.6:
print("Greater than 45.6")
Thus, above mentioned is the computer program that will give the required output.
For more details regarding computer programming, visit:
https://brainly.com/question/3397678
#SPJ5
Describe how to manage the workspace by putting each feature under the action it helps carry out
Answer:
Viewing Documents one at a time:Windows+tab keys,
Windows taskbar
Viewing documents at same time:
Snap,Arrange all
Explanation:
The workspace can be managed by putting control of the surroundings it's far important that you examine all of the factors and items found in your area.
What is the workplace for?Workspaces had been round in Ubuntu properly earlier than the transfer to Unity. They essentially offer you a manner to organization home windows associated with comparable duties together, in addition to get "additional" screenspace.
The subsequent step is to outline a logical and optimizing feature for the factors with a view to continuing to be on your surroundings, defining that each of them may be capable of carrying out an easy and applicable project for his or her paintings.
Read more about the workspace :
https://brainly.com/question/26463698
#SPJ2
Which line will be run?
A. The first line
B. The second
line
// 10 - 8 + 3
18 + 7 + 365
C. Both
D. Neither
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The give code is:
// 10 - 8 + 3
18 + 7 + 365
the given lines of code, if you run it as it is given in the question then the answer is D. Because these lines will run by the compiler but give an error because these lines are not properly written.
However, if we consider, that these lines of codes are correct then the second line will run and the first line will not run because the first line is a comment. Before the beginning of the first line, there is a "//" that shows a comment line. it is a singal line comment and the compiler will not run the comment line.
Given the list my_list containing integers, create a list consisting of all the even elements of my_list. Associate the new list with the variable new_list.
In python:
new_list = [x for x in my_list if x % 2 == 0]
The list consisting of all the even elements of my_list is given in explanation part.
What is list?A list is a series of different variables that are all gathered under one common name. You can specify a single variable x instead of developing a program with numerous variables like x0, x1, x2, etc.
Lists are used to group objects together that typically include components from several data types. Another essential element that collects several instances of the same data type is an array.
Another programming method that will be helpful to our algorithm development is the use of lists because many algorithms need the manipulation of collections of data.
Similar to a variable, a list which is also referred to as an array that is a tool for storing data.
It can be defined as:
new_list = []
for i in my_list:
if i % 2 == 0:
new_list.append(i)
Thus, this can be the code for the given scenario.
For more details regarding programming, visit:
https://brainly.com/question/11023419
#SPJ5
Why is the expression “Visiting a Website” confusing?
Answer:
See explanation
Explanation:
Visiting implies going to a place physically; So, when you say you want to visit a website, in the actual sense, it should mean that you are going to a website physically.
However, a website is not a physical place where you visit, so visit in this case means that you want to see the content of a website through its web address.
So, because you can't visit a website like going there physically, then it's confusing to say I want to visit a website.
Match the code to the image that it will produce
Write a recursive function that prints out the items of a (possibly empty) singly linked list of integers in reverse order. The function should run in linear time.
Answer:
Follows are the method definition to this question:
void Reverse_Order(struct Node* h)//defining a recursive method Reverse_Order that takes structure in parameter
{
if (h == NULL)//use if block to check head equal to null
return;//use return keyword
Reverse_Order(h->next);//call method recursively
cout<<h->data;//print data
}
Explanation:
In the above code, a recursive method "Reverse_Order" takes structure as the parameter, and inside the method, structure variable h is used that uses the if conditional statement to check the header equal to null.
In the condition is true, it will use the return keyword, and in the next step, it calls the method recursively, and print its value in the reverse order.
Is 583 a string or a number?
Answer:
a string
answer
The intersection of a column and row is called a?
worksheet
label
cell
formula
Answer:
cell
Explanation:
Answer:
Cell
Explanation:
1. I took the test and got it right
2. process of elimination How? worksheet is wrong just by looking at it label isnt correct cause you dont label it. and formula that made no sense what so ever. So i picked the most reasonable answer (Cell) :)
The best method to prevent information on a disk from being discovered is to: A) use DOD overwrite protocols in wiping information from the disk. B) put the disk and the computer under water. C) melt the plastic disk contained within a hard drive container. D) smash the drive with a stout hammer
Answer:
C) Melt the plastic disk contained within a hard drive container
Explanation:
Data protection is very necessary from keep saving information from those that are not eligible to access it. It helps to avoid phishing scams, and identity theft.Alot of information are stored on the harddisk daily which can be read by disk drive, as situation can warrant prevention of third party from discovering information on it.There is hard platter used in holding magnetic medium in hard disk which make it different from flexible plastic film used in tapes.The disk drive container helps to hold as well power the disk drive.
It should be noted that The best method to prevent information on a disk from being discovered is to firstly
Melt the plastic disk contained within a hard drive container.
Why would a programmer use a web library?
a
to learn about the history of a programming language
b
to quickly insert functions and code into web pages
c
to find books available in their area
d
to see what websites looked like before they were updated
A programmer that uses a web library quickly inserts functions and code into a web page. The correct option is b.
What is a web library?Programming libraries are helpful resources that can speed up the work of a web developer. They offer pre-written, reusable portions of code so that programmers can easily and quickly create apps.
A library is a group of documents, applications, scripts, routines, or other pieces of code that can be used as references in computer programming.
Therefore, the correct option is b. to quickly insert functions and code into web pages.
To learn more about web library, refer to the link:
https://brainly.com/question/30137392
#SPJ1
Student Generated Code Assignments Option 1: Write a program that will read in 3 grades from the keyboard and will print the average (to 2 decimal places) of those grades to the screen. It should include good prompts and labeled output. Use the examples from the earlier labs to help you. You will want to begin with a design. The Lesson Set 1 Pre-lab Reading Assignment gave an introduction for a design similar to this problem. Notice in the sample run that the answer is stored in fixed point notation with two decimal points of precision. Sample run: Option 2: The Woody furniture company sells the following three styles of chairs: Style Price Per Chair American Colonial $ 85.00 Modern $ 57.50 French Classical $127.75 Write a program that will input the amount of chairs sold for each style. It will print the total dollar sales of each style as well as the total sales of all chairs in fixed point notation with two decimal places.
Sample run:
Please input the first grade 97
Please Input the second grade 98.3
Please Input the third grade 95
The average of the three grades is 96.77
In python:
first_grade = float(input("Please input the first grade "))
second_grade = float(input("Please input the second grade "))
third_grade = float(input("Please input the third grade "))
print("The average of the three grades is {}".format( round((first_grade + second_grade + third_grade) / 3,2)))
First_ grade = float(input("Please input the first grade ")) and second_ grade = float(input("Please input the second grade ")), third_ grade = float(input("Please input the third grade.
What is Program?A computer utilizes a program, which is a collection of instructions, to carry out a particular task. A program is like a computer's recipe, to use an analogy.
It has a list of components (known as variables, which can stand for text, graphics, or numeric data) and a list of instructions (known as statements), which instruct the computer on how to carry out a certain operation.
Programming languages with particular syntax, like C++, Python, and Ruby, are used to develop programs. These high level programming languages are writing and readable by humans.
Therefore, First_ grade = float(input("Please input the first grade ")) and second_ grade = float(input("Please input the second grade ")), third_ grade = float(input("Please input the third grade.
To learn more Programming, refer to the link:
https://brainly.com/question/11023419
#SPJ2
Which function is used to display a string value to the screen?
print()
main()
run =
Hello, World!
Answer:
print()
Explanation:
HTTP is the protocol that governs communications between web servers and web clients (i.e. browsers). Part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. Some of the codes and their meanings are listed below:
200, OK (fulfilled)
403, forbidden
404, not found
500, server error
Given an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
I need this answer in java not c++ and i can't seem to find a java answer
Answer:
Here is the JAVA program:
class Main { //class name
public static void main(String[] args) { //start of main method
int status = 200; //sets status to 200
switch( status ){ //switch statement
case 200: //if code is 200
System.out.println("OK (fulfilled)"); //displays OK (fulfilled) if case is 200
break;
case 403: //if code is 403
System.out.println("forbidden"); //displays forbidden if case is 403
break;
case 404: //if code is 404
System.out.println("not found"); //displays not found if case is 404
break;
case 500: //if code is 500
System.out.println("server error"); //displays server error if case is 500
break;
default: //if status is set to code other than above codes
System.out.println("Unknown code"); //displays Unknown code
break; } } }
Explanation:
If you want to take the status code as input from user then use the following statements:
int status;
Scanner input = new Scanner(System.in);
System.out.print("Enter status code: ");
status= input.nextInt();
After this you can add the switch code chunk in the Answers section. Also import the Scanner class to take status code as input from user:
import java.util.Scanner;
The screenshot of the program along with its output is attached.
PELASE HURRY
How does passing by reference work in Java?
Answer:
Explanation:
The Java programming language does not pass objects by reference; it passes object references by value. Because two copies of the same reference refer to the same actual object, changes made through one reference variable are visible through the other.