Given that an integer variable i and a floating-point variable f have already been declared and given values: Write a statement in C that displays the values of i and f to standard output in the following format: i=value-of-i f=value-of-f

Two Examples:
Example 1: if the values of i and f were 25 and 12.34 respectively, the output would be: i=25 f=12.34
Example 2: if the values of i and f's value were 703 and 3.14159, (respectively) the output would be: i=703 f=3.14159

Answers

Answer 1

Answer:

Follows are the given statement to this question:

printf("i=%d f=%f", i, f);//print value

Explanation:

The full code to the given question:

code:

#include <stdio.h>//defining header file

int main()// main method

{

   int i;//declaring integer variable

   float f;//declaring float variable

   i=25; //assign integer value

   f=12.34;//assign float value

   printf("i=%d f=%f", i, f);//print value

   i=703;//assign integer value

   f=3.14159;//assign float value

   printf("\n");//for line break

   printf("i=%d f=%f", i, f);//print value

   return 0;

}

Output:

i=25 f=12.340000

i=703 f=3.141590

In the above-given code, the two variable "i and f" is declared, that holds integer and floating-point value in its respective variable and use the print method, to print "i and f" variables value.  


Related Questions

public class Billing {
final static double TAX = 0.08;
public static void main(String[] args) {
final double HIGHPRICE - 24.99;
final double MEDPRICE - 17.50;
final double LOPRICE = 10.00;
final int QUAN1 4;
final int QUAN2 6;
double bill;
bill = computeBill(HIGHPRICE);
System.out.println("The total for a photobook that costs $" +
HIGHPRICE + is 5" + bill);
bill - computeBill(MEDPRICE, QUAND);
System.out.println("The total for + QUAN1 +
photobooks that cost $"
MEDPRICE + is $" + bill);
bill - computeBill (LOPRICE, QUANZ, 20.00);
System.out.println("The total for + QUANZ
photobooks that cost $"
LOPRICE with a $20 coupon is $" + bill);
}
public static double computeBill(double amt) {
1/ Write your code here
}
public static double computeBill(double amt, int quantity) {
// Write your code here
}
public static double computeBill(double amt, int quantity, double coupon) {
// Write your code here
}
}

Answers

Answer:

C

Explanation:

10) If a citizen wants to learn more about a candidate's background, position on issues, and recent activities, what action will allow the citizen to access the MOST information? A) visiting the candidate's Internet website B) watching the candidate's television advertisment C) listening to what friends say about the candidate D) reading a newspaper article that mentions the candidate

Answers

Answer:

A.) Visiting a candidate's internet website

Explanation:

A.) is correct because this place is entirely dedicated to promoting the candidate. It is in this person's best interest to give as many beneficial facts about themselves here so that their reputation rises. However, because this site is managed by the candidate, it may omit some unflattering information about them.

B.) is incorrect because television advertisements do not have the time to share a lot about a candidate. In many cases, most of this time is spent bashing other candidates. In addition, the information in commercials is usually more sensationalized to quickly grab the audiences' attention.

C.) is incorrect because friends are not the direct source of the information. They received this knowledge from somewhere else that may not be reliable. They may also forget or accidentally change some of the information. Furthermore, they are most likely unaware of the candidate's entire background and political stances.

D.) is incorrect because a mention in the newspaper means that the candidate is only discussed a small amount. Newspapers only have a certain amount of space as well, so they usually do not devote a lot of space to one person.

In computer science what major jobs is appropriate for someone who majors in information systems

Answers

Answer:

manager

Explanation:

For this assignment, you will create a file, write information to the file, retrieve information from that file, and do calculations of the information from the file.

Make sure to comment code and use functions to break the problem up into manageable pieces.

Assignments
1. Open a Numbers.txt file. Write the numbers from 0 to 100 to the file.
2. Read the file Numbers.txt and find the sum, average, and median of all the numbers.
3. Output the results to the screen in a user-friendly format.
4. Make sure to ask the user for all the paths.

**C++ ONLY**

Answers

Answer:

Why only c bro

