SECTION A-TWO QUESTIONS COMPULSORY QUESTION 1 A. Define the following computer programming terms: Program, Programming, Pseudocode,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
SECTION A-TWO QUESTIONS COMPULSORY QUESTION 1 A. Define the following computer programming terms: Program, Programming, Pseudocode, Debugging, and an Algorithm. B. Write a C++ Program that will print the name of your top five (5), e programming languages on five (5) separate lines using favorite a single cout statement. C. Write the C++ line of code that computes and displays the: 1. Remainder of 7 divided by 3 2. Square root of 25 3. Result of raising 2 to the 4. Absolute value of -8 power r 3 5. ASCII Code for the character 'H' D. Write a c++ program that has the following character variables: first, middle, and last. Store your initials in these variables and then display them on the screen. Display the initials on a single line with a tab-space in between each initial. [20 MARKS] [5] [5] [5] [5] QUESTION 2 [20 MARKS] A. Declare the variables p, i, j, k on a single line using one data type, int and only the variable p should be a pointer variable. B. What is the output of the following program? [4] [3] SECTION A-TWO QUESTIONS COMPULSORY QUESTION 1 A. Define the following computer programming terms: Program, Programming, Pseudocode, Debugging, and an Algorithm. B. Write a C++ Program that will print the name of your top five (5), e programming languages on five (5) separate lines using favorite a single cout statement. C. Write the C++ line of code that computes and displays the: 1. Remainder of 7 divided by 3 2. Square root of 25 3. Result of raising 2 to the 4. Absolute value of -8 power r 3 5. ASCII Code for the character 'H' D. Write a c++ program that has the following character variables: first, middle, and last. Store your initials in these variables and then display them on the screen. Display the initials on a single line with a tab-space in between each initial. [20 MARKS] [5] [5] [5] [5] QUESTION 2 [20 MARKS] A. Declare the variables p, i, j, k on a single line using one data type, int and only the variable p should be a pointer variable. B. What is the output of the following program? [4] [3]
Expert Answer:
Answer rating: 100% (QA)
A Definitions Program A program is a set of instructions that tells a computer what to do to achieve a specific task or solve a problem It consists of ... View the full answer
Related Book For
Accounting Information Systems
ISBN: 9780132871938
11th Edition
Authors: George H. Bodnar, William S. Hopwood
Posted Date:
Students also viewed these programming questions
-
Consider the MPS table for an item shown below: 1 2 3 4 5 Forecast 50 50 45 45 45 Customer orders 48 52 40 40 30 Projected on-hand inventory MPS ATP The current inventory is 180 units. A safety stock...
-
The normal equation for the linear system 8 2 2 1 1 Xx 1 3 5 1 = 2 1 2 1 is ...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
How important it is to educate ourselves environmental issues impacting the future of tourism i.e., climate change The COVID-19 pandemic has changed the tourism industry forever and will impact our...
-
Determine the maximum tension developed in the cable if it is subjected to a uniform load w. Units Used: MN = 106 N Given: w = 600N/m a = 100 m b = 20 m = 10 deg B. b.
-
7.22 The cash flows below were extracted from the accounts of Martin Jones, a music shop owner for the year ended 30 June 2023. Repayment of loan Sale of property Interest received Payments to...
-
Consider the multiple regression model fit to the National Football League team performance data in Problem 3.1. Problem 3.1 Consider the National Football League data in Table B.1. a. Construct a...
-
You are asked to do a study of shelters for abused and battered women to determine the necessary capacity in your city to provide housing for most of these women. After recording data for a whole...
-
For each entry below make a correcting entry if necessary. If the entry given is correct, then state "No entry required". (Credit account titles are automatically indented when the amount is entered....
-
Flowmaster Forge Inc. is a designer and manufacturer of industrial air-handling equipment that is a wholly owned subsidiary of Howden Industrial Inc. Howden is interested in selling Flowmaster to an...
-
The management of a manufacturing company always has the alternative of manufacturing (make) a product or component or going to a supplier and purchasing (buy) that same product or part. What type of...
-
Identify the variable and what criteria will be used as the cutoff score for group assignment. Discuss whether it will be experimental or quasi-experimental research. Develop a hypothetical research...
-
Restaurant chains that attract diners with buxom servers in short shorts have become so popular the industry has a name for this category: breastaurants. The largest eatery of this kind is Hooters,...
-
Discuss the major threats to validity associated with this design and type of research (experimental). How will these threats be addressed in accordance based on the discussion of the control...
-
A company has an opening stock of 6,000 units of output. The production planned for the current period is 24,000 units and expected sales for the current period amount to 28,000 units. The selling...
-
Briefly discuss any limitations associated with this research scenario and the specific design. Develop a hypothetical research scenario that would necessitate the use of a 2 x 2 Factorial Design....
-
create a banking program with html and javascript must have javascript and html in the code must have javascript and html in the code Your supervisor has asked you to create a simple bank transaction...
-
Which of the following is NOT a magnetic dipole when viewed from far away? a) A permanent bar magnet. b) Several circular loops of wire closely stacked together with the same current running in each...
-
1. For several years, a clients physical inventory count has been lower than what was shown on the books at the time of the count, requiring downward adjustments to the inventory account....
-
The ABC Company has suffered from repeated attacks on its Web site. In the most recent attack, the server was suddenly bombarded by requests to view Web pages. The number of requests was so large...
-
Discuss the relative advantages and disadvantages of inverted files and list or ring structures (pointer- field structures) in answering inquiries of the following types. a. Are there any records...
-
A gene is a segment of DNA that contains the information to produce a functional product. The functional product of most genes is a. DNA. b. mRNA. c. a polypeptide. d. none of the above.
-
Which of the following is not a constituent of a cells proteome? a. An enzyme b. A cytoskeletal protein c. A transport protein in the plasma membrane d. An mRNA
-
The function of the genetic code is to a. promote transcription. b. specify the amino acids within a polypeptide. c. alter the sequence of DNA. d. do none of the above.
Study smarter with the SolutionInn App