Now let's build a calorie counter. The NHS recommends that
an adult male takes on board 2,500 calories per-day and an
adult woman takes on 2,000 calories per-day. Build your
program in python for a woman or a man.

Answers

Answer 1

The building of a program in python for a calorie intake per day by a woman or a man is represented as follows:

print("Your calorie counter")

calories = int(input("How many calories have you eaten today? "))

s=2000-calories

print("You can eat", s, "calories today")

What is Python programming?

Python programming may be characterized as a kind of high-level computer programming language that is often utilized in order to construct websites and software, automate tasks, and conduct data analysis.

There are various factors and characteristics of python programming. Each program is built based on specific attributes. They are strings (text), numbers (for integers), lists (flexible sequences), tuples, and dictionaries. The most important components are expression, statements, comments, conclusion, etc.

Therefore, the python programming for a calorie intake per day by a woman or a man is mentioned above.

To learn more about Python programming, refer to the link:

https://brainly.com/question/26497128

#SPJ1


Related Questions

Most of the devices on the network are connected to least two other nodes or processing
centers. Which type of network topology is being described?

bus

data

mesh

star

Answers

The network topology “mesh” is being described. In terms of computer science, a kind of topology where devices connect to 2+ nodes is called mesh.


Which of the following types of networks can be used to connect different office
locations of one large company?
Local Area Network (LAN)
Wide Area Network (WAN)
Metropolitan Area Network (MAN)
Controlled Area Network (CAN)

Answers

The option that is a types of networks can be used to connect different office locations of one large company is option b: Wide Area Network (WAN).

What do you mean when you say "WAN" (wide area network)?

A wide area network, or WAN for short, is a sizable information network unconnected to a particular region. Through a WAN provider, WANs can make it easier for devices all around the world to communicate, share information, and do much more.

It is a telecommunications network that covers a substantial geographic area is referred to as a wide area network. Leasing telecommunications circuits is a common way to set up wide area networks.

Therefore, The option that is a types of networks can be used to connect different office locations of one large company is option b: Wide Area Network (WAN).

Learn more about Wide Area Network (WAN) from

https://brainly.com/question/14959814
#SPJ1

The automation paradox states: “The more automated machines are, the less we rely on our own skills.” But instead of relying less on automation to improve our skills, we rely even more on automation.” Elaborate further on the skills we would lose as automation is implemented.

Answers

The skills we would lose as automation is implemented are:

Communication Skills. Social Skills. Critical ThinkingThe use of Imagination and Reflection.

What takes place if automation takes over?

The Automation can lead to lost of jobs, as well as reduction in wages.

Note that Workers who are able to  work with machines are said to be the ones that will be more productive than those who cannot use them.

Note that  automation tends to lower both the costs as well as the prices of goods and services, and thus they makes consumers to be able to feel richer as well as loss of some skills for workers.

Therefore, The skills we would lose as automation is implemented are:

Communication Skills. Social Skills. Critical ThinkingThe use of Imagination and Reflection.

Learn more about automation from

https://brainly.com/question/11211656

#SPJ1

Answer: Automation will elimate problem solving skills and communication skills.

Explanation: With the inability to solve problems we lose the skill of using our imaginationa and allowing our brain cells to grow. When you figure out and solve a problem your brain gains more knowledge and you are exercising your brain cells, if you don't use them you will lose them and your inability to make decisions well because there is now AI doing it for you. Also communication one being writing if we no longer have to write with pen and paper we lose the ability to communicate properly in writing our grammer becomes poor and handwriting will no longer be a skill because you never use it.

Isabelle just purchased a camera with an 18-MP image sensor. Based on this, how many pixels can her camera capture and process?

Answers

Since, Isabelle just purchased a camera with an 18-MP image sensor, the number of pixels that her camera can capture and process is 18 million pixels.

What does a pixel on a camera sensor measure?

In regards to picture and photography, the more pixels, the higher the detail as well as the  sharpness of the image that is display or shown.

Note that the Resolution is seen as the  measurement of image sharpness and the fact  is that it is one that can be  expressed in millions of pixels, as well as in megapixels.

