1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Crank
3 years ago
5

Problem 2 (40 points)-Write a program. Submit a file named weight.cpp Create a program that continuously allows a user to enter

his or her weight in either pounds or kilos. The program should then convert the given weight. Possible Sample Run 1 (your program does not have to match the following exactly, but should have the same functionality): Please enter your name and weight. James 182 pounds Hi James- you weigh 82.5 kilos. Please enter your name and weight. Connor 78 Not enough info to convert. Please enter your name and weight. Connor 78 kilos Hi Connor-you weigh 171.9 pounds. Please enter your name and weight. exit Exiting…
Computers and Technology
1 answer:
JulsSmile [24]3 years ago
4 0

Answer: here

Explanation:

Hi James- you weigh 82.5 kilos. Please enter your name and weight. Connor 78 Not enough info to convert. Please enter your name and weight. Connor 78 kilos Hi Connor-you weigh 171.9 pounds. Please enter your name and weight.

You might be interested in
Which futures would work well for text entered into cells check all that apply
Vikki [24]

Answer:

this is no image for me to see to to do

Explanation:

7 0
4 years ago
Def build_dictionary(string):
MissTica

Answer:

Follows are the code to this question:

def build_word_counter(string):#defining a method build_word_counter that accepts string as a parameter  

   d = dict()#defining d variable as a dictionary

   for x in string:#defining for loop that use string

       x = x.lower()#Use lower method  

       if not d.get(x):#defining if block that holds value in d variable

           d[x] = 1#use dictionary to hold value in 1

       else:#defining else block

           d[x] += 1#use dictionary to increment value by 1

   return d#return dictionary

print(build_word_counter(["Like","like","LIKE"]))#use print method to call method

def build_letter_distribution(string):#defining a method build_letter_distribution that accepts string variable

   d = dict()#defining d variable as a dictionary

   for i in string:#defining for loop to count string value

       for j in i:#defining for loop to hold string as number

           if not d.get(j):#defining if block that doesn't get value in dictionary  

               d[j] = 1#hold value in dictionary  

           else:#defining else block

               d[j] += 1#use dictionary to increment the dictionary value

   return d#return dictionary

print(build_letter_distribution(["Like","test","abcdEFG"]))#use print method to return its value

Output:

please find the attached file.

Explanation:

In the first program a method, "build_word_counter" is defined that accepts a string variable in its parameter, and inside the method, a dictionary variable "d" is defined that uses the for loop to hold string value and convert all value into lower case.

In the next step, a conditional statement is used that holds value in the dictionary and count its word value.

In the second program a method, "build_letter_distribution" is defined that holds string variable in its parameter, and inside the method, a dictionary variable "d" is defined that uses the two for loop and in if the block, it holds value in the dictionary and returns its value, and use print method to print its return its value.

4 0
3 years ago
In Microsoft Word, when you highlight existing text you want to replace, you are in
ddd [48]
I believe formatting toolbar.
The answer would be B. Basic mode.
6 0
4 years ago
______ is the software that blocks a user from being able to access your computer.
gavmur [86]
This would be your firewall

3 0
4 years ago
Read 2 more answers
You are a software developer and you are creating a multimedia streaming application. data will be streamed from your streaming
RSB [31]
I believe the answer is UDP (User Datagram Protocol) because it creates the packets that are sent are unacknowledged so latency is decreased.
8 0
3 years ago
Other questions:
  • What safety precaution should you take while filling the fuel tank of a gasoline-powered boat?
    8·1 answer
  • Match the fallacy with its name. Being a speaker of Spanish, I'm also great at speaking Italian.
    10·1 answer
  • Which of the following code segments does not contain any errors?
    7·1 answer
  • Consider the markets for monitors, USB drives, central processing units, and Microsoft’s Windows. Assume monitor manufacturers u
    7·1 answer
  • A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To ac
    5·2 answers
  • What are the most positive and the most negative decimal numbers that can be represented by a 2C (n+k) bit fixed-point number, w
    12·1 answer
  • What is the benefit of making an archive folder visible in the Outlook folder list?
    6·1 answer
  • What are the characteristics of a good text-based adventure game? In other words, what are some features that should be in the g
    7·1 answer
  • Oliver is working for a team that uses object-oriented concepts to design software. Which language would they use to develop thi
    10·1 answer
  • Firestick optimizing system storage and applications
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!