Write a Python program that translates a binary number of n bits to a decimal number. Your program should first ask the user the length of the binary number (how many bits). Using that information, ask the user to provide each bit from lowest to highest. Once the user has entered all the bit values for the binary number, report back the decimal value. Hint: You should use the mechanism to convert binary to decimal in earlier lectures. Note: Your program should not use any functions or methods from any library.

Answers

Answer:

Follows are the code to this question:

n= int(input("please enter number of bits, which want to convert for binary to decimal numbers: "))

p= 1#defining variable p for calculate power

d= 0#defining variable d for calculate decimal value

for i in range(n):#defining for loop for input bits value

   b= int(input("Enter the bit value from lowest to highest: "))#input value in b

   if b==1:#defining if block that check input is 1 value

       d=d+p#calculating decimal value

   p=p* 2#calculating power

print("The converted decimal number is:",d)#print value

Output:

please find the attached file.

Explanation:

In the above-given code, n variable is defined, which takes the number of bits value which you want to convert into a decimal value.

In the next step, "d and p" variable is defined that calculates the power and decimal number and store its value respectively, in this step, a for loop is used that uses the "b" variable for inputs bits value into lowest to the highest form, and use the if block.

In this block, it checks if the input value is one then it calculates its power and store its value into the "d" variable and use the print method to print its value.  

The function localtime()

always return the same value

might return a different value but might return the same value as the last time you used it

returns a different value everytime you use it

Answers

Answer:

Imma assume python as your last question was python as well.

The answer is C

Explanation:

This is because when used against an epoch, it gives you the amount of time that has passed since the epoch.

A manufacturer that uses the intermittent process to produce special customer orders is called a: modular shop central shop job shop localized processor centralized processor

Answers

A manufacturer that uses the intermittent process to produce special customer orders is called job shop.

What is job shop?

A job shop is known too be a  type of manufacturing process. It is said to be one where little batches of different kinds of custom products are made.

Note that In the job shop process flow, a lot of the products made needs a specific set-up and sequencing of process methods. Therefore, A manufacturer that uses the intermittent process to produce special customer orders is called job shop.

Learn more about  job shop from

https://brainly.com/question/24516871

Select the correct answer.
Dr. Samuel is holding a discussion on the relevance and requirement of Intellectual Property rights. Which point will he emphasize while
explaining the influence of IPR on Individual creations?
OA. IPR increases the number of copyright infringement lawsults.
OB. IPR promotes growth in the fields of art and science.
OC.
IPR increases the number of works that get published.
OD. IPR promotes competition between nations in the number of inventions created.
O E.
IPR describe regulations for different entities that are eligible for copyright
Reset
Next
entum. All rights reserved,

Answers

The right point to emphasize while explaining the influence of IPR on Individual creations is that IPR describe regulations for different entities that are eligible for copyright.

What are the intellectual property rights?

The Intellectual property rights are known to be the rights that are given to people over the development of their minds.

Note that these rights are often give to the creator as a kind of exclusive right over the use of his or her product or services for a specific amount of time.

Learn more about Intellectual Property rights from

https://brainly.com/question/1083623

Answer:

IPR promotes growth in the fields of art and science

Explanation:

Compare the memory efficiency of four different styles of instruction sets. The architecture styles are the following:

Accumulator: All operations use the accumulator register. Operands come from the accumulator and/or memory and the result of most operations is stored in the accumulator.
Memory-memory: All three operands of each instruction are in memory.
Stack: All operations occur on top of the stack. Only push and pop access memory, and all other instructions remove their operands from the stack and replace them with the result. The implementation uses a stack for the top two entries; accesses that use other stack positions are memory references.
Load-store: All operations occur in registers, and register-to-register instructions have three operands per instruction.

Answers

Compare the memory efficiency of four different styles of instruction sets. The architecture styles are the following:

Accumulator: All operations use the accumulator register. Operands come from the accumulator and/or memory and the result of most operations is stored in the accumulator.

Memory-memory: All three operands of each instruction are in memory.

Stack: All operations occur on top of the stack. Only push and pop access memory, and all other instructions remove their operands from the stack and replace them with the result. The implementation uses a stack for the top two entries; accesses that use other stack positions are memory references.

