0% found this document useful (0 votes)
2 views

C++ Task1

The document is a C++ programming worksheet that includes six coding tasks for students. Tasks involve printing text, reading user input, displaying ASCII values, and swapping variable values. Additionally, it requires calculating and printing compound interest based on given parameters.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

C++ Task1

The document is a C++ programming worksheet that includes six coding tasks for students. Tasks involve printing text, reading user input, displaying ASCII values, and swapping variable values. Additionally, it requires calculating and printing compound interest based on given parameters.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

C++ Programming Worksheet

Name: ________________________________ Grade & Section: _______________ Date:


_________________

I. Write a C++ code for each item below. 5 points each.

1. Write a simple program that prints the words "Hello World" on the console.
2. In this problem, you have to create a simple program that reads a number that is
entered by the user and prints it on the console screen.
3. In C++, each character has some ASCII value associated with it. In this problem, we
have to print the ASCII value of the character in the console.
4. You have to create a program that swaps the value of two number variables. It means
that the value of the first variable will be stored in the second variable and the value
of the second variable should be stored in the first variable.
5. You have to create a program that swaps the value of two number variables. It means
that the value of the first variable will be stored in the second variable and the value
of the second variable should be stored in the first variable.
6. In this problem, you have to write a program that calculates and prints the compound
interest for the given Principle, Rate of Interest, and Time.

You might also like