Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ACTIONS First, your code should prompt the user (using input) for a number, then plug that number into the equation 12 +9-7 y= 2+ +

image text in transcribed

ACTIONS First, your code should prompt the user (using input) for a number, then plug that number into the equation 12 +9-7 y= 2+ + 5 and then print the value of y for the user. The output should be rounded to 3 decimal places. See example below. . Second, your code should prompt the user (using input) to enter a string and then output (using print) a single sentence on one line that tells the user what percentage (rounded to 1 decimal place) of the characters in the string consists of the characters e or 4. The output should be in the format "Percentage of e's and 4's in the string : %". See example below. Third, your code should prompt the user (using input) for a number of bits. It should then output (using print) a single expression showing the equivalent number of gigabytes, megabytes, and kilobytes (rounded down to the nearest kilobyte). All three numbers should be integers. See example Below EXAMPLE This is an example of what your code should do when it is run. Please note that the 0.681, Every multiple of 4 must be even, and 13009902468 are the inputs typed and entered by the person running the code. Please provide a value for x: 0.681 The value of y is: -0.594 Please enter a string: Every multiple of 4 must be even. The percentage is 18.2 % Please enter a number of bits: 13009902468 The number of bits given is equal to 1 gigabytes 626 megabytes 237 kilobytes

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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions

Question

10. Are you a. a leader? b. a follower? _______

Answered: 1 week ago

Question

What did they do? What did they say?

Answered: 1 week ago