Load-store: All operations occur in registers, and register-to-register instructions have three operands per instruction.Compare the memory efficiency of four different styles of instruction sets. The architecture styles are the following:

Accumulator: All operations use the accumulator register. Operands come from the accumulator and/or memory and the result of most operations is stored in the accumulator.

Memory-memory: All three operands of each instruction are in memory.

Stack: All operations occur on top of the stack. Only push and pop access memory, and all other instructions remove their operands from the stack and replace them with the result. The implementation uses a stack for the top two entries; accesses that use other stack positions are memory references.

Load-store: All operations occur in registers, and register-to-register instructions have three operands per instruction.Compare the memory efficiency of four different styles of instruction sets. The architecture styles are the following:

Accumulator: All operations use the accumulator register. Operands come from the accumulator and/or memory and the result of most operations is stored in the accumulator.

Memory-memory: All three operands of each instruction are in memory.

Stack: All operations occur on top of the stack. Only push and pop access memory, and all other instructions remove their operands from the stack and replace them with the result. The implementation uses a stack for the top two entries; accesses that use other stack positions are memory references.

Load-store: All operations occur in registers, and register-to-register instructions have three operands per instruction.

please mark me as brainliest.............

follow me.............

.

what are the five generations of computer software​

Answers

Answer:

1st gen: Vacuum Tubes(1940–1956)

2nd gen: Transistors(1956–1963)

3rd gen: Integrated Circuits: (1964–1971)

4th gen: Microprocessors (1971–PRESENT)

5th gen: Artificial Intelligence (present)

Explanation:

..................... is a group of related information stored in the computer​

Answers

Answer:

Yes, that's true, but only if you save the information somewhere. It should be stored in a folder for best recognition. In terms of databases, you want to create a table, give it a creative name, and then store your info in columns.

Hope this helps!If it does, give thanks!

_______________________ is a useful CI tool that allows users to simultaneously compare the web traffic of multiple domain names over time. The tool provides graphs showing the number of unique visitors over time, monthly metrics for each domain name (such as number of referring sites), and top search terms for each of the domain names entered.

Answers

Compete. com  is a useful CI tool that allows users to simultaneously compare the web traffic of multiple domain names over time.

What is Web traffic?

The term Website traffic connote when a web users is said to  visit a website. Web traffic is said to be calculated by the times in visits, known as "sessions," .

Note that the tool or computer index Compete.com  is said to be a useful CI tool that allows users to simultaneously compare the web traffic of multiple domain names over time.

The options are:

Compete.com

Goo gle Trends

Hoot Suite

You Tube Analytics

Learn more about tools from

https://brainly.com/question/24625436

The CPU is basically the same as a disk drive?

Answers

Answer:

No, other than working independently, they are not the same.

Explanation:

A computer's CPU is the fastest part of the system. Its job is to process data and is usually left waiting on the rest of the computer to feed it information to work with. Hard drives are one of the sources that the processor gets data from, but both parts work independently.

Which of the following is used to store data in the computer's memory that can be
used by a program later when executing instructions? Hint: They are link storage
containers
Variables
Operators
Expressions
Boolean

Answers

The  storage that is used to store data in the computer's memory that can be used by a program later when executing instructions is variables.

What is variables?

Variables can be defined as the way or process in which data or information are store in a computer memory.

Data or information that may likely change or be altered are often stores in a computer memory storage called variables and this store data can be retrieve later for use by a program when executing instruction on the computer  system.

Inconclusion the  storage that is used to store data in the computer's memory that can be used by a program later when executing instructions is variables.

Learn more about variables here:https://brainly.com/question/23931018

do anyone know to do number 4i have no idea

Answers

Answer:

↓ 4 ↓

while true:

print(range(500, 1000))

if true:

print(range(500, 1000))

I hope this helps!

A(n) _____ is the conceptual organization of an entire database as viewed by a database administrator.

Answers

Answer: Schema

Explanation:

i did cs

3. How can you correct the color of your photos automatically?​

Answers

Answer:

use the lightroom