Therefore, Since, Isabelle just purchased a camera with an 18-MP image sensor, the number of pixels that her camera can capture and process is 18 million pixels.

Learn more about image sensor from

https://brainly.com/question/13107084

#SPJ1

Answer:

18 million pixels

Explanation:

connexus quiz

PBL projects are graded using what it tells you what you are doing very well and where you may need improvements

Answers

Answer: a rubric

Explanation:

A rubric is a scoring tool that explicitly describes the instructor's performance expectations for an assignment or piece of work

Please write in Python

Answers

A program that returns the price, delta and vega for European and American options is given below:

The Program

import jax.numpy as np

from jax.scipy.stats import norm

from jax import grad

class EuropeanCall:

   def call_price(

       self, asset_price, asset_volatility, strike_price,

       time_to_expiration, risk_free_rate

           ):

     

The complete code can be found in the attached file.

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

Question 2(Multiple Choice Worth 5 points)
(2.02 LC)
When asking the user for input of a numeric value that is negative and has decimal, use the function
float()
int()
print ()
str()

Answers

Answer:

float()

Explanation:

............................

Answers

Honestly yeah. .-- .... .- -

Answer:

................. kinda?

Explanation:

Assume that you are the owner of a small bicycle sales and repair shop serving hundreds of customers in your area. Identify the kinds of customer information you would like your firm's Customer Relationship Management (CRM) system to capture. How migh
this information be used to provide better service or increase revenue? Identify where or how you might capture this data.

Answers

Answer:

Bicycle shops specialize in the selling of bicycles. Depending on the shop, they may also buy, special order, rent, or repair bicycles as additional services. The retail space of the shop usually dictates the size of the inventory.

CRM-Customer Relationship Management:

The CRM is the process of integrating the functions of sales of the product, marketing, and services provided in an organization.

The objective of CRM is to help sales associates to plan the relationship development activities required to maintain and expand business.


1. What criteria must be maintained once a clinical record has been created ?

Answers

The criteria that must be maintained once a clinical record has been created are:

All vital   clinical findings are accurate.A record of the decisions made are true and exact.

What is maintained in a medical record?

Medical records are known to be any kind of document that helps to tell all detail in regards to the patient's history, as well as their clinical findings, their diagnostic test results, medication and others.

Note that  If it is  written rightly, the, notes will help to aid the doctor about the rightness of the treatment of the patient.

Therefore, some of the criteria for high quality form of clinical documentation are they must be :

AccurateExactClearConsistentCompleteReliableLegible, etc.

Therefore, based on the above, The criteria that must be maintained once a clinical record has been created are:

All vital   clinical findings are accurate.A record of the decisions made are true and exact.

Learn more about clinical record from

https://brainly.com/question/21819443
#SPJ1

The table style feature changes the ________ of a table.

a) column width
b) row height
c) appearance

Answers

Answer:

Even before seeing the options I thought appearance so option C all the way.

Good luck ✅

Ace that work

what cloud computing storage

Answers

Answer:

It's where data is stored on the internet via the cloud servers. This allows for access of your data pretty much anywhere you have internet depending which service you stored your data on.

Examples:
Dropbox
Amazon Web Services (AWS)
iCloud
Mega.nz

Peter has a box containing 65 red and blue balls. Counting them, he realizes that there is a ratio of 3 red balls to 10 blue balls. How many blue balls does he have in total?

Answers

The answer would be 5 because elf the amount of blue and red balls

He started out with 47 balls after winning 2 blue balls and losing 3 red balls.

What is equation?

The definition of an equation in algebra is a mathematical statement that demonstrates the equality of two mathematical expressions. For instance, the equation 3x + 5 = 14 consists of the two equations 3x + 5 and 14, which are separated by the 'equal' sign. Coefficients, variables, operators, constants, terms, expressions, and the equal to sign are some of the components of an equation.

The "=" sign and terms on both sides must always be present when writing an equation. Equal treatment should be given to each party.

Here,

Let the number of blue balls be x and the number of red balls be y,

after 5 days ,

x + 10 = y - 15      

after 9 days ,

x + 18 = 2 * ( y - 27 )  

