7. Write a program that consists of the following algorithm: num1 =4, num2= 4* 5-11, sale = 0.02 * 1000, first ='D', str = "It is a sunny day". .Your program has to display the results for num1, num2, sale, first and string. 8. What is the output of the following? a) cout « 29/4 << endl; b) cout << "4 + 7 ="« 4 +7 << endl; c) cout << 2 +3 * 5<< endl; d) cout << "Hello \n there." << endl;

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

need all questions answered please from both screenshots

Document1 - Microsoft Word
File
Home
Insert
Page Layout
References
Mailings
Review
View
% Cut
A Find -
Calibri (Body)
11
- A A
Aa
Aal
三、三,、章 刻
AaBbCcDd AaBbCcDd AaBbC AaBbCc AaB AaBbCci AaBbCcDd AaBbCcDd AaBbCcDa AaBbCcDc AaBbCcDd
a Copy
ae Replace
Paste
в I
U - abe x,
I Normal
I No Spacing Heading 1
Heading 2
Title
Subtitle
Subtle Emp.
Emphasis
Change
V Format Painter
Intense Em...
Strong
Quote
A Select -
Styles -
Clipboard
Paragraph
Styles
Editing
Font
Document Recovery
Word has recovered the following files. Save the
ones you wish to keep.
Available files
W GEOE 112 Assignment 3 _1_ (2) ...
Version created last time the user...
7. Write a program that consists of the following algorithm: num1 =4, num2= 4* 5-11, sale = 0.02 *
1000, first ='D', str = "It is a sunny day". .Your program has to display the results for num1, num2, sale,
11:58 PM Thursday, April 29, 2021
first and string.
8. What is the output of the following?
a) cout << 29/4 << endl;
b) cout << "4 +7 = " << 4 +7 << endl;
c) cout << 2 + 3 * 5 << endl;
d) cout << "Hello \n there." << endl;
? Which file do I want to save?
Close
Page: 1 of 1
Words: 89
100%
11:31 AM
O Type here to search
W
5/4/2021
> « O » +
Transcribed Image Text:Document1 - Microsoft Word File Home Insert Page Layout References Mailings Review View % Cut A Find - Calibri (Body) 11 - A A Aa Aal 三、三,、章 刻 AaBbCcDd AaBbCcDd AaBbC AaBbCc AaB AaBbCci AaBbCcDd AaBbCcDd AaBbCcDa AaBbCcDc AaBbCcDd a Copy ae Replace Paste в I U - abe x, I Normal I No Spacing Heading 1 Heading 2 Title Subtitle Subtle Emp. Emphasis Change V Format Painter Intense Em... Strong Quote A Select - Styles - Clipboard Paragraph Styles Editing Font Document Recovery Word has recovered the following files. Save the ones you wish to keep. Available files W GEOE 112 Assignment 3 _1_ (2) ... Version created last time the user... 7. Write a program that consists of the following algorithm: num1 =4, num2= 4* 5-11, sale = 0.02 * 1000, first ='D', str = "It is a sunny day". .Your program has to display the results for num1, num2, sale, 11:58 PM Thursday, April 29, 2021 first and string. 8. What is the output of the following? a) cout << 29/4 << endl; b) cout << "4 +7 = " << 4 +7 << endl; c) cout << 2 + 3 * 5 << endl; d) cout << "Hello \n there." << endl; ? Which file do I want to save? Close Page: 1 of 1 Words: 89 100% 11:31 AM O Type here to search W 5/4/2021 > « O » +
Document1 - Microsoft Word
File
Home
Insert
Page Layout
References
Mailings
Review
View
% Cut
A Find -
Calibri (Body)
- A A
Aal
三、三,、章 刻
11
Aa
AaBbCcDd AaBbCcDd AaBbC AaBbCc AaB AaBbCci AaBbCcDd AaBbCcDd AaBbCcDa AaBbCcDc AaBbCcDd
a Copy
ae Replace
Paste
в I
U - abe x,
I Normal
I No Spacing Heading 1
Heading 2
Title
Subtitle
Subtle Emp.
Emphasis
Intense Em...
Strong
Quote
Change
A Select -
V Format Painter
Styles -
Clipboard
Paragraph
Styles
Editing
Font
Document Recovery
Word has recovered the following files. Save the
ones you wish to keep.
4. Write a program that prompts the user to input their names and age and then displays your name and
age.
Available files
5. Solve the following and show all work
W GEOE 112 Assignment 3 _1_ (2) ...
Version created last time the user...
11:58 PM Thursday, April 29, 2021
i) 34 % 5
ii) 14 + 5 % 2 - 3
iii) 4 % 6
4. Determine the position of the character i and I and the length of the string
"C++ is a wonderful subject."
? Which file do I want to save?
Close
Page: 1 of 1
Words: 65
100%
11:28 AM
O Type here to search
W
5/4/2021
> « o » +
Transcribed Image Text:Document1 - Microsoft Word File Home Insert Page Layout References Mailings Review View % Cut A Find - Calibri (Body) - A A Aal 三、三,、章 刻 11 Aa AaBbCcDd AaBbCcDd AaBbC AaBbCc AaB AaBbCci AaBbCcDd AaBbCcDd AaBbCcDa AaBbCcDc AaBbCcDd a Copy ae Replace Paste в I U - abe x, I Normal I No Spacing Heading 1 Heading 2 Title Subtitle Subtle Emp. Emphasis Intense Em... Strong Quote Change A Select - V Format Painter Styles - Clipboard Paragraph Styles Editing Font Document Recovery Word has recovered the following files. Save the ones you wish to keep. 4. Write a program that prompts the user to input their names and age and then displays your name and age. Available files 5. Solve the following and show all work W GEOE 112 Assignment 3 _1_ (2) ... Version created last time the user... 11:58 PM Thursday, April 29, 2021 i) 34 % 5 ii) 14 + 5 % 2 - 3 iii) 4 % 6 4. Determine the position of the character i and I and the length of the string "C++ is a wonderful subject." ? Which file do I want to save? Close Page: 1 of 1 Words: 65 100% 11:28 AM O Type here to search W 5/4/2021 > « o » +
Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Hyperlinks
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education