download the app haha

You can usually programs such as “Lightroom”

Not guaranteed, but it might work

Select the correct answer.
Which is a major fashion design concept?
A.
Colors
B.
Patterns
C.
Both A and B
D.
None of the above

Answers

Answer:

C.

Explanation:

the colors and patterns, C

Match each item with a statement below.â

a. âAn address type used in IPv6 to allow a one-to-many relationship between source and destination.
b. âThe bounds of a network that defines which devices must receive a packet thatâs broadcast by any other device.
c. âA method of IP addressing in which the network and host IDs are determined by a prefix number that specifies how many bits of the IP address are network bits.
d. âAnd auto configure IPv6 host address that uses the MAC address of the host plus an additional 16 bits.
e. âAn automatic tunneling protocol used to transmit IPv6 packets between dual IP layer hosts across an IPv4 network.
f. âA value used to express how many bits of an IP address are network ID bits.
g. âAn address that always refers to the local computer.
h. âA value assigned to the gateway based on the speed of the interface used to access the gateway.
i. âA network communication in which a packet is addressed so that more than one destination can receive it
j. âAn automatic IPv6-over-IPv4 tunneling protocol that solves the problem of 6to4's requirement of a public IPv4 address and the inability to traverse NAT routers

a. âanycast addresses
b. âbroadcast domain
c. âCIDR
d. âEUI-64
e. âISATAP f. âIP prefix
g. âloopback address
h. âmetric
i. âmulticasting
j. Teredo

Answers

Answer:

a. Anycast Addresses

b. Broadcast domain

c. Classless Interdomain Routing (CIDR)

d. Extended Unique Identifier (EUI-64) interface ID

e. Intra-Site Automatic Tunnel Addressing Protocol (ISATAP)

f. IP prefix

g. Loopback Address

h. Metric

i. Multicasting

j. Teredo

Explanation:

a. Anycast Addresses: An address type used in IPv6 to allow a one-to-many relationship between source and destination.

b. Broadcast domain: The bounds of a network that defines which devices must receive a packet that's broadcast by any other device.

c. Classless Interdomain Routing (CIDR): A method of IP addressing in which the network and host IDs are determined by a prefix number that specifies how many bits of the IP address are network bits.

d. Extended Unique Identifier (EUI-64) interface ID: An auto configure IPv6 host address that uses the MAC address of the host plus an additional 16 bits.

e. Intra-Site Automatic Tunnel Addressing Protocol (ISATAP): An automatic tunneling protocol used to transmit IPv6 packets between dual IP layer hosts across an IPv4 network.

f. IP prefix: A value used to express how many bits of an IP address are network ID bits.

g. Loopback Address: An address that always refers to the local computer. The loop address is primarily 127.0.01.

h. Metric: A value assigned to the gateway based on the speed of the interface used to access the gateway.

i. Multicasting: A network communication in which a packet is addressed so that more than one destination can receive it

j. Teredo: An automatic IPv6-over-IPv4 tunneling protocol that solves the problem of 6to4's requirement of a public IPv4 address and the inability to traverse NAT routers.

Which step do you think is most useful from big data life cycle.why?

Answers

Explanation:

Business xase evaluation is most useful because (BCA) provides a best-value analysis that considers not only cost but other quantifiable and non-quantifiable factors supporting an investment decision. This can include but is not limited to, performance, producibility, reliability, maintainability, and supportability enhancements.

Mark me brainliest

Chip stays up late every night surfing the Web, but tells himself that he hardly ever does this.

Which computer addiction symptom is Chip experiencing?


Lack of control


Downplaying


Neglect


Uncomfortable feelings

Answers

Answer:

2

Explanation:

hes downplaying the fact the he stays up every single night by saying he hardly ever does it

Chip is experiencing the computer addiction symptom of "Downplaying."

How can this be explained?

Despite staying up late every night surfing the Web, he tells himself that he hardly ever does this. This behavior involves minimizing the extent of his computer usage, which is a common characteristic of downplaying in cases of addiction.

It's important to recognize such signs to address and manage potential addiction issues.

Read more about computer addiction here:

