Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please slove in python 1. The temperature outputs (1) for the input parameter (x) are given in the table. The first ten values of the

please slove in python
image text in transcribed
image text in transcribed
image text in transcribed
1. The temperature outputs (1) for the input parameter (x) are given in the table. The first ten values of the test case contain x values. The next ten values of the testcase are the respective temperature value in Celsius. Input x) 2 4 6 8 10 12 14 16 18 20 Output (T) 10 0 10 20 30 40 50 60 70 80 ) Write a Python sub function for converting the Temperature from Celsius to Fahrenheit. The return value type will be the list of Integers, Fahrenheit - (1.8T) - 32 ) Write a Python sub function for finding the slope of the Temperature in Fahrenheit using least square method. The input arguments of this function arex and T, where Temperature is in Fahrenheit. The return slope value type of this function should be an integer Id Write a Python sub function for sorting the Temperature values in descending order using bubble sort method and return the list of sorted Temperature list in Fahrenheit. Use loop statement for implementing the bubble sort method. II. The 21 input is a word that contains the alphabets between a and g Ex: Face. Write a Python sub function for count the repetition (frequency) of alphabets and return a dictionary in the following format ('a':1, 6:0, 6:1, 0:0, 11, 1:1, 8:0). The input has no case sensitive, the alphabets a to are the keys of the dictionary and the corresponding values are their frequency. The value should be Oil the input word doesn't have that key Input: 2 4 8 10 12 14 16 18 20 -10 o 10 20 30 40 50 60 70 80 Face Output: [14, 32, 50, 68,86, 104, 122, 140, 158, 176] 9 [176, 158, 140, 122, 104,86,68,50,32,14] {'a': 1, 'b': 0, 'c': 1, 'd': 0, 'e': 1, 'f: 1,'g': 0} Note: The output format is, 1. List of Temperature in Fahrenheit 2. Slope 3. List of descending ordered Temperature in Fahrenheit 4. Dictionary of a to g alphabets and their respective frequency Rubrics: For four sub functions (a) 10 + (b) 15+ (c) 15+ (d) 10

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions

Question

How to solve maths problems with examples

Answered: 1 week ago