Description
After you have completed all of the tutorials in Chapter 10, turn to page 734 in your textbook and do Case Problem 2, Ridgewood Herald Tribune. Make sure all files are uploaded to cPanel and submit your URL for the front.htm file when you are finished.
Unformatted Attachment Preview
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Explanation & Answer
After looking at the assignment, I was able to complete it without the fonttxt.htm file. I will a...
Completion Status:
100%
Review
Review
Anonymous
I use Studypool every time I need help studying, and it never disappoints.
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Most Popular Content
Calculate gross pay
Write a C program that will calculate the gross pay of a set of employees utilizing pointers instead of array refernces.Th ...
Calculate gross pay
Write a C program that will calculate the gross pay of a set of employees utilizing pointers instead of array refernces.The program should prompt the user to enter the number of hours each employee worked. When prompted, key in the hours shown below.The program determines the overtime hours (anything over 40 hours), the gross pay and then outputs a table in the following format. Column alignment, leading zeros in Clock#, and zero suppression in float fields is important. Use 1.5 as the overtime pay factor.This week, adding a Total and Average row is no longer optional, its required for this assignment:a) Add a Total row at the end to sum up the wage, hours, ot, and gross columnsb) Add an Average row to print out the average of the wage, hours, ot, and gross columns ---------------------------------------------------------
Name Clock# Wage Hours OT Gross
---------------------------------------------------------
Connie Cobol 098401 10.60 51.0 11.0 598.90
Mary Apl 526488 9.75 42.5 2.5 426.56
Frank Fortran 765349 10.50 37.0 0.0 388.50
Jeff Ada 034645 12.25 45.0 5.0 581.88
Anton Pascal 127615 10.00 40.0 0.0 400.00
---------------------------------------------------------
Total: 53.10 215.5 18.5 2395.84
Average: 10.62 43.1 3.7 479.19
You should implement this program using a structure similar to the suggested one below to store the information for each employee. Feel free to tweak it if you wish. For example, its OK to have a first and last name member instead of just a name member, and if you want to use different types, that is OK as well. struct employee
{
char name [20];
long id_number;
float wage;
float hours;
float overtime;
float gross;
}; Set a pointer to it and then use that pointer going forward to access elements (and their associated members) in your array of structures. Again, do not use array references with indexes (use emp_ptr->hours ... not ... emp [ i ].hours as the latter is not a fast).Use the following information to initialize your data. Connie Cobol 98401 10.60
Mary Apl 526488 9.75
Frank Fortran 765349 10.50
Jeff Ada 34645 12.25
Anton Pascal 127615 10.00
Create an array of structures with 5 elements, each being of type struct employee. Initialize the array with the data provided and reference the elements of the array with the appropriate subscripts.Do not use any array references with indexes. For example:emp[i].wage /* this is bad, it uses an array reference with an index, in this case, i */emp_ptr->wage; /* this is good, it uses a pointer to reference the wage value */Here is template************************************************************************/
/* */
/* HOMEWORK: 7 */
/* */
/* Name: Joe Student */
/* */
/* Class: C Programming, Cybercourse */
/* */
/* Date: <add your date> */
/* */
/* Description: Program which determines gross pay based on overtime */
/* and outputs a formatted answer. Employee information */
/* is stored in an array of structures and referenced */
/* through the use of pointers. */
/************************************************************************/
#include <stdio.h>
#include <stdlib.h>
/* define all constants here */
#define SIZE 5
/* type to hold employee information */
struct employee
{
char name [20]; /* Employee first and last name */
int id; /* unique employee identifier */
float wage; /* hourly wage rate */
float hours; /* hours worked in a given week */
float overtime; /* hours worked after the standard work week */
float gross; /* total gross pay, standard pay + overtime pay */
};/* add function prototypes here if you wish */
/* Remember to add function comment header block for each function *//* like shown below for printData, a stub for getHours is below. */
void getHours ( struct employee * emp_ptr, int size )
{
}
/************************************************************************/
/* Function: printData */
/* */
/* Purpose: Outputs to screen in a table format the following: */
/* - Employee First and Last Name */
/* - Employee clock number */
/* - Wage rate for an employee. */
/* - Total hours worked by employee. */
/* - Overtime Hours. */
/* - Gross Pay. */
/* */
/* Parameters: emp_ptr - pointer to array of structures */
/* size - number of employees to process */
/* */
/* Returns: Nothing, since emp_ptr is passed by reference */
/************************************************************************/
void printData ( struct employee * emp_ptr, int size )
{
int n; /* counter used in for loop to keep track of iterations */
/* prints the output for all employees to the screen */
for (n = 0; n < SIZE; n++)
{
printf ("%-20.20s %06i $%5.2f %4.1f %4.1f $%7.2f \n",
emp_ptr->name,
emp_ptr->id,
emp_ptr->wage,
emp_ptr->hours,
emp_ptr->overtime,
emp_ptr->gross);
++emp_ptr; /* move to next employee */
}
printf ("\n");
}
/************************************************************************/
/* Function: Main */
/************************************************************************/
int main()
{
/* A structure array to hold information on employees */
struct employee emp [SIZE] = { {"Connie Cobol", 98401, 10.60},
{"Frank Fortran", 526488, 9.75},
{"Mary Apl", 765349, 10.50},
{"Jeff Ada", 34645, 12.25},
{"Anton Pascal", 127615, 10.0}
};
/* Get user input for the hours worked for each employee */
getHours ( emp, SIZE );
/* Calculate overtime for each employee */
/* Calculate gross pay for each employee */ /* Print column headers for each employee */ /* Print employee data to the screen */
printData ( emp, SIZE );
return 0;
}
Unit 1 individual project
Assignment Details Assignment DescriptionIn an era where Web sites are highly dynamic, interactive, and database dependent ...
Unit 1 individual project
Assignment Details Assignment DescriptionIn an era where Web sites are highly dynamic, interactive, and database dependent, a static Web page consisting of only HTML may seem archaic. However, Web developers must begin somewhere and a good understanding of the language of the Web (HTML) is the right place to start. You have decided to develop a static Web page that contains valid HTML as the newsletter for an organization that interests you.Create a static Web page that includes the basic structure of a valid HTML (not XHTML) document. Make sure to include the language attribute of the html element and the character set attribute of the metadata element. You may want to save this basic document as the starting structure for development of all static Web pages.Continue to structure the newsletter using the HTML semantic elementsheadersectionfooterWithin the structure of the newsletter add other HTML elements including at least one:headingparagraphimage that implements accessibility guidelinesnavigation that includes alist of at leastfour links thatnavigate to actual Web pages andimplement accessibility guidelinesUse of any inline elements should follow current standardsNo style should be appliedValidate the finished web page.Zip (compress) the into a .zip file.
programming assignment
For this assignment you are implementing a system for detecting trends in
consumer products over a 48 hour period. We are ...
programming assignment
For this assignment you are implementing a system for detecting trends in
consumer products over a 48 hour period. We are interested in knowing
which products are purchased and sold, the least and most, by various retail
stores throughout the United States. the data.csv is like this
Units
Type
Transaction
9000
iPhone6s
Purchased
8000
Galaxys6
Sold
1000
XboxOne
Sold
3000
XboxOne
Purchased
5000
iPhone6s
Sold
6000
Galaxys6
Purchased
11000
WiiU
Sold
2000
WiiU
Purchased
20000
Playstation4
Sold
13000
Playstation4
Purchased
10000
iPadAir2
Sold
19000
SurfacePro4
Purchased
15000
SurfacePro4
Sold
12000
iPadAir2
Purchased
4 pages
Analysis Of Case Study On Privacy For The Company
Analysis of Case Study on Privacy for the Company A brief discussion of what the issue or threat is and how it could affe ...
Analysis Of Case Study On Privacy For The Company
Analysis of Case Study on Privacy for the Company A brief discussion of what the issue or threat is and how it could affect the company
Similar Content
How to implement my drawings to a video game that i am making?
I am interested in making a 2D(if possible 3D) point and click adventure video game. So what engine should i use? What pro...
Ashford University Quantitative Analysis of Calcium in Vitamin Tablets Lab Report
need attached chemistry lab completed........................................................................................
Northeastern University K Nearest Algorithm to Classify Time Series Data Question
In this assignment you will use a K-nearest algorithm to classify time series data (Note that time series classification I...
Diablo Valley College CS Lab Maps and Stock Prices C++ Programming Task
The STL (Standard Template Library) in C++ provides many common data structures used in day-to-day programming. The purp...
Watch the video and review the documents,Answer the following system development questions
Before you attempt this assignment, you should:1.View the "BA and Systems Development Methodologies" video, (PLEASE WATCH ...
ECE 263 Arizona State University Conduct a Series of Warmup Exercises Problems
- in the attachment below page 3 describe the assignment -write it in visual studio- programming with "C". ITS NOT C++ -fe...
Xml And Net. Framework
Microsoft has recently promoted its product plans the rough incorporating Net Background also XML network gas station for ...
Assignment 1
You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the a...
Php Edited
Static websites are designed in such a way that all the website users have the same experience in terms of the look and fe...
Related Tags
Book Guides
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
Calculate gross pay
Write a C program that will calculate the gross pay of a set of employees utilizing pointers instead of array refernces.Th ...
Calculate gross pay
Write a C program that will calculate the gross pay of a set of employees utilizing pointers instead of array refernces.The program should prompt the user to enter the number of hours each employee worked. When prompted, key in the hours shown below.The program determines the overtime hours (anything over 40 hours), the gross pay and then outputs a table in the following format. Column alignment, leading zeros in Clock#, and zero suppression in float fields is important. Use 1.5 as the overtime pay factor.This week, adding a Total and Average row is no longer optional, its required for this assignment:a) Add a Total row at the end to sum up the wage, hours, ot, and gross columnsb) Add an Average row to print out the average of the wage, hours, ot, and gross columns ---------------------------------------------------------
Name Clock# Wage Hours OT Gross
---------------------------------------------------------
Connie Cobol 098401 10.60 51.0 11.0 598.90
Mary Apl 526488 9.75 42.5 2.5 426.56
Frank Fortran 765349 10.50 37.0 0.0 388.50
Jeff Ada 034645 12.25 45.0 5.0 581.88
Anton Pascal 127615 10.00 40.0 0.0 400.00
---------------------------------------------------------
Total: 53.10 215.5 18.5 2395.84
Average: 10.62 43.1 3.7 479.19
You should implement this program using a structure similar to the suggested one below to store the information for each employee. Feel free to tweak it if you wish. For example, its OK to have a first and last name member instead of just a name member, and if you want to use different types, that is OK as well. struct employee
{
char name [20];
long id_number;
float wage;
float hours;
float overtime;
float gross;
}; Set a pointer to it and then use that pointer going forward to access elements (and their associated members) in your array of structures. Again, do not use array references with indexes (use emp_ptr->hours ... not ... emp [ i ].hours as the latter is not a fast).Use the following information to initialize your data. Connie Cobol 98401 10.60
Mary Apl 526488 9.75
Frank Fortran 765349 10.50
Jeff Ada 34645 12.25
Anton Pascal 127615 10.00
Create an array of structures with 5 elements, each being of type struct employee. Initialize the array with the data provided and reference the elements of the array with the appropriate subscripts.Do not use any array references with indexes. For example:emp[i].wage /* this is bad, it uses an array reference with an index, in this case, i */emp_ptr->wage; /* this is good, it uses a pointer to reference the wage value */Here is template************************************************************************/
/* */
/* HOMEWORK: 7 */
/* */
/* Name: Joe Student */
/* */
/* Class: C Programming, Cybercourse */
/* */
/* Date: <add your date> */
/* */
/* Description: Program which determines gross pay based on overtime */
/* and outputs a formatted answer. Employee information */
/* is stored in an array of structures and referenced */
/* through the use of pointers. */
/************************************************************************/
#include <stdio.h>
#include <stdlib.h>
/* define all constants here */
#define SIZE 5
/* type to hold employee information */
struct employee
{
char name [20]; /* Employee first and last name */
int id; /* unique employee identifier */
float wage; /* hourly wage rate */
float hours; /* hours worked in a given week */
float overtime; /* hours worked after the standard work week */
float gross; /* total gross pay, standard pay + overtime pay */
};/* add function prototypes here if you wish */
/* Remember to add function comment header block for each function *//* like shown below for printData, a stub for getHours is below. */
void getHours ( struct employee * emp_ptr, int size )
{
}
/************************************************************************/
/* Function: printData */
/* */
/* Purpose: Outputs to screen in a table format the following: */
/* - Employee First and Last Name */
/* - Employee clock number */
/* - Wage rate for an employee. */
/* - Total hours worked by employee. */
/* - Overtime Hours. */
/* - Gross Pay. */
/* */
/* Parameters: emp_ptr - pointer to array of structures */
/* size - number of employees to process */
/* */
/* Returns: Nothing, since emp_ptr is passed by reference */
/************************************************************************/
void printData ( struct employee * emp_ptr, int size )
{
int n; /* counter used in for loop to keep track of iterations */
/* prints the output for all employees to the screen */
for (n = 0; n < SIZE; n++)
{
printf ("%-20.20s %06i $%5.2f %4.1f %4.1f $%7.2f \n",
emp_ptr->name,
emp_ptr->id,
emp_ptr->wage,
emp_ptr->hours,
emp_ptr->overtime,
emp_ptr->gross);
++emp_ptr; /* move to next employee */
}
printf ("\n");
}
/************************************************************************/
/* Function: Main */
/************************************************************************/
int main()
{
/* A structure array to hold information on employees */
struct employee emp [SIZE] = { {"Connie Cobol", 98401, 10.60},
{"Frank Fortran", 526488, 9.75},
{"Mary Apl", 765349, 10.50},
{"Jeff Ada", 34645, 12.25},
{"Anton Pascal", 127615, 10.0}
};
/* Get user input for the hours worked for each employee */
getHours ( emp, SIZE );
/* Calculate overtime for each employee */
/* Calculate gross pay for each employee */ /* Print column headers for each employee */ /* Print employee data to the screen */
printData ( emp, SIZE );
return 0;
}
Unit 1 individual project
Assignment Details Assignment DescriptionIn an era where Web sites are highly dynamic, interactive, and database dependent ...
Unit 1 individual project
Assignment Details Assignment DescriptionIn an era where Web sites are highly dynamic, interactive, and database dependent, a static Web page consisting of only HTML may seem archaic. However, Web developers must begin somewhere and a good understanding of the language of the Web (HTML) is the right place to start. You have decided to develop a static Web page that contains valid HTML as the newsletter for an organization that interests you.Create a static Web page that includes the basic structure of a valid HTML (not XHTML) document. Make sure to include the language attribute of the html element and the character set attribute of the metadata element. You may want to save this basic document as the starting structure for development of all static Web pages.Continue to structure the newsletter using the HTML semantic elementsheadersectionfooterWithin the structure of the newsletter add other HTML elements including at least one:headingparagraphimage that implements accessibility guidelinesnavigation that includes alist of at leastfour links thatnavigate to actual Web pages andimplement accessibility guidelinesUse of any inline elements should follow current standardsNo style should be appliedValidate the finished web page.Zip (compress) the into a .zip file.
programming assignment
For this assignment you are implementing a system for detecting trends in
consumer products over a 48 hour period. We are ...
programming assignment
For this assignment you are implementing a system for detecting trends in
consumer products over a 48 hour period. We are interested in knowing
which products are purchased and sold, the least and most, by various retail
stores throughout the United States. the data.csv is like this
Units
Type
Transaction
9000
iPhone6s
Purchased
8000
Galaxys6
Sold
1000
XboxOne
Sold
3000
XboxOne
Purchased
5000
iPhone6s
Sold
6000
Galaxys6
Purchased
11000
WiiU
Sold
2000
WiiU
Purchased
20000
Playstation4
Sold
13000
Playstation4
Purchased
10000
iPadAir2
Sold
19000
SurfacePro4
Purchased
15000
SurfacePro4
Sold
12000
iPadAir2
Purchased
4 pages
Analysis Of Case Study On Privacy For The Company
Analysis of Case Study on Privacy for the Company A brief discussion of what the issue or threat is and how it could affe ...
Analysis Of Case Study On Privacy For The Company
Analysis of Case Study on Privacy for the Company A brief discussion of what the issue or threat is and how it could affect the company
Earn money selling
your Study Documents