https://brainly.com/question/28724010

#SPJ2

In a formula, why is it preferred to use a reference cell instead of a static number in excel?

Answers

Answer:

they allow you to update data in your worksheet without having to rewrite formulas

Explanation:

Modifying values with cell references. Cell references are that they allow you to update data in your worksheet without having to rewrite formulas. The cell address or the range referred to during the calculation while constant has a fixed value.

Hope it helps!!!Brainliest pls!!!

Discuss the different categories of computer hardware​

Answers

Answer:

Input devices: For raw data input.

Processing devices: To process raw data instructions into information.

Output devices: To disseminate data and information.

Storage devices: For data and information retention.

Computers are like you dad hard to find and access

List and describe the three types of cloud models described by Microsoft.

Answers

There are three main service models of cloud computing – Infrastructure as a Service (IaaS), Platform as a Service (PaaS) and Software as a Service (SaaS). There are clear differences between the three and what they can offer a business in terms of storage and resource pooling, but they can also interact with each other to form one comprehensive model of cloud computing.

aaS (Infrastructure as Service)

This is the most common service model of cloud computing as it offers the fundamental infrastructure of virtual servers, network, operating systems and data storage drives. It allows for the flexibility, reliability and scalability that many businesses seek with the cloud, and removes the need for hardware in the office. This makes it ideal for small and medium sized organisations looking for a cost-effective IT solution to support business growth. IaaS is a fully outsourced pay-for-use service and is available as a public, private or hybrid infrastructure.

PaaS (Platform-as-a-Service)

This is where cloud computing providers deploy the infrastructure and software framework, but businesses can develop and run their own applications. Web applications can be created quickly and easily via PaaS, and the service is flexible and robust enough to support them. PaaS solutions are scalable and ideal for business environments where multiple developers are working on a single project. It is also handy for situations where an existing data source (such as CRM tool) needs to be leveraged.

SaaS (Software as a Service)

This cloud computing solution involves the deployment of software over the internet to variousbusinesses who pay via subscription or a pay-per-use model. It is a valuable tool for CRM and for applications that need a lot of web or mobile access – such as mobile sales management software. SaaS is managed from a central location so businesses don’t have to worry about maintaining it themselves, and is ideal for short-term projects.

The three types of cloud models described by Microsoft are:

Infrastructure as a Service (IaaS), Platform as a Service (PaaS) Software as a Service (SaaS)

The Infrastructure as a Service (IaaS) is used to give the structural framework the model of functioning with the virtual servers, OS, data storage, etc. This the most basic level that is used in cloud computing.

The Platform as a Service (PaaS) is where these structural frameworks are put to use by developing other software that organizations can make use of.

The Software as a Service (SaaS) is finacly the cloud model where these softwares are given to businesses who pay a premium to use them.

Read more here:

https://brainly.com/question/14290655

Which of the following is a true statement?


New employees and/or clients are not concerned with the details of an email; they focus on the deal.


Business emails can convey a negative tone as long as it is supported by a valid reason and sufficient data.


Business emails should always be written using a professional tone.


It is acceptable if proper punctuation, spelling, and capitalization are not used all the time.

Answers

Answer:

4

Explanation:

it's unacceptable, proper punctuation, spelling and capitalization shud be used where possible

Assume we need to implement the following sequence of Instructions with
forwarding by using a 5 stages pipeline.
sub x12, x11, x13
and x8 x12, x15
or x9,x16.x12
For clock cycle 5, what are the control values of A and B (the two outputs of
"Forwarding unit") respectively?
(The control values for the forwarding multiplexors

are shown in the following table)
MUX Control Source
A/B - 00
ID/EX
W/B - 10
EX/MEM

Answers

Answer:

0 0 1 0

Explanation:

sub X12, X11, X13 and x8, X12, X15 or X9, x16, x12 For clock cycle 5, what are the control values of A and B.

Electrostatic Sensitive Devices Google Chrome
A Not secure http/209.60.132.173:8080/nidaile/SCE/portal/lessontrame 7.aspx
2. A requirement for workbench and tools which are used with ESDs is that
tools must be non-metallic and workbenches must be wood covered
tools and work surfaces must be plastic
tools, work surfaces, and floors must be grounded
only tools mulbe grounded

