Question: QUESTION 1 . This is a compulsory question that contains short programming questions. You are only required to write code snippets and not complete programs.

QUESTION 1. This is a compulsory question that contains short programming questions.
You are only required to write code snippets and not complete programs.
Answer the following questions by writing code snippets using the C++ programming
language:
a) Using only one std::cout statement, write the required code to produce the following
output:
The overall length of an A320 aircraft is 123'3''.
The wingspan is 117'5''.
(2 marks)
b) Using a for loop, output the times table of the number 5. When executed, the for loop
should output the following:
15=5
25=10
305=50
(2 marks)
c) Using two for loops, output the following square made up of 1010 asterisks:
d) Write code that asks the user to enter his/her name, age, and town in variables name
of type string, age of type int and town of type string respectively and exactly in the
mentioned order.
 QUESTION 1. This is a compulsory question that contains short programming

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!