subtracting both,

8 = y - 39

y = 47

The number of red balls in beginning is 47.

He had 47 balls in the beginning as he win 2 blue ball and lose 3 red balls.

Therefore, He started out with 47 balls after winning 2 blue balls and losing 3 red balls.

Learn more about balls on:

https://brainly.com/question/19930452

#SPJ2

What are some options you can set when adding a border? Check all that apply.
O line type
O border margins
O row height
Ocolumn width
Oline weight
O where to apply the border

Answers

I think it’s the column width :)

In Java, System is a:

Answers

Answer:

In Java, System is a:

one of the core classes

The simplest way to synchronize a dialogue is by using a _____ block found within the Control category.


still

pause

hold

wait

I NEED THE ANWER

Answers

The simplest way to synchronize a dialogue is by using a still  block found within the Control category.

What is a Dialogue?

The term known as Dialogue is said to be a word that connote a form of a  written or spoken kind of conversational exchange that tends to exist between two or a lot of people, and a literary as well as theatrical form that shows such an exchange.

Note therefore, that The simplest way to synchronize a dialogue is by using a still  block found within the Control category.

Learn more about dialogue from

https://brainly.com/question/6950210

#SPJ1

how many optical disc of 720mb storage capacity are needed to store 20gb storage of hard disc​

Answers

The answer would be 700 because you would just subtract the amount u need it’s very simple because of the storage amount

why computer is now considered a commodity.

Answers

Answer:

Computers are considered commodities because they are relatively easy to produce and there is a lot of competition in the market. This means that prices are relatively low and there is not a lot of differentiation between products.

Explanation:

Hope this helps!

A data breach is the protection of secure data in an unsecured environment.
True or False.
IT law is a branch of law that provides a legal framework for collecting, storing, and distributing electronic information. True or False.

Answers

Answer: False and True

Explanation:

A data breach is when unsecure data in a secure enviroment gets leaked.

Type the correct answer in the box. Spell all words correctly.
Complete the sentence describing an analog signal.
An analog video is a video signal transmitted by an analog signal, captured on a _____
.

Answers

Answer : amplitude

Explanation : A channel actually consists of two signals: the picture information is transmitted using amplitude modulation on one carrier frequency, and the sound is transmitted with frequency modulation at a frequency at a fixed offset (typically 4.5 to 6 MHz) from the picture signal.

Question 15 (1 point)
Saved
Carla is taking a trip to a cabin to write and she's looking for a typewriter that
doesn't need electricity or any other kind of power. What would be the BEST option
for her?
a tablet
a manual typewriter
an electric typewriter
an IBM typewriter

Answers

Since Carla looking for a typewriter that doesn't need electricity or any other kind of power, the best option would be: B. a manual typewriter.

What is an electrical circuit?

An electrical circuit can be defined as an interconnection of different electrical components, in order to create a pathway for the flow of electric current (electrons) due to a driving voltage.

The components of an electrical circuit.

Generally, an electrical circuit comprises the following electrical components:

ResistorsCapacitorsBatteriesTransistorsSwitchesWiresFuse

Generally speaking, a manual typewriter is a mechanical device that is designed and developed to enable an end user to type, especially without the use of electricity or any other kind of power.

Read more on an manual typewriter here: https://brainly.com/question/2939803

#SPJ1

help me with this


Looking at the example below is the type value equal to a string or an integer?

ball.type = "spike";

a. string
b. integer

Answers

The ball.type = "spike"; is a string type option (a) string is correct because the string cannot be translated into an integer but can only be transformed into another string.

What is execution?

The process by which a computer or virtual machine reads and responds to a computer program's instructions is known as execution in computer and software engineering.

It is given that:

ball.type = "spike';

As we know,

The string cannot be translated into an integer but can only be transformed into another string. The string is a character value enclosed in quotations, whereas the Integer is a numeric value.

ball.type = "spike"; is a string type.

Thus, the ball.type = "spike"; is a string type option (a) string is correct because the string cannot be translated into an integer but can only be transformed into another string.

Learn more about the execution here:

brainly.com/question/20493746

