Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C + + program that prints the name of the university to the console. Then, add additional ` cout ` statements to print

Write a C++ program that prints the name of the university to the console. Then, add additional `cout` statements to print your name and today's date on separate lines.
Declare two integer variables, assign values to them, and print their sum, difference, product, and quotient. Also, create a string variable to hold your favorite color and print it.
Write a program that asks the user for their age and their favorite number. Store these values in variables and print a message that includes both pieces of information.
Create a program that asks the user to enter an integer. If the number is even, print "The number is even." If the number is odd, print "The number is odd."
Write a program that prints the numbers 1 to 10 using a `for` loop, and then counts down to 1 using a `while` loop.
Write a program that creates a text file and writes the numbers 1 to 10 on separate lines. Then, write another program that reads from this file and prints the numbers to the console.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions