.So I have a project, I just want a general answer on how would you start it. I have to make the Backend read/write from the database. What does that mean and how you u do that general example, please. in php please
EX - would i just make a script that just connects to the database , or is it more to it
In: Computer Science
Database Application Development
Project/Assignment
Milestone 1 (part 1)
Objective:
In this assignment, you create a simple HR application using the C++ programming language and Oracle server. This assignment helps students learn a basic understanding of application development using C++ programming and an Oracle database
Submission:
This Milestone is a new project that simply uses what was learned in the SETUP.
Your submission will be a single text-based .cpp file including your C++ program for the Database Application project/assignment. The file must include a comment header of student name and ID number.
AS_Part1.txt
Your submission needs to be FULLY commented.
Note: you can submit combine code of part1 and part2 as final.txt also
Instruction:
In this assignment, we use the same database that you use for your labs.
Connecting to an Oracle database from a C++ Program
In your function main(), create a connection to your database.
You need to implement the following functions:
int menu(void);
The menu() function returns an integer value which is the selected option by the user from the menu. This function displays the following menu options:
********************* HR Menu *********************
Prompt the user to enter an option. If the user enters an incorrect option, the user is asked to enter an option again. When the user enters a correct option (1 to 5), the function returns the selected value.
If the user selects 6 (Exit), the program terminates.
int findEmployee(*conn, int employeeNumber, struct Employee *emp);
This function receives a connection object, an integer number as the employee number, and a pointer to a variable of type Employee. The function returns 0 if the employee does not exist. It returns 1 if the employee exits.
To store the employee data from the findEmployee() function, we use a variable of type structure called Employee. The Employee structure has the following members:
struct Employee{
int employeeNumber;
char lastName[50];
char firstName[50];
char email[100];
char phone[50];
char extension[10];
char reportsTo[100];
char jobTitle[50];
char city[50];
};
The ReportsTo member stores the first name and the last name of the employee who is the manager of the given employee number.
If the employee exists, store the employee data into the members of an Employee variable using the third parameter in the findEmployee() function which references to that variable of type Employee.
Note: For this report, you may need to query more than one table (join).
void displayEmployee(*conn, struct Employee emp);
If the user selects option 1, this function is called. First, prompt the user to enter a value for the employee number. Then, call function findEmployee() to check if the employee with the given employee number exists. If the returning value of function findEmployee() is 0, display a proper error message.
Sample error message:
Employee 1122 does not exist.
Otherwise, call the function displayEmployee() to display the employee information.
This function receives a connection pointer and values of a variable of type Employee and displays all members of the emp parameter.
Display the employee information as follows:
employeeNumber = 1002
lastName = Murphy
firstName = Diane
email = [email protected]
phone = +1 650 219 4782
extension = x5800
reportsTo =
jobTitle = President
city = San Francisco
void displayAllEmployees(*conn);
If the user selects option 2 (Employees Report), call function displayAllEmployees().
This function receives a connection pointer and displays all employees’ information if exists.
Write a query to select and display the following attributes for all employees.
E
Employee Name
Email
Phone
Ext
Manager
------------------------------------------------------------------------------------------------------------------------
1002 Diane Murphy [email protected] +1 650 219 4782 x5800
1056 Mary Patterson [email protected] +1 650 219 4782 x4611 Diane Murphy
1076 Jeff Firrelli [email protected] +1 650 219 4782 x9273 Diane Murphy
Note: For this report, you may need to query more than one table (join).
If the query does not return any rows, display a proper message:
There is no employees’ information to be displayed.
Note: For each query in your assignment, make sure you handle the errors and display the proper message including the error_code.
Error_code is a number returned if the query execution is not successful.
In: Computer Science
Write an Empirical Model for Addressing the Issues of economic and social cost of opioid in US. Write 3-4 paragraphs please
In: Economics
CxHy completely combusted to produce 344 mg carbon dioxide and 56.2 mg of water. What is its empirical formula?
In: Chemistry
Explain the rationale behind the Arbitrage Pricing Theory (APT) model, and discuss its empirical evidence that tests its validity
In: Finance
Explain the rationale behind the Arbitrage Pricing Theory (APT) model, and discuss its empirical evidence that tests its validity.
In: Finance
To calculate the following probability, would you use Theoretical, Empirical, or Subjective probability:
Probability that you mow the yard today?
In: Statistics and Probability
Discuss the economic arguments concerning restrictions on immigration. Be sure to include in your discussion both economic analysis and empirical evidence
In: Economics
In February of the current year (assume a non-leap year), Miguel and Perla received their property tax statement for last calendar-year taxes of $3,000, which they paid to the taxing authority on March 1 of the current year. They had purchased their home on April 1 last year. What amount of property tax on this statement may they claim as an itemized deduction this year (rounded) (Tax Year 2018)?
A) $0
B) $800
C) $1,074
D) $2,260
In: Accounting
| Comprehensive Example Ch 4 pt 1 - Online Class | ||||
| Salary | $ 70,000.00 | |||
| Corporate Bonds | $ 10,000.00 | |||
| Muni Bonds | $ 5,000.00 | |||
| For AGI Deductions | $ 7,000.00 | |||
| Itemized Deductions | $ 10,000.00 | |||
| Filing Status | single | |||
| Withholding | $ 5,000.00 | |||
| Non-Refundable Credits | $ 2,000.00 | |||
|
Calculate the below items |
||||
| Calculate: | 2017 tax year | 2018 tax year | ||
| Gross Income | ||||
| Adjusted Gross Income | ||||
| Taxable Income | ||||
| Income Tax Liability | ||||
| Tax Due/ (Refund) | ||||
In: Accounting