#SPJ1

I need help for javascript shopping cart

Answers

A program that creates a virtual online grocery website

The PHP file

<html>

<head>

       

</head>

<body>

<?php

$servername = "localhost";

$username = "///";

$password = "///";

$dbname = "assignment1";

$conn = new mysqli($servername, $username, $password, $dbname);

if ($conn->connect_error) {

   die("Connection error: " . $conn->connect_error);

}

$product_name = "";

$unit_price = "";

$unit_quantity = "";

$in_stock = "";

$itemId = "";

$showNoItem = "display: none";

$showItem = "";

if (isset($_GET['data'])) {

   $itemId = $_GET['data'];

   $sql = "SELECT product_id , product_name , unit_price, unit_quantity, in_stock  FROM products where product_id=".$itemId;

   $result = $conn->query($sql);

   if ($result->num_rows > 0) {

       

       $showNoItem = "display: none";

      $showItem = "";

       while($row = $result->fetch_assoc()) {

           $product_name = $row["product_name"];

           $unit_price =  $row["unit_price"];

           $unit_quantity =  $row["unit_quantity"];

           $in_stock =  $row["in_stock"];

           break;

       }

   } else {

       $showNoItem = "";

       $showItem = "display: none";

   }

} else {

  $showNoItem = "";

   $showItem = "display: none";

}

?>

<div id="noItem" style="<?php echo $showNoItem?>">Select items from categories on the left.</div>

<div id="itemDiv" style="<?php echo $showItem?>">

  <div class="item-title">

       <span class="item-name"><?php echo $product_name?> </span>

       (<span class="item-quatity"><?php echo $unit_quantity?></span>)

   </div>

   <div class="itemDetail">

       <div class="item-desp">

          <div class="in-stock-div">In Stock: <span class="item-in-stock"><?php echo $in_stock?> </span> </div>

           <div class="price-tag-div">Price: <span class="item-price-red">$<?php echo $unit_price ?></span></div>

           <p></p>

           

           <form action="cart.php" method="get" target="cart" class="order-row" onsubmit="return validate_quantity">

               <input type="number" class="item-quatity-input spin0" min="1" value="1" name="display" id="display" onkeyup="addCartButtonCtrl()" >

               <input type="hidden" name="productId" value="<?php echo $itemId?>">

               <input type="hidden" name="productInfo" value='<?php echo "$product_name($unit_quantity)"?>'>

               <input type="hidden" name="productPrice" value="<?php echo $unit_price ?>" >

               <div class="add-cart-div">

                   <input id="cart-button" class="btn btn-primary" type="submit" value="Add to Cart" title="Add to cart." onclick="updateShoppingCart()">

               </div>

           </form>

       </div>

   </div>

</div>

<?php

$conn->close();

?>

</body>

</html>

Adding the CartButton

