The computer operators should be well known with batch systems.
Batch systems are hard to debug.
It is sometime costly.
The other jobs will have to wait for an unknown time if any job fails.
Explanation:
Answer:
Disadvantages of Batch Operating System:
The computer operators should be well known with batch systems.Batch systems are hard to debug.It is sometime costly.The other jobs will have to wait for an unknown time if any job fails.A line drawn around the edges of an element, such as a table or a table call
Answer:
It is called Borders..can also be drawn around paragraphs and pages..
Select the items that you may see on a Windows desktop.
Shortcuts to frequently used programs
System tray
Recycle Bin
Taskbar
O Database
Icons
O Quick Launch
Answer:
You may see:
The taskbar
The startmenu
Program icons within the taskbar
Shortcuts
Documents
Folders
Media files
Text files
The Recycle Bin
and so on...
What questions would you ask an employer at a job interview?
Answer:
8 Questions You Should Absolutely Ask An Interviewer
QUESTION #1: What do the day-to-day responsibilities of the role look like? ...
QUESTION #2: What are the company's values? ...
QUESTION #3: What's your favorite part about working at the company? ...
QUESTION #4: What does success look like in this position, and how do you measure it?
Explanation:
I hope this answer is Wright ,So please mark as brainlist answers
HELLLPPPPPP For each of the following discussion questions, write a response in complete sentences. Your response should be at least one paragraph (5 to 7 sentences). Each discussion response is worth a total of 5 points.
What are three ways that you can protect and care for your camera? Why is taking care of your camera important? I got logged out and it didnt save my work and i need to get done with thissssss
Answer:
Avoid dirt and sand. Use care when cleaning dirt particles and sand from your digital camera. Do not use canned or pressurized air to clean the sand, as you might just drive the particles into the camera case. Budget-priced camera cases might not be sealed perfectly, making it easier for grit and sand to penetrate the case and cause damage. Gently blow out the grit and sand to avoid this problem. Use care when shooting photos on a windy day at the beach, too, where sand can blow with excessive force. Avoid opening the battery compartment on such days.
Avoid liquids. Keep all liquids away from the camera unless you own a model with a waterproof case.
Avoid touching the lens and LCD. Oils from your skin smudge the lens and LCD, eventually causing permanent damage. Clean the lens and LCD with a microfiber cloth when you see a smudge from your fingertips.
The lens and sun don't mix. Do not point your camera's lens directly at the sun for any length of time, especially with a DSLR camera. Sunlight focused through the lens of the camera could damage the image sensor or even start a fire inside the camera.
Use cleaning liquids with care. Avoid using an excessive amount of cleaning liquid with your camera. In fact, other than stubborn smudges, you should be able to clean the camera with a dry microfiber cloth. If a liquid is needed, place a few drops of the liquid on the cloth, rather than directly on the camera.
Vacuum the bag. Dirt and sand inside your camera bag could damage your camera, so vacuum the bag regularly to keep it clean and protect your camera.
Watch the temperature. Although some cameras are designed to survive harsh temperatures, most cameras are not. Do not leave your camera in a sunny vehicle, where temperatures quickly can exceed 100 degrees Fahrenheit. Avoid leaving the camera in direct sunlight, which can damage the plastic. Finally, avoid extreme cold, too, which could damage the LCD.
Use neck straps and wrist loops. Use neck straps and wrist loops with your camera. If you slip while hiking, or if you lose the grip on your camera near the pool, the straps can save your camera from a potentially disastrous fall.
Store camera properly. If you're not going to use your camera for a couple of months, store it in a low humidity area and out of direct sunlight. Additionally, store the camera without the battery inserted to reduce the risk of corrosion.
Explanation:
:)
I need help. People who know computer science. I have selected a word from the first 1000 words in my dictionary. Using the binary search algorithm, how many questions do you have to ask me to discover the word I have chosen?
a. 8 b. 10 c. 12 d. 14
Answer:
14
Explanation:
Use the drop-down menu to put the four steps of effective time management in order.
1. Complete the
.
2. Make the
.
3. Prioritize the
.
4. Establish the
.
Answer:
1. Complete the
✔ study-time survey
.
2. Make the
✔ project schedule
.
3. Prioritize the
✔ tasks
.
4. Establish the
✔ award system
.
Explanation:
brainliest please
The drop-down menu shows effective time management by Completing a study-time survey, making a project schedule, prioritizing tasks, and establishing an award system.
What is effective time management?Time management is a process organizing and managing time by dividing it into various activities and working smarter not harder.
Effective time management is an art as it includes completing study time a survey, making and scheduling the projects on time, prioritizing the tasks and establishing the system.
Find out more information about time management.
brainly.com/question/24662469
The SAP ERP ____ software module plans and schedules production and records actual production activities.A) project systemB) production planningC) quality managementD) asset management
Answer:
A) project system
Explanation:
The SAP ERP is a planning software that incorporates the business function of an organization. The business function are Operations, Financials, Human Capital Management and Corporate Services.
SAP Project System is a tool (functional module) that is integrated with the SAP Enterprise Resource Planning (SAP ERP) system allowing users to direct funds and resources as well as controlling each stage of the project. It also allow users to define start and end date of the project.
Which of the following best describes open-source code software?
O A. a type of software that is open to the public and can be modified
B. a type of software that is free to download, but cannot be modified
C. a type of software that is locked, but can be modified
D. a type of software that has already been modified
Answer:
A. a type of software that is open to the public and can be modified.
Explanation:
Open-source refers to anything that is released under a license in which the original owner grants others the right to change, use, and distribute the material for any purpose.
Open-source code software is described as a type of software that is open to the public and can be modified. The correct option is A.
What is open-source code?Open-source software is computer software that is distributed under a licence that allows users to use, study, change, and distribute the software and its source code to anyone and for any purpose.
Open-source software can be created collaboratively and publicly. Open-source refers to anything that is released under a licence that allows others to change, use, and distribute the material for any purpose.
Therefore, open-source code software is defined as software that is freely available to the public and can be modified. A is the correct answer.
To know more about open-source code follow
https://brainly.com/question/15039221
#SPJ6
Write a method called min that takes three integers as parameters and returns the smallest of the three values, such that a call of min(3, -2, 7) would return -2, and a call of min(19, 27, 6) would return 6. Use Math.min to write your solution.
Answer:
public class Main
{
public static void main(String[] args) {
System.out.println(min(3, -2, 7));
}
public static int min(int n1, int n2, int n3){
int smallest = Math.min(Math.min(n1, n2), n3);
return smallest;
}
}
Explanation:
*The code is in Java.
Create a method named min that takes three parameters, n1, n2, and n3
Inside the method:
Call the method Math.min() to find the smallest among n1 and n2. Then, pass the result of this method to Math.min() again with n3 to find the min among three of them and return it. Note that Math.min() returns the smallest number among two parameters.
In the main:
Call the method with parameters given in the example and print the result
Methods are named program statements that are executed when called/invoked.
The method in Python, where comments are used to explain each line is as follows:
#This defines the method
def mmin(a,b,c):
#This calculates the smallest of the three values using math.min
minNum = min(a,b,c)
#This prints the smallest value
return minNum
Read more about methods at:
https://brainly.com/question/14284563
The SQL SELECT command is capable of executing ____.
a. only relational Select operations
b. only relational Select and Project operations but not relational Join operations
c. relational Select, Project, and Join operations individually but not in combination
d. relational Select, Project, and Join operations individually or in combination
e. None of the above.
Answer:
d. relational Select, Project, and Join operations individually or in combination
Explanation:
SQL is short for structured query language. The SQL Select command allows the user to obtain data from a database. After the data is computed, the output is in a tabular form which is known as the result set.
All the queries begin with the Select command. The column and the table names are clearly noted in the instructions. This command can also execute projects and join several operations in combination or individually.
C Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 10 as long as the value is less than or equal to the second integer. Ex: If the input is: -15 30 the output is:
Answer:
Written in C Language
#include <stdio.h>
int main() {
int num1, num2;
printf("Enter two integers: ");
scanf("%d", &num1);
scanf("%d", &num2);
if(num1 <= num2){
for(int i = num1; i<= num2; i+=10)
{
printf("%d",i); printf(" ");
}
}
return 0;
}
Explanation:
This line declares two integer variables
int num1, num2;
This line prompts user for input of the two numbers
printf("Enter two integers: ");
The next two lines get integer input from the user
scanf("%d", &num1);
scanf("%d", &num2);
The following if statement checks if num1 is less than or equal to num2
if(num1 <= num2){
The following iteration prints from num1 to num2 at an increment of 10
for(int i = num1; i<= num2; i+=10)
{
printf("%d",i); printf(" ");
}
Language: C
Introduction
For this assignment you will write an encoder and a decoder for a modified "book cipher." A book cipher uses a document or book as the cipher key, and the cipher itself uses numbers that reference the words within the text. For example, one of the Beale ciphers used an edition of The Declaration of Independence as the cipher key. The cipher you will write will use a pair of numbers corresponding to each letter in the text. The first number denotes the position of a word in the key text (starting at 0), and the second number denotes the position of the letter in the word (also starting at 0). For instance, given the following key text (the numbers correspond to the index of the first word in the line):
[0] 'Twas brillig, and the slithy toves Did gyre and gimble in the wabe;
[13] All mimsy were the borogoves, And the mome raths outgrabe.
[23] "Beware the Jabberwock, my son! The jaws that bite, the claws that catch!
[36] Beware the Jubjub bird, and shun The frumious Bandersnatch!"
[45] He took his vorpal sword in hand: Long time the manxome foe he sought—
The word "computer" can be encoded with the following pairs of numbers:
35,0 catch
5,1 toves
42,3 frumious
48,3 vorpal
22,1 outgrabe
34,3 that
23,5 Beware
7,2 gyre
The .cpp code is avaiable bellow
Code:
#include <stdio.h>
#include <string.h>
int main()
{
char **kW;
char *fN;
int nW = 0;
kW = malloc(5000 * sizeof(char*));
for (int i = 0; i<5000; i++)
{
kW[i] = (char *)malloc(15);
}
fN = (char*)malloc(25);
int choice;
while (1)
{
printf("1) File text to use as cipher\n");
printf("2) Make a cipher with the input text file and save result as output file\n");
printf("3) Decode existing cipher\n");
printf("4) Exit.\n");
printf("Enter choice: ");
scanf("%d", &choice);
if (choice == 1)
{
nW = readFile(kW, fN);
}
else if (choice == 2)
{
encode(kW, fN, nW);
}
else
{
Exit();
}
printf("\n");
}
return 0;
}
int readFile(char** words, char *fN)
{
FILE *read;
printf("Enter the name of a cipher text file:");
scanf("%s", fN);
read = fopen(fN, "r");
if (read == NULL)
{
puts("Error: Couldn't open file");
fN = NULL;
return;
}
char line[1000];
int word = 0;
while (fgets(line, sizeof line, read) != NULL)
{
int i = 0;
int j = 0;
while (line[i] != '\0')
{
if (line[i] != ' ')
{
if (line[i] >= 65 && line[i] <= 90)
{
words[word][j] = line[i]; +32;
}
else
{
words[word][j] = line[i];
}
j++;
}
else
{
words[word][j] = '\n';
j = 0;
word++;
}
i++;
}
words[word][j] = '\n';
word++;
}
return word;
}
void encode(char** words, char *fN, int nwords)
{
char line[50];
char result[100];
if (strcmp(fN, "") == 0)
{
nwords = readFile(words, fN);
}
getchar();
printf("Enter a secret message(and press enter): ");
gets(line);
int i = 0, j = 0;
int w = 0, k = 0;
while (line[i] != '\0')
{
if (line[i] >= 65 && line[i] <= 90)
{
line[i] = line[i] + 32;
}
w = 0;
int found = 0;
while (w<nwords)
{
j = 0;
while (words[w][j] != '\0')
{
if (line[i] == words[w][j])
{
printf("%c -> %d,%d \n", line[i], w, j);
found = 1;
break;
}
j++;
}
if (found == 1)
break;
w++;
}
i++;
}
result[k] = '\n';
}
void Exit()
{
exit(0);
}
Complete the do-while loop to output from 0 to the value of countLimit using printVal. Assume the user will only input a positive number. For example, if countLimit is 5 the output will be:
0
1
2
3
4
5
import java.util.Scanner;
public class CountToLimit {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
int countLimit = 0;
int printVal = 0;
// Get user input
countLimit = scnr.nextInt();
printVal = 0;
do {
System.out.print(printVal + " ");
printVal = printVal + 1;
} while ( /* Your solution goes here */ );
System.out.println("");
return;
}
}
Answer:
Replace
while ( /* Your solution goes here */ );
with
while (printVal <=countLimit );
Explanation:
while (printVal <=countLimit );
This checks if the printVal is less than or equal to countLimit.
While this statement is true, the program will continue printing the required output
See attachment for complete program
To what does the term "versioning information" refer?
O the version of software that a system is running
the version of your monitor
the number of versions of a virus you have
the version of your PC
Answer:
The answer to this question is given below in the explanation section.
Explanation:
The versioning information refers to the version of the software that a system is running. Versioning of software is the creation and managing of multiple releases of software that all have the same general functionality but improved, modified, upgraded, and customized.
so the correct answer to this question is version information refers to the version of a software that a system is running.
Other options are not correct, because the term version mostly used for software, web application, and web, API services.
The best term use for a version of monitor and PC is model number and also noted that virus detecting software can have version number but the virus itself doesn't have any version number.
So all other options of this question are incorrect except the first option that is:- Versioning information refers to the version of the software that a system is running.
Write a program that asks for the names of three runners and the time, in minutes, it took each of them to finish a race. The program should display the names of the runners in the order that they finished.
Answer:
Written in Python
names = []
times = []
for i in range(0,3):
nname = input("Name "+str(i+1)+": ")
names.append(nname)
time = input("Time "+str(i+1)+": ")
times.append(time)
if times[2]>=times[1] and times[2]>=times[0]:
print(names[2]+" "+times[2])
if times[1]>=times[0]:
print(names[1]+" "+times[1])
print(names[0]+" "+times[0])
else:
print(names[0]+" "+times[0])
print(names[1]+" "+times[1])
elif times[1]>=times[2] and times[1]>=times[0]:
print(names[1]+" "+times[1])
if times[2]>times[0]:
print(names[2]+" "+times[2])
print(names[0]+" "+times[0])
else:
print(names[0]+" "+times[0])
print(names[2]+" "+times[2])
else:
print(names[0]+" "+times[0])
if times[2]>times[0]:
print(names[2]+" "+times[2])
print(names[1]+" "+times[1])
else:
print(names[1]+" "+times[1])
print(names[2]+" "+times[2])
Explanation:
I've added the full source code as an attachment where I used comments to explain difficult lines
Which syntax error in programming is unlikely to be highlighted by a compiler or an interpreter? a variable name misspelling a missing space a comma in place of a period a missing closing quotation mark
Answer:
A variable name misspelling.
Explanation:
A Syntax Error that occurs as the result of a variable name that is misspelled will not be highlighted.
On edg 2020
Answer:
A variable name misspelling.
Ex planation:
A
Write a function add_spaces(s) that takes an arbitrary string s as input and uses a loop to form and return the string formed by adding a space between each pair of adjacent characters in the string. You may assume that s is not empty.
Solution:
def add_spaces(s):
result = ""
for i in range(len(s)-1):
result += (s[i]+" ")
result += s[-1]
return result
# Testing
print(add_spaces('hello'))
print(add_spaces('hangman'))
print(add_spaces('x'))
And the output will be
hello
hangman
x
Process finished with exit code 0
Order the steps for accessing the junk email options in outlook 2016
Answer:
1 Select a message
2 Locate the delete group on the ribbon
3 Click the junk button
4 Select junk email options
5 Choose one of the protection levels
Explanation:
Correct on Edg 2021
Answer:
In this Order:
Select Message, Locate delete group, click the junk, choose one of the...
Explanation:
Edg 2021 just took test
Write a function, maxRadius, to find an index of a Planet with the largest radius in the array. The function should
Answer:
Follows are the code to this question:
#include<iostream>//defining header file
#include<string>//defining header file
using namespace std;
const double Pi =3.141592653589793238463;//defining double constant variable
class Planet
{
private:
string planet_name;//defining string variable
double radius;//defining double variable
public:
Planet()//defining default constructor
{
this->planet_name="";//use this keyword to hold value
this->radius=0.0;//use this keyword to hold value
}
Planet(string name, double radius)//defining parameterized constructor
{
this->planet_name = name;//use this keyword to hold value
this->radius=radius;//use this keyword to hold value
}
string getName() const//defining getName method
{
return this->planet_name;//use return keyword for return string value
}
double getRadius() const//defining getRadius method
{
return this->radius;//use return keyword for return radius value
}
double getVolume() const //defining getVolume method
{
return 4*radius*radius*radius*Pi/3;////use return keyword for return volume value
}
};
int maxRadius(Planet* planets, int s)//defining a method maxRadius that accept two parameter
{
double maxRadius=0;//defining double variable
int index_of_max_radius=-1;//defining integer variable
for(int index=0; index<s; index++)//defining for loop for calculate index of radius
{
if(planets[index].getRadius()>maxRadius)//defining if block to check radius
{
maxRadius = planets[index].getRadius();//use maxRadius to hold value
index_of_max_radius=index;//hold index value
}
}
return index_of_max_radius;//return index value
}
int main()//defining main method
{
Planet planets[5];//defining array as class name
planets[0] = Planet("On A Cob Planet",1234);//use array to assign value
planets[1] = Planet("Bird World",4321);//use array to assign value
int idx = maxRadius(planets,2);//defining integer variable call method maxRadius
cout<<planets[idx].getName()<<endl;//print value by calling getName method
cout<<planets[idx].getRadius()<<endl;//print value by calling getRadius method
cout<<planets[idx].getVolume()<<endl;//print value by calling getVolume method
}
Output:
Bird World
4321
3.37941e+11
Explanation:
please find the complete question in the attached file:
In the above-program code, a double constant variable "Pi" is defined that holds a value, in the next step, a class "Planet" is defined, in the class a default and parameter constructor that is defined that hold values.
In the next step, a get method is used that return value, that is "planet_name, radius, and volume".
In the next step, a method "maxRadius" is defined that accepts two-parameter and calculate the index value, in the main method class type array is defined, and use an array to hold value and defined "idx" to call "maxRadius" method and use print method to call get method.
Write a program that takes as input a number of kilometers and prints the corresponding number of nautical miles.
Use the following approximations:
A kilometer represents 1/10,000 of the distance between the North Pole and the equator.
There are 90 degrees, containing 60 minutes of arc each, between the North Pole and the equator.
A nautical mile is 1 minute of an arc.
An example of the program input and output is shown below:
Enter the number of kilometers: 100
The number of nautical miles is 54
In python:
kilos = int(input("Enter the number of kilometers: "))
print(f"The number of nautical miles is {round(kilos/1.852,2)}")
I hope this helps!
For an input of 100 kilometers, the program displays "The number of nautical miles is 54.00."
To convert kilometers to nautical miles based on the given approximations.
Here are the simple steps to write the code:
1. Define a function called km_to_nautical_miles that takes the number of kilometers as input.
2. Multiply the number of kilometers by the conversion factor [tex](90 / (10000 \times 60))[/tex] to get the equivalent number of nautical miles.
3. Return the calculated value of nautical miles from the function.
4. Prompt the user to enter the number of kilometers they want to convert.
5. Read the user's input and store it in a variable called kilometers.
6. Call the km_to_nautical_miles function, passing the kilometers variable as an argument, to perform the conversion.
7. Store the calculated value of nautical miles in a variable called nautical_miles.
8. Display the result to the user using the print function, formatting the output string as desired.
Now the codes are:
def km_to_nautical_miles(km):
nautical_miles = (km * 90) / (10000 * 60)
return nautical_miles
kilometers = float(input("Enter the number of kilometers: "))
nautical_miles = km_to_nautical_miles(kilometers)
print(f"The number of nautical miles is {nautical_miles:.2f}.")
The output of this program is:
The result is displayed to the user as "The number of nautical miles is 54.00."
To learn more about programming visit:
https://brainly.com/question/14368396
#SPJ4
hhhhhh You do not need to tell a teacher you have downloaded anything as long as it did not save to your computer.
Please select the best answer from the choices provided
T
F
nyan...
Answer: F
Explanation: Have a Great Day!
Answer:
MATERWELON
Explanation:
Which of the following is true about strings?
They cannot be stored to a variable
An input (unless otherwise specified) will be stored as a string
They do not let the user type in letters, numbers and words
They are used for arithmetic calculations
Answer:
Your answer is option C, or the third option.
They do not let the user type in letters, numbers, and words.
Explanation:
Strings are defined as a sequence of characters literal, constant, or variable. These sequences are like an array of data or list of code that represents a structure. Formally in a language, this includes a finite(limited) set of symbols derived from an alphabet. These characters are generallu given a maximum of one byte of data each character. In longer languages like japanese, chinese, or korean, they exceed the 256 character limit of an 8 bit byte per character encoding because of the complexity of the logogram(character representing a morpheme((which is the simpliest morphological(form or structure) unit of language with meaning)) character with 8 bit (1 byte, these are units of data) refers to cpu(central processing unit) which is the main part of a computer that processes instructions, and sends signals.
what is a computer ?it types
Answer:
A computer is a digital device that you can do things on such as play games, research something, do homework.
Explanation:
Answer:
A computer can be best described as an electronic device that works under the control of information stored in it's memory.
There are also types of computers which are;
Microcomputers/personal computerMini computersMainframe computerssuper computersReading for comprehension requires _____ reading?
1. passive
2. active
3. slow
4. fast
Answer:
IT is ACTIVE
Explanation: I took the quiz
Answer:
not sure sorry
Explanation:
Write a program that takes a three digit number (input) and prints its ones, tens and hundreds digits on separate lines
In python:
number = input("Enter your number ")
i = 0
while i < len(number):
print(number[i])
i += 1
What is the best scenario to use a display font?
for quickly read messages, such as a highway sign
for important, dense information, such as a nutrition label
for small type, such as in body copy
for large type, such as a title
Answer:
For large type, such as a title
Explanation:
i tried all of the answer's til i got the right one
The best scenario to use a display font is that it makes the requirement to type large, such as a title. Thus, the correct option is D.
What is a Display font?A display font may be defined as the arrangement of words with respect to the requirement that makes the writing more attractive, effective, and understandable.
Display font is utilized in order to determine how a font face is represented based on whether and when it is downloaded and ready to use.
Display fonts generally include large types of texts which are used to frame a title. This makes the title more attractive, effective, and ready to read from a long distance as well.
A title is the main characteristic that influences the readers about the writing.
Therefore, the best scenario to use a display font is that it makes the requirement to type large, such as a title. Thus, the correct option is D.
To learn more about fonts, refer to the link:
https://brainly.com/question/14052507
#SPJ2
CJ is developing a new website blogging about cutting-edge technologies for people with special needs. He wants to make the site accessible and user friendly.
CJ knows that some of the visitors who frequent his website will use screen readers. To allow these users to bypass the navigation, he will use a skip link, He wants to position the skip link on the right but first he must use the ____ property.
a) display
b) right
c) left
d) nav
Answer:
The answer is "Option c".
Explanation:
It is an internal page reference which, whilst also completely new pages, allow navigating around the current page. They are largely used only for bypassing and 'skipping' across redundant web page content by voice command users, that's why the CJ would use a skip link to enable those users to bypass specific navigation, and he also wants to put this link on the right, but first, he needs to use the left property.
Match the graphic design tool to its purpose/definition.
-Drawing
-Layers
-Magic Wand
-Lasso
a. You can combine several images to
create one image.
b. You can make selections of irregular
shapes.
c. You can draw rectangles, circles,
and other geometric shapes.
d. You can select areas based on
color.
Answer:
You can combine several images to
create one image. -------Layers
You can make selections of irregular
shapes. ----------- Lasso
You can draw rectangles, circles,
and other geometric shapes.-- Drawing
You can select areas based on
color.------Magic Wand
Explanation:
Graphic design software is used to create, edit, and view graphic art. Graphic design software comes in a wide variety of forms, each with a unique set of tools and features.
What graphic design tool, its purpose?These software programs allow graphic designers to produce, edit, store, and manage their creative output, including pictures, images, videos, presentations, brochures, and other visual forms.
They can be installed to run from a desktop computer or provided as a cloud-based service. Users can format layouts, generate multimedia, stylize or edit photos, and create graphics, depending on the software.
Therefore, You can combine several images to create one image. -------Layers. You can choose from a variety of strange shapes. —- Lasso. You can draw rectangles, circles, and other geometric shapes.-- Drawing. Furthermore, you can select areas based on color.------Magic Wand.
Learn more about graphic design tool here:
https://brainly.com/question/9105717
#SPJ5
A nutritionist who works for a fitness club helps members by evaluating their diets. As part of her evaluation, she asks members for the number of fat grams and carbohydrate grams that they consumed in a day. Then, she calculates the number of calories that result from the fat, using the following formula: calories from fat = fat grams X 9 Next, she calculates the number of calories that result from the carbohydrates, using the following formula: calories from carbs = carb grams X 4 The nutritionist asks you to write a program that will make these calculations.
In python:
fat = int(input("Enter the # of fat grams: "))
carbs = int(input("Enter the # of carbohydrate grams: "))
print("The calories from fat are {} and the calories from carbs is {}".format(fat * 9, carbs * 4))
What is a piece of information sent to a function
Answer:
the information sent to a function is the 'input'.
or maybe not hehe