Ask C/C++ Expert


Home >> C/C++

Purpose:

This laboratory provides some experience working with the C++ programming language that has an SQL query and SQL update embedded in it.

Procedure:

Follow all the procedures in lab07Programmable_Access_to_Oracle_in_the_iLab_System.docx prior to performing the procedure below.

Be sure to load the C++ to ProQueryExample code presented in the Appendix A of lab07Programmable_Access_to_Oracle_in_the_iLab_System.docx.

1. Be sure to select a Visual C++ Project Type. Also select a Win32 Console Application Template
(step 6 in lab07Programmable_Access_to_Oracle_in_the_iLab_System.docx.)

Enter the name ProQuery for the project (step 7).

2. Once you have started your source code, be sure to add the include files and the library files as indicated in my Oracle Access in C++ in ECET-450 document.

This should have been done in lab07Programmable_Access_to_Oracle_in_the_iLab_System.docx

3. In the Solution Explorer, insert the source code from the ProQueryExample.cpp file into the ProQuery.cpp file to add the needed C++ code. You will want to use most of the classroom code as is. However, you need to modify the code so that you list the sales representative's last names, each of their customer's balances, and each of their customer's names in this order. Be sure to update the column headings. Update the spacing between columns if necessary.

This is also done in lab07Programmable_Access_to_Oracle_in_the_iLab_System.docx

4. In your ProQuery.cpp source file, modify the source code so that it changes the customer balance of Streaming Direct from $210.40 to $337.26. Rerun the query in step 3 above. Modify the source to return the balance of Streaming Direct to $210.40. Rerun the query in step 3 above. Print out a copy of your output.

5. Submit a cover sheet, a copy of your output, and the source code that you used to obtain it. Follow any additional instructions that your instructor may give you.

Step 4 and 5 are the real lab exercise part. Other steps before that are necessary to set up the lab and should have been done using lab07Programmable_Access_to_Oracle_in_the_iLab_System.docx
Part B:

Purpose:

This laboratory provides some experience working with the C++ programming language that has an SQL insert and an SQL delete embedded in it.

Procedure:

When you have completed Part A, most of the following should have been performed except the name of the project to be entered.

Be sure to have a copy of the C++ to ProInsertExample code presented in the Appendix B of lab07Programmable_Access_to_Oracle_in_the_iLab_System.docx..

1. Select a new project. Be sure to select a Visual C++ Project Type. Also select a Win32 Console Application Template. Create a folder on the F drive on the iLab server. Enter the name ProInsert for the project.

2. Once you have started your source code, be sure to add the include file and the library file as indicated in my Oracle Access in C++ in ECET-450 document.

3. In the Solution Explorer, insert the source code from the ProInsertExample.cpp file into the ProInsert.cpp file to add the needed C++ code. You will want to use most of the classroom code as is. However, you are to modify the code so that you display the contents of the Line table.

4. Display the contents of the Line table before doing the insertion. Modify the member function to insert a new row in the Line table. Add the following row: Invoice number: 42447, product ID: KW114, number ordered: 1, and price: $595.00. Be sure to update the column headings. Update the spacing between columns if necessary.

5. Modify the member function that deletes this new row inserted in step 3 above. Display the contents of the Line table again. Print out a copy of your output that displays the Line table before the insertion, of the Line table after the insertion, and the Line table after the deletion.

6. Submit a cover sheet, a copy of your output, and the source code that you used to obtain it. Follow any additional instructions that your instructor may give you.

C/C++, Programming

  • Category:- C/C++
  • Reference No.:- M91338528
  • Price:- $40

Guranteed 36 Hours Delivery, In Price:- $40

Have any Question?


Related Questions in C/C++

Question 1find the minimum and maximum of a list of numbers

Question: 1. Find the Minimum and Maximum of a List of Numbers: 10 points File: find_min_max.cpp Write a program that reads some number of integers from the user and finds the minimum and maximum numbers in this list. Th ...

Software development fundamentals assignment 1 -details amp

Software Development Fundamentals Assignment 1 - Details & Problems - In this assignment, you are required to answer the short questions, identify error in the code, give output of the code and develop three C# Console P ...

What are the legal requirements with which websites must

What are the legal requirements with which websites must comply in order to meet the needs of persons with disabilities? Why is maximizing accessibility important to everyone?

There are several ways to calculate the pulse width of a

There are several ways to calculate the pulse width of a digital input signal. One method is to directly read the input pin and another method (more efficient) is to use a timer and pin change interrupt. Function startTi ...

Assignment word matchingwhats a six-letter word that has an

Assignment: Word Matching What's a six-letter word that has an e as its first, third, and fifth letter? Can you find an anagram of pine grave. Or how about a word that starts and ends with ant (other than ant itself, of ...

1 implement the binary search tree bst in c using the node

1. Implement the Binary Search Tree (BST) in C++, using the Node class template provided below. Please read the provided helper methods in class BST, especially for deleteValue(), make sure you get a fully understanding ...

Assign ment - genetic algorithmin this assignment you will

ASSIGN MENT - GENETIC ALGORITHM In this assignment, you will use your C programming skills to build a simple Genetic Algorithm. DESCRIPTION OF THE PROGRAM - CORE REQUIREMENTS - REQ1: Command-line arguments The user of yo ...

Project - space race part a console Project - Space Race Part A: Console Implementation

Project - Space Race Part A: Console Implementation INTRODUCTION This assignment aims to give you a real problem-solving experience, similar to what you might encounter in the workplace. You have been hired to complete a ...

Why do researcher drop the ewaste and where does it end

Why do researcher drop the ewaste and where does it end up?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As