addCartButtonCtrl(){

$action = $_GET['action'];

           switch ($action) {

               case 'Add':

                  $product_id = $_GET['productId'];

                   $product_name = $_GET['productInfo'];

                   $unit_price = $_GET['ProductPrice'];

                   

                   if(!isset($_SESSION['cart'])) {

                       $_SESSION['cart']=array();

                   }

                   $index = getItemIndex($product_id);

                  if ($index < 0) {

                       $item_array=array('product_id' => $product_id,

                                         'product_name' => $product_name,

                                         'unit_price' => $unit_price,

}

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

A piece of data that is written into a program's code is a

Answers

Answer:

A piece of data that is written into a program's code is a literal.

Explanation:

what do u mean by server ?​

Answers

A lot of computers that is shared by one network. They usually help utilize there resources remotely

Write a program that reads a monetary amount in dollars and cents (such as 37.84) and computes the equivalent in bills and coins, using the largest denominations possible.

Use a Scanner object to read in a double value for the monetary amount
Convert the total monetary amount to an integer representing the total number of cents (there are 100 cents in a dollar)
US monetary denominations
ten dollar bill = 1000 cents
five dollar bill = 500 cents
one dollar bill = 100 cents
quarter coin = 25 cents
dime coin = 10 cents
nickel coin = 5 cents
penny coin = 1 cent
Use integer division (/) and modulus (%) to calculate each denomination and the cents left over
Hint: You will need to successively divide the remaining cents by the number of cents in the denomination, starting with the ten dollar bills.
tens = remainingCents / 1000; // Divide the total cents by the number of cents in $10
remainingCents = remainingCents % 1000; //Remainder of division by 1000 is what is left after $10 bills taken out
When user input appears as shown in Figure 1, your program should produce output as shown in Figure 2.

Figure 1: (input)

37.84
Figure 2: (output)

$37.84 is equivalent to the following:
3 ten dollar bills
1 five dollar bills
2 one dollar bills
3 quarters
0 dimes
1 nickels
4 pennies


import java.util.Scanner;

public class MoneyConversion
{
// This program reads a monetary amount and computes the equivalent in bills and coins
public static void main (String[] args)
{
double total;
int tens, fives, ones, quarters, dimes, nickels;
int remainingCents;

Scanner scnr = new Scanner(System.in);

// Read in the monetary amount
total = scnr.nextDouble();

// Add the remaining code to finish out the program

}
}

Answers

Using the knowledge of computational language in python we can write the code as program that reads a monetary amount in dollars and cents (such as 37.84) and computes the equivalent in bills and coins, using the largest denominations possible.

Writting the code:

import java.util.Scanner;

public class Money {

public static void main(String[] args) {

double amount; // This displays user's amount

int one, five, ten;

int penny, nickel, dime, quarter;

// Create a Scanner object to read input.

Scanner kb = new Scanner(System.in);

// Get the user's amount

System.out.print("What is the amount? ");

amount = kb.nextDouble();

// Calculations

ten = (int) (amount / 10);

amount = amount % 10;

five = (int) (amount / 5);

amount = amount % 5;

one = (int) (amount / 1);

amount = amount % 1;

quarter = (int) (amount / .25);

amount = amount % .25;

dime = (int) (amount / .10);

amount = amount % .10;

nickel = (int) (amount / .05);

amount = amount % .05;

penny = (int) (amount / .01);

amount = amount % .01;

// Display the results

//println adds a new line by default

System.out.println(ten + " tens.");

System.out.println(five + " fives.");

System.out.println(one + " ones.");

System.out.println(quarter + " quarters.");

System.out.println(dime + " dimes.");

System.out.println(nickel + " nickels.");

System.out.println(penny + " pennies.");

}

}

See more about JAVA at brainly.com/question/12975450

#SPJ1

Two examples of a relation and their candidate key.

Answers

The two examples of relation and their candidate key are as follows:

STUD_NO in STUDENT relation.FAMIL_EARN in ECoNOMIC relation.

What is the Candidate key?

The candidate key may be defined as a particular kind of field in a relational database that can significantly recognize each unique record independently of any other data.

The candidate key remarkably illustrates the minimal set of ascribes that can uniquely identify given characteristics of the data. More than one candidate key takes place to represent a given set of data and information on the basis of some attributes.

Therefore, the two examples of relation and their candidate key are well described above.

To learn more about Candidate key, refer to the link:

https://brainly.com/question/13437797

#SPJ1

a) Explain why there are more general-purpose registers than special purpose registers.

Answers

Answer:

Special purpose registers hold the status of a program. These registers are designated for a special purpose. Some of these registers are stack pointer, program counter etc. General purpose registers hold the temporary data while performing different operations.

User asks you to develop a program that calculates and then prints interest earned on a bank
balance. Program should print interest earned for the same balance when interest is accumulated
annually, semiannually and quarterly.
Interest earned yearly-balance * rate /100
Interest earned semiannually balance*rate/2/100
Interest earned quarterly= balance*rate/4/100
for annual
for semi annual
for quarterly
00 is Current (1) times resistance (R)

Answers

The program that calculates and then prints interest earned on a bank balance is given below:

The Program

#include <bits/stdc++.h>

using namespace std;

int main()

{

   double principle = 10000, rate = 5, time = 2;

   /* Calculate compound interest */

   double A = principle * (pow((1 + rate / 100), time));

     double CI = A- principle;

   cout << "Compound interest is " << CI;

   return 0;

}

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

Which statement about the discipline of information systems is true?
A. It involves organizing and maintaining computer networks.
B. It involves connecting computer systems and users together.
C. It involves physical computer systems, network connections, and
circuit boards.
D. It involves all facets of how computers and computer systems
work

Answers

Answer:

C.

Personal computers, smartphones, databases, and networks

Answer:

IT'S B

Explanation:

TRUST ME I HAD TO LEARN THE HARD WAY!!

Other Questions
estio1. (a) Interpret How would you describe the tone of paragraph 17? A town's population is 42,975. About 125 people move out of the town each month. Each month, 150 people on average move into town. A nearby town has a population of 45,225. It has no one moving in and an average of 200 people moving away every month. In about how many months will the populations of the towns be equal? Write an equation to model the situation. Then solve the equation and answer the question. How is it that crop yields increased in the decades after World War II despitethe number of farmsdecreasing? A. Cotton began to replace corn as the United States' mainagricultural export. B. The growth of bio-engineering produced new types of high-yieldcrops.C. Demand for U.S. crops forced more efficient use offarmland.existingD. Mechanization decreased theland.number of farmers needed to work What health science professional helps individuals participate in tasks and activities that they want or need to perform as part of their daily lives? There are only two naturally-occuring stable isotopes of lithium, the masses of which are listed in the table below. Use whatever data you need from the ALEKS Periodic Table to calculate the natural abundance of each isotope and complete the table. Each American colony developed differently, but there were beliefs that they had in common. In one to two sentences, explain some differences between the colonies and what they had in common. what is the answer to -1/2+1/3a=1/8 In mortgage lending, a borrower is required to pledge specific real property as security (collateral) for the loan in a practice called? 10. What type of muscle tissue is involuntary, non-striated, and assists with peristalsis?a. Cardiacb. EpithelialC. Skeletald. Smooth In blood pressure measurement, _____ reflects the lowest pressure during the relaxation phase following a contraction. Photosynthesis vs. RespirationCellular Respiration and photosynthesis can be thought of as opposite processes. Energyflows in opposite directions in the two processes.Complete the table using the phrases listed below:Green plant cellsCO,+H,O+ATPMitochondriaWhat Is Its purpose?What type of cells do this?What organelle in the celldoes this?ReactantsProducts2. Which process:ChloroplastGlucose + OCapture & Store energyCO + HO + light1. Write the equation for each process:a. Photosynthesis:b. Respiration:PHOTOSYNTHESIS3. What type of energy:a. Releases energy for the cell?b. Stores energy for the cell?Release energy from foodAll cellsGlucose + ORESPIRATIONa. Is used to make food during photosynthesis?b. Is made during respiration?4. How do the products of photosynthesis compare to the reactants of respiration? What is -33.44/-1.9 in division? How does delta/country blues differ from 12 bar blues? name one performer/composer of each. What operation management tools were used extensively in managing hard rock's rockfest? The ________ bond amortization method allocates an equal portion of the total bond interest expense to each interest period. multiple choice question. straight-line effective interest equal allocation Rashon needed to get his computer fixed. He took it to the repair store. The technician at the store worked on the computer for 4.25 hours and charged him $141 for parts. The total was $332.25. Write and solve an equation which can be used to determine xx, the cost of the labor per hour. the year of publication should be included in parentheses after an author's name whenever the author is named in the text. for example: smith (2021) argued that... Graffiti art is painted in place where --------can see it. HELP I WILL GIVE BRAINLIEST!!!! M14. Select all the situations that could be represented by the expression 40. (-18).A hot air balloon descends 18 inches per a second for 40 seconds.A hot air balloon ascends 40 inches per a second for 18 seconds.Trey withdraws $18 from his checking account once a week for 40 weeks.Suzanne deposits $18 into her savings account once a week for 40 weeks.Morty withdraws $40 from his checking account once a month for 18 months. A non-fiction text that uses pronouns such as "I, me" and "my" is written from what point of view?A. Third person singularOB. Third person pluralOC. First person pluralD. First person singularReset Selection