Answers

Answer:

um what

Explanation:

Wirte a program which asks the users to input length and calculates the area of a square.( Area = Length^2)​

Answers

Explanation:

i hope this will help you

Why is sequencing important?
a. It allows the programmer to test the code.
b. It allows the user to understand the code.
c. It ensures the program works correctly
d. It makes sure the code is easy to understand.

Answers

Answer:

BI think B

hope it's help

Explanation:

because it helps to understand code

Sequencing is important because it allows the user to understand the code. Sequences are exactly what their name implies.

Sequencing

Sequences are generally utilized throughout algorithms as well as computing, and they have been discussed in this article. This is indeed a transcribed version.

An algorithm is made up of instructions that are sequentially repeated. A sequencing of commands seems to be how directives during an algorithm have been executed.

Thus the response above i.e., "option b" is correct.

Find out more information about sequencing here:

https://brainly.com/question/19586990

Once goals and objectives are clearly defined, what should a successful company do next in its content strategy?

Answers

Answer:

An effective Content Marketing strategy must have four core elements to be successful: brand positioning, owned media value proposition, business case, and strategic plan. Let's see why these elements are essential for Content Marketing and how you can start implementing each of them.

Explanation:

mark me as brainlist..

Other Questions
Which of the data sets shown below has a mean that is less than 28? Select all that apply. A) 24, 31, 25, 29, 26, 21 B) 18, 33, 32, 16, 34, 29 C) 32, 31, 25, 28, 31, 27 D) 12, 41, 44, 13, 20 What is the Spanish word for "farm"?APetanol A student examines a map showing the flow of ocean currents throughout the world.(Picture)What would be the major consequence if global current circulation stops?The climates of the coastal equatorial regions would become colder and wetter, and the climates of the coastal polar regions would become warmer and dryer.The climates of the coastal equatorial regions would become hotter and drier, and the climates of the coastal polar regions would become colder and wetter.The climates of the coastal equatorial regions would become hotter and wetter, and the climates of the coastal polar regions would become colder and dryer.The climates of the coastal equatorial regions would become colder and drier, and the climates of the coastal polar regions would become warmer and wetter. 1. Sandy wanted to build a fencearound her garden. She measured thewidth to be seven and four-fifth feet,while the length measures 6 feet.Which of the following is themeasurement of the perimeter of hergarden? I WILL GIVE BRAINLIEST!! :DFill in the following table so that the sum of the numbers in first three cells is equal to 300, the sum of the three numbers in the middle is 200, and the sum of the last three is 100. What is the number that stands in the middle? Which table shows a proportional relationship between X and Y? A student wants to use a spinning basketball to model the day-and-night cycle on Earth. What should the student do in order to best model the cause of the day-and-night cycle Should you expect the answer to be a lot less than 88 slightly less than 88 slightly greater than 88 or a lot greater than 88? Find the equation to the line below!!! Help! Pip was thinking of a number. Pip doubles it and gets the answer of 50.8. What was the original number? Consolidated data means The author most likely uses the tone in the passage to reinforce the point that Which two countries competed for a trade route to Asia?a. China and Indiab. England and Francec .Spain and Portugal. Unit Prices of Clothing Items for a Sporting Goods Store Item Unit Price T-shirts $7.50 Shorts $9.00 Windbreakers $12.25 If she will buy 35 T-shirts, 45 pairs of shorts, and 25 windbreakers, what will be her total cost? $958.75 $973.75 $1,021.25 $1,038.75 pls asap completing square X^2 -24x+5=0 ANSWER QUICK!!!!!!!! Marlon is mixing blue paint and yellow paint in the ratio of 2:3 to make green paint. If he uses 8 liters of blue paint, how many liters of yellow paint will he need? Find all whole values for y for which the double inequality is true:a) 5b) 28 How does Black Hawk use rhetoric to advance his purpose in this excerpt? Picture below. 50 points!!! How much higher is 300 ft than -600 ft?