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
aliina [53]
3 years ago
13

Given a floating point variable fraction, write a statement that displays the value of fraction on the screen. Do not display an

ything else on the screen-- just the value of fraction.
Computers and Technology
1 answer:
emmainna [20.7K]3 years ago
4 0

Answer:

Program:

The below program in c-language

int main()// main function

{

   float a,b; //variable declaration //1

 a=4.89,b=6.9;// assign the value//2

 printf("%f",b/a);// statement to display the fraction value.//3

    return 0;// return statement.

}

Output:

1.411043

Explanation:

The fraction value is a value that comes when a number is divided with another number. The description of the statement which used in the above program is as follows--

  1. Defined a"main" function that needs to starts the execution.
  2. Declare a two-variable "a" and "b" of type "float" and assign the value on its.
  3. This statement is used to display the fraction of value on the screen in which the "print()" function is used to display the value and "%f" is used to display the float type value and "b/a" is used to calculate the fraction.

You might be interested in
Properties of variable in QBASIC​
Arlecino [84]

Explanation:

assume numeric value and is represented by an alphabet or an alphabet followed by another alphabet or digit. ...

String variable : A string variable is represented by an alphabet followed by dollar ()sign.

4 0
3 years ago
What is one advantage of a wireless network? Wireless networks provide faster data transfer speeds than wired networks. Wireless
tiny-mole [99]
People can access the internet from many locations within the wireless area
6 0
3 years ago
Read 2 more answers
In evaluating the precedence rules used by Python, what statement is accurate? a. Addition and subtraction are evaluated after a
tatyana61 [14]

Answer:

c. Exponentiation has the highest precedence.

Explanation:

Operator precedence decides how an expression is evaluated. For example, Multiplication has higher precedence than addition, therefore a+b*c will be evaluated as a + (b*c). (expression in bold is evaluated first, then added to a)

Option a is wrong since assignment ( = ) has the lowest precedence, therefore addition and subtraction will be evaluated first.

Option b is wrong since exponentiation is right associative.

Option d is wrong because multiplication can never be unary.

Precedence of basic python operators is listed below (Order Highest to lowest):

1) Exponentiation (**)

2) Multiplication (*) , Division (/), Modulus (%). (Same rank means equal precedence)

3) Addition (+), Subtraction(-)

4 0
4 years ago
Read 2 more answers
Which feature is an interface between the user and the file system of a computer?
denis23 [38]
That would be the GUI or <span>graphical user interface. Hope this helps and have a nice day!

</span>
8 0
3 years ago
Read 2 more answers
Write a recursive program that calculates the total tuition paid over certain number of years. The tuition goes up by 2.5% per y
Lisa [10]

Answer:

The program is as follows:

def calctuit(pay,n,yrs):

   if n == 0:

       return

   pay*=(1.025)

   print("Year ",yrs,": ",pay)

   calctuit(pay,n-1,yrs+1)

n = int(input("Years: "))

pay = float(input("Tuition: "))

yrs = 1

calctuit(pay,n,yrs)

Explanation:

The function begins here

def calctuit(pay,n,yrs):

This represents the base case

<em>    if n == 0:</em>

<em>        return</em>

This calculates the tuition for each year

   pay*=(1.025)

This prints the tuition

   print("Year ",yrs,": ",pay)

This calls the function again (i.e. recursively)

   calctuit(pay,n-1,yrs+1)

The function ends here

This gets the number of years

n = int(input("Years: "))

This gets the tuition

pay = float(input("Tuition: "))

This initializes the years to 1

yrs = 1

This calls the function

calctuit(pay,n,yrs)

8 0
3 years ago
Other questions:
  • According to the partnership for 21st-century learning critical thinking ability includes all the following skills except
    15·1 answer
  • When creating an electronic slide presentation, Eliza should ensure that her presentation contains
    6·1 answer
  • Peter works on a huge database of numerical figures in a worksheet ranging from cell A1 to cell I50. He has to print the workshe
    15·2 answers
  • Convert 192.16.3.1 to a Binary number
    14·1 answer
  • Which type of computer graphic can be resized without affecting image quality or getting distorted?
    9·1 answer
  • Suppose that a is a one-dimensional array of ints with a length of at least 2. Which of the following code fragments successfull
    8·1 answer
  • Tiền tệ ra đời là kết quả
    7·2 answers
  • In testing you find that one of the tables in your database has multiple versions of one of the columns, and updating the inform
    6·1 answer
  • A(n) ___________________________ is a pl/sql block that executes in place of a dml action on a database view.
    13·1 answer
  • Which of the following is the safest authentication method?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!