Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c++ 1. Write a program that indicates each of the following: a) Display the message Enter your name: b) Assign the product of variables

image text in transcribed in c++
image text in transcribed
1. Write a program that indicates each of the following: a) Display the message "Enter your name:" b) Assign the product of variables a, b, cand d to variable p. c) The following condition is to be tested in a conditional statement: if x is greater than y, then x is assigned the value 10, otherwise x is assigned the value 20. d) Obtain values for variables a, b, c and d from the keyboard. 14. Assume 1 - 5.3 - 7. k - 4 and m- -2. What does each of the following statements print a) printf("%d" 1 -- S): b) printf("%d" 31-3); c) printf("%d", 1 - 5 &&- k); g) printf("%d", jum. 1 && 10): h) printf("%d", () - m)); i) printf("a", Ick > m)); i) printf("d", 1G> What does the following program segment do? 15. int n - a - 1: int 1, C; for (i - 1; i

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 Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions