Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

TASK 1 ( 20 marks): Write a C++ program that demonstrates the following output: My name is Ahmad Saeed I am studying at HCT Dubai

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
TASK 1 ( 20 marks): Write a C++ program that demonstrates the following output: My name is Ahmad Saeed I am studying at HCT Dubai Men Campus My program is Bachelor in Computer Engineering \#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\# I am a Year 2 student +1++1+++++++1++++ For this semester, I register EGN 2712 course In your program use comments at the appropriate program lines to describe: This is one of the campuses in UAE This course is a general engineering course for Year 2 Answer (show your program and the output): TASK 2 (total 20 marks): The sizeof operator can be used to determine the number of bytes occupied in memory by a variable of a certain type. For example, sizeof(int) is equivalent to 4 bytes as shown by the example given below: CilUsers\msharizalNDocuments\HCT. Size of int: 4 bytes Process exited after 0.04597s press any key to continue. . Write a C++ program that displays the memory space utilized for each of data type described in your lecture. Answer (show your program and the output): TASK 3 (total 10 marks): Write a CH program to demonstrate a statement output of "Welcome to EGN 2712 Applied Programming Course" using the appropriate data type. Then, declare a bool data type to indicate "Codingisfun = true" within the same program. The output will indicate " 1 " in a separate statement after "Welcome to EGN 2712 Applied Programming Course". Answer (show your program and the output): Write a C++ program that two defines variables for floating-point numbers and initializes them with the values of: 193.897451 and 125.647712 One of the value must be declared globally. Then display the sum and the difference of these two numbers on screen. Answer (show your program and the output): IASK 5 (total 30 marks): AsCil (American Standard Code for information interchange) is the most common character encoding format for text data in computers and on the internet. In standard ASCl-encoded data, there are unique values for 128 alphabetic, numeric or special additional characters and control codes. ASCil encoding is based on character encoding used for telegraph data. The American National Standards Institute first published it as a standard for computing in 1963. Characters in ASCII encoding include upper- and lowercase letters A through z, numerals 0 through 9 and basic punctuation symbols. It also uses some non-printing control characters that were originally intended for use with teletype printing terminals. Each character is stored in the computer using its ASCli code, the following tables gives the ASCli code for the main characters. Study this table and answer the tasks below

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

Students also viewed these Databases questions

Question

Discuss the key people management challenges that Dorian faced.

Answered: 1 week ago

Question

How fast should bidder managers move into the target?

Answered: 1 week ago