This document contains SQL queries to retrieve vehicle, charge, article, task, and employee data from various database tables for an intervention. The SQL queries select specific fields from tables like Voiture, FI_CHARGES_DIVERS, FI_INTERVENTION_ARTICLE, FI_INTERVENTION_TACHES, and FI_INTERVENTION_Employe, joining on the company code and intervention number where applicable. The results are stored in recordset variables named Rec.
This presentation was prepared and successfully used at the lessons during World Space Week 2013 by Korkina I.N., the teacher of English, Gymnasium 114, St.Petersburg, Russia.
This presentation was prepared and successfully used at the lessons during World Space Week 2013 by Korkina I.N., the teacher of English, Gymnasium 114, St.Petersburg, Russia.
I need help to modify my code according to the instructions- Modify th.pdfpnaran46
I need help to modify my code according to the instructions:
Modify the program you created in Lab Assignment #9 (Babbage's Cabbage's, Part 3) to include
the following features:
Use parallel arrays to store the full name and gross pay of all employees entered. The size of the
arrays must be easy to change using a single symbolic constant. At the end of the program, after
all the individual employee records have been input and processed, write a summary table to the
report file listing the employees entered and their gross pay amounts. See the sample report that
follows for an example. (Your program may only store these two specific pieces of employee
data in arrays. You will not earn credit for this feature if you create additional arrays for other
pieces of employee data.)
Create individual functions for computing the sum of the gross pay amounts, the average, finding
the maximum gross pay, and the minimum gross pay. Each of these four functions can accept
only the array of gross pay amounts and number of valid data items as parameters, and cannot
depend on the array being arranged in order. Display the total, average, minimum, and maximum
of the gross pay amounts in the report file summary.
Use the optimized version of the Bubble Sort (v.3) so that the summary table of employee names
and gross pay amounts is arranged in descending order by gross pay.
Read input from a data file, rather than the user. See the sample data file that follows for an
example (note that the amount of the transportation deduction is supplied directly). You may
assume that all data provided in the file is valid. Remove all code related to keyboard input and
data validation so that the program simply reads from the data file and writes to the report file
without needing any input from the user.
Sample Report File
Submissions whose programs do not compile without errors, do not use a modular style (i.e., all
of the program code appears in the main module), or contain any of the items listed below, will
receive a grade of zero:
Global variables, Recursive module calls, vectors, structs, or classes, The line using namespace
std; Inclusion of libraries that have not been introduced as part of the class (including those that
are specific to a particular operating system), or use of their commands, Calls to the system
function
This is my code that needs to be modified:
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <ostream>
#define min_hours 10.0
#define max_hours 55.0
#define min_hourly_rate 15.00
#define max_hourly_rate 65.00
#define overtime_limit 34.0
void input_employee_data(double &hours_worked, double &hourly_wage);
void calculate_gross_pay(double &hours_worked, double &hourly_wage, double& ovt_hours,
double& reg_hours, double &gross_pay);
void calculate_net_pay(double &gross_pay, double& deduct, double &net_pay, double &taxes);
std::string input_full_name(std::string& first_name,
std::string& last_name);
std::string join_names.
I need this code, to show ALL inventory items, then with the remove .pdfaggarwalshoppe14
I need this code, to show ALL inventory items, then with the remove button, remove one of them
at a time, and the add button to add it back, and the restock button to reset the inventory items to
show all of them again. EVERYTHING IS WITH BUTTONS So it should look like this when
you hit the show button:
Make = "Ford",
Model = "Mustang",
Year = 2020,
MilesPerGallon = 22,
HorsePower = 450,
CarPrice = 35000,
Quantity = 5
Make = "Dodge",
Model = "Charger",
Year = 2018,
MilesPerGallon = 19,
HorsePower = 292,
CarPrice = 28000,
Quantity = 2
public partial class Form1 : Form
{
Car car = new Car();
Driver driver = new Driver();
InventoryManager manager;
int latestCarIndex = -1;
public Form1(InventoryManager invMan)
{
InitializeComponent();
manager = invMan;
}
private void btnShow_Click(object sender, EventArgs e)
{
if (manager.inventory.Count > 0 && latestCarIndex >= 0)
{
Car latestCar = manager.inventory[manager.inventory.Count - 1]; carTextBox.Text =
"Car make is " + latestCar.Make + "\r\n"
+ "Car Model is: " + latestCar.Model + "\r\n"
+ "Car Year is: " + latestCar.Year + "\r\n"
+ "Car Miles Per Gallon is: " + latestCar.MilesPerGallon + "\r\n"
+ "Car Horse Power is: " + latestCar.HorsePower + "\r\n"
+ "Quantity of cars in stock is: " + latestCar.Quantity + "\r\n";
}
}
int numAddedCars = 0;
int numRemovedCars = 0;
public void btnAdd_Click(object sender, EventArgs e)
{
// Create a new instance of the Car class with the desired attributes
Car newCar = new Car()
{
Make = "Chevy",
Model = "Corvette",
Year = 2022,
MilesPerGallon = 30,
HorsePower = 500,
Quantity = 1
};
manager.AddItem(newCar);
latestCarIndex = manager.inventory.Count - 1;
btnShow_Click(sender, e);
Car latestCar = manager.inventory[manager.inventory.Count - 1];
btnShow_Click(sender, e);
}
private void removeItemButton_Click(object sender, EventArgs e)
{
if (latestCarIndex >= 0)
{
Car latestCar = manager.inventory[latestCarIndex];
manager.RemoveItem(latestCar);
latestCarIndex--;
if (latestCarIndex >= 0)
{
btnShow_Click(sender, e);
}
}
class Driver
{
static void Main(string[] args)
{
InventoryManager manager = new InventoryManager(10);
Boolean windowOpen = true;
manager.AddItem(new Car()
{
Make = "Ford",
Model = "Mustang",
Year = 2020,
MilesPerGallon = 22,
HorsePower = 450,
CarPrice = 35000,
Quantity = 5
});
manager.AddItem(new Car()
{
Make = "Chevrolet",
Model = "Camaro",
Year = 2019,
MilesPerGallon = 20,
HorsePower = 455,
CarPrice = 32000,
Quantity = 3
});
manager.AddItem(new Car()
{
Make = "Dodge",
Model = "Charger",
Year = 2018,
MilesPerGallon = 19,
HorsePower = 292,
CarPrice = 28000,
Quantity = 2
});
manager.DisplayItems();
Car dodgeCharger = new Car()
{
Make = "Dodge",
Model = "Charger",
Year = 2018,
MilesPerGallon = 19,
HorsePower = 292,
CarPrice = 28000,
Quantity = 2
};
manager.RemoveItem(dodgeCharger);
manager.DisplayItems();
Car fordMustang = new Car()
{
Make = "Ford",
Model = "Mustang",
Year = 2020,
MilesPerGallon = 22,
HorsePower = 450,
CarPrice = 35000,
Quantity = 5
};
manager.Re.
I need help to modify my code according to the instructions- Modify th.pdfpnaran46
I need help to modify my code according to the instructions:
Modify the program you created in Lab Assignment #9 (Babbage's Cabbage's, Part 3) to include
the following features:
Use parallel arrays to store the full name and gross pay of all employees entered. The size of the
arrays must be easy to change using a single symbolic constant. At the end of the program, after
all the individual employee records have been input and processed, write a summary table to the
report file listing the employees entered and their gross pay amounts. See the sample report that
follows for an example. (Your program may only store these two specific pieces of employee
data in arrays. You will not earn credit for this feature if you create additional arrays for other
pieces of employee data.)
Create individual functions for computing the sum of the gross pay amounts, the average, finding
the maximum gross pay, and the minimum gross pay. Each of these four functions can accept
only the array of gross pay amounts and number of valid data items as parameters, and cannot
depend on the array being arranged in order. Display the total, average, minimum, and maximum
of the gross pay amounts in the report file summary.
Use the optimized version of the Bubble Sort (v.3) so that the summary table of employee names
and gross pay amounts is arranged in descending order by gross pay.
Read input from a data file, rather than the user. See the sample data file that follows for an
example (note that the amount of the transportation deduction is supplied directly). You may
assume that all data provided in the file is valid. Remove all code related to keyboard input and
data validation so that the program simply reads from the data file and writes to the report file
without needing any input from the user.
Sample Report File
Submissions whose programs do not compile without errors, do not use a modular style (i.e., all
of the program code appears in the main module), or contain any of the items listed below, will
receive a grade of zero:
Global variables, Recursive module calls, vectors, structs, or classes, The line using namespace
std; Inclusion of libraries that have not been introduced as part of the class (including those that
are specific to a particular operating system), or use of their commands, Calls to the system
function
This is my code that needs to be modified:
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <ostream>
#define min_hours 10.0
#define max_hours 55.0
#define min_hourly_rate 15.00
#define max_hourly_rate 65.00
#define overtime_limit 34.0
void input_employee_data(double &hours_worked, double &hourly_wage);
void calculate_gross_pay(double &hours_worked, double &hourly_wage, double& ovt_hours,
double& reg_hours, double &gross_pay);
void calculate_net_pay(double &gross_pay, double& deduct, double &net_pay, double &taxes);
std::string input_full_name(std::string& first_name,
std::string& last_name);
std::string join_names.
I need this code, to show ALL inventory items, then with the remove .pdfaggarwalshoppe14
I need this code, to show ALL inventory items, then with the remove button, remove one of them
at a time, and the add button to add it back, and the restock button to reset the inventory items to
show all of them again. EVERYTHING IS WITH BUTTONS So it should look like this when
you hit the show button:
Make = "Ford",
Model = "Mustang",
Year = 2020,
MilesPerGallon = 22,
HorsePower = 450,
CarPrice = 35000,
Quantity = 5
Make = "Dodge",
Model = "Charger",
Year = 2018,
MilesPerGallon = 19,
HorsePower = 292,
CarPrice = 28000,
Quantity = 2
public partial class Form1 : Form
{
Car car = new Car();
Driver driver = new Driver();
InventoryManager manager;
int latestCarIndex = -1;
public Form1(InventoryManager invMan)
{
InitializeComponent();
manager = invMan;
}
private void btnShow_Click(object sender, EventArgs e)
{
if (manager.inventory.Count > 0 && latestCarIndex >= 0)
{
Car latestCar = manager.inventory[manager.inventory.Count - 1]; carTextBox.Text =
"Car make is " + latestCar.Make + "\r\n"
+ "Car Model is: " + latestCar.Model + "\r\n"
+ "Car Year is: " + latestCar.Year + "\r\n"
+ "Car Miles Per Gallon is: " + latestCar.MilesPerGallon + "\r\n"
+ "Car Horse Power is: " + latestCar.HorsePower + "\r\n"
+ "Quantity of cars in stock is: " + latestCar.Quantity + "\r\n";
}
}
int numAddedCars = 0;
int numRemovedCars = 0;
public void btnAdd_Click(object sender, EventArgs e)
{
// Create a new instance of the Car class with the desired attributes
Car newCar = new Car()
{
Make = "Chevy",
Model = "Corvette",
Year = 2022,
MilesPerGallon = 30,
HorsePower = 500,
Quantity = 1
};
manager.AddItem(newCar);
latestCarIndex = manager.inventory.Count - 1;
btnShow_Click(sender, e);
Car latestCar = manager.inventory[manager.inventory.Count - 1];
btnShow_Click(sender, e);
}
private void removeItemButton_Click(object sender, EventArgs e)
{
if (latestCarIndex >= 0)
{
Car latestCar = manager.inventory[latestCarIndex];
manager.RemoveItem(latestCar);
latestCarIndex--;
if (latestCarIndex >= 0)
{
btnShow_Click(sender, e);
}
}
class Driver
{
static void Main(string[] args)
{
InventoryManager manager = new InventoryManager(10);
Boolean windowOpen = true;
manager.AddItem(new Car()
{
Make = "Ford",
Model = "Mustang",
Year = 2020,
MilesPerGallon = 22,
HorsePower = 450,
CarPrice = 35000,
Quantity = 5
});
manager.AddItem(new Car()
{
Make = "Chevrolet",
Model = "Camaro",
Year = 2019,
MilesPerGallon = 20,
HorsePower = 455,
CarPrice = 32000,
Quantity = 3
});
manager.AddItem(new Car()
{
Make = "Dodge",
Model = "Charger",
Year = 2018,
MilesPerGallon = 19,
HorsePower = 292,
CarPrice = 28000,
Quantity = 2
});
manager.DisplayItems();
Car dodgeCharger = new Car()
{
Make = "Dodge",
Model = "Charger",
Year = 2018,
MilesPerGallon = 19,
HorsePower = 292,
CarPrice = 28000,
Quantity = 2
};
manager.RemoveItem(dodgeCharger);
manager.DisplayItems();
Car fordMustang = new Car()
{
Make = "Ford",
Model = "Mustang",
Year = 2020,
MilesPerGallon = 22,
HorsePower = 450,
CarPrice = 35000,
Quantity = 5
};
manager.Re.