What is the output of the following statements

Assignment Help C/C++ Programming
Reference no: EM13938724

1. What is the output of the following statements? Suppose a and b are int variables, c is a double variable, and a = 13, b = 5, and c = 17.5.

a. cout <<a + b - c << endl; = 0.5

b. cout << 15 / 2 + c << endl; = 25

c. cout << a / static_cast<double>(b) + 2 * c << endl; = 37

d. cout << 14 % 3 + 6.3 + b / a << endl; = 8.6846153

e. cout << static_cast<int>(c) % 5 + a - b << endl; = 11

f. cout << 13.5 / 2 + 4.0 * 3.5 + 18 << endl; = 33.75

Reference no: EM13938724

Questions Cloud

A city is planning to bid to host a sports event : A city is planning to bid to host a sports event. It believed the demand curve for the event in its city is P = 1,000 - Q and the marginal cost would be constant at $200. The sports organization that is soliciting bids from potential host cities requ..
Effect of reading up and writing down restrictions : What is the effect of reading up and writing down restrictions imposed by the Bell-LaPadula model? And what is the effect of reading down and writing up restrictions imposed by the Biba model?
How long would it take for her rbcs to look normal : Alice is a vegetarian with iron-deficiency anemia. What would her RBCs look like (small or large, pale or red) and why? Would the Hb/blood volume and the Hb/packed RBC numbers be high or low (explain)? If Alice starts getting enough iron, how long..
What professional and personal traits are necessary : What professional and personal traits are necessary for the position?
What is the output of the following statements : What is the output of the following statements? Suppose a and b are int variables, c is a double variable, and a = 13, b = 5, and c = 17.5.
Working for the bahrain design company : As a Design Engineer working for the Bahrain Design Company. You are assigned to follow the design stages, in order to develop a marketing idea into a product design proposal.
Where these isotonic contractions or isometric : Our patient, a 45-year old former tennis player, has been recommended for right knee-replacement surgery. Let's discuss the characteristics of the knee which makes this joint so susceptible to injury! Let's also add a focus on the specific muscles..
Required to write an analytic report : You are required to write an analytic report. This type of report is used to critically analyse information and is used for any problem solving reports.
Critical essay on need to balance rights-responsibilities : write a critical essay on the need to balance rights and responsibilities in the human rights discourse. Jim Ife (2010) states: Accepting a framework of rights cannot imply simply a selfish attitude on the part of the individual, claiming her/his ..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd