Question: With Visual Studio or an IDE create the following programs. You will submit the *.CPP file. 1. Code a program to display the following output
With Visual Studio or an IDE create the following programs. You will submit the *.CPP file.
1. Code a program to display the following output using asingle cout statement.
Subject Marks Mathematics 90 Computer 77 Chemistry 69
2. code a program which accepts a character and display its ASCII value.
3. code a program to swap the values of two variables without using a third variable.
4. code a program to calculate area of circle. Must declare a constant and use it.
5. Research what is a ternary operator in C++ and create a program which input three numbers and display the largest number. You can't use if...else because we haven't learned it yet.
6. code a program which accepts days as integer and display total number of years, months and days in it. for example : If user input as 856 days the output should be 2 years 4 months 6 days.
7. In all code files, add comments to explain your logic.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
