Write a program that declares a structure of 114 employees of a company. Your program should accept the employee’s id, first name, last name, type of employee, hours worked. Store the data entered in a suitable defined structure. Your program should calculate and display each employee’s information along with their salary for that time period. The table for the rate per employee type is given below:
Q: This challenge is based on the classic videogame "Snake". Assume the game screen is an n * n square,…
A: Algorithm - Take input from the user. Now use the below logic - res = 1 count = 0 while…
Q: Create the structure employee which composed of name with 50 characters, years of service which is…
A: Algorithm: 1.create an employee structure 2.create required methods 3.create a Function to read…
Q: Provided the following structure: typedef struct coin { char name[30]; int id; double price; }…
A: Answer is Option 1) AltCoin acoin; strcpy(acoin.name, "JamesCoin"); option 2) is wrong…
Q: In this problem, you should wrife one function named count_calories. This funcfion should have one…
A:
Q: Write a program to take a product code from Millie’s Mail- Order Catalog (MMOC) and separate it…
A: Approach Set the constant SIZE as 10 of the character array temp. Set the constant INPUT as 30 of…
Q: You have been hired by Detroit Football team as an assistant of the main coach. You need to modify a…
A: PROGRAM: //Header file #include <iostream> #include <string> //Using namespace using…
Q: The Barking Lot is a dog day care center. Write a program that accepts data for an ID number of the…
A: Program description The program has following parts: -Prompt and accept user input -compute feel…
Q: Write a program that performs the following procedures: 01. Structure stores marks of 7 courses with…
A: Program: #include <iostream>using namespace std; struct student{ char name[50]; int…
Q: 14. Write a function that takes an IUB student ID as a string parameter, then checks if the ID is…
A: 14 Code: #include <iostream>#include <string>using namespace std; int validate(string…
Q: I need help in this C Program struct based objective type question. Given Structs- struct DateTag{…
A: Structure in C programming language is an abstract data type that lets create a user-defined data…
Q: Create a money converter.
A: The code of index.php file is shown below. <!DOCTYPE html><html lang="en">…
Q: create a prog that will compute the final grade for a certain student and will display the final…
A: In this program, the C++ programming language is used which is object-oriented programming and also…
Q: Write a program that reads Restaurant’s detail. It should also find and print the total number of…
A: syntax of struct in c struct <struct-name> { //attributes list with data type };
Q: write a c-style struct declaration for a structure named person. use a string for the last name, a…
A: #include<stdio.h>struct person//structure named person and i was storing the structure data…
Q: Teacher has prepared the result of a class containing n number of students. He wants to give the…
A: C++: C++ is an object oriented programming language that was developed as an extension of…
Q: Write a program that uses two structures Name and Student to store the following information for…
A: Create a nameType structure that consists of First Name, Middle Initial, and Last Name struct…
Q: Write a program that takes a given temperature in degrees Kelvin and displays the equivalent…
A: First you have not declared that in which language you need the code so I'm giving you a code in…
Q: Function name Description parameter Return type main() Handles the main None None functionality of…
A: The functions are given below,
Q: Q1) Write a program in c ++ language to create a structure (eat) for (100) people with fields (name,…
A: 1. define struct named eat with given datamembers. 2. define function within struct that compares…
Q: 1. Write a program that declare a simple structure, declare at least two variables with different…
A: Sample Response: //Java program that declare a simple structure with atleast two variablespackage…
Q: The push member function simulates the push of a numeric button with value 0 to 9. The open member…
A: C++ is a powerful general-purpose programming language which can be used to develop operating…
Q: use c code to develop a program In this program you will create a structure called class to hold the…
A: A structure Class has been (class is a keyword and cannot be used as a name for the structure) with…
Q: Defines an enum named Classification. The enum Classification will have 2 data values:…
A: I have answered this question in step 2.
Q: Write a program that uses a structure named MovieData to store the following information about a…
A: Structure is a keyword for creating user-defined data types in C/C++. Structures create data types…
Q: Q3 / Write a program using the structures (records, reading, data of seven oil-producing countries,…
A: ⦁ We have to use the ‘struct’ format for getting the inputs.⦁ Then we have to call it in the main…
Q: Write a program that reads Restaurant.’s detail. It should also find and print the total number of…
A: #include<iostream>#include<string.h>using namespace std; struct CusType{ private:…
Q: In CPP , Write a program that: Defines an enum named Classification. The enum Classification will…
A: Here I have created 3 different enums. Next, in the main method, I have taken input from the user…
Q: From structure Date as declared in code given below, define TWO (2) variables called regDate and…
A: a structure is a user defined data type which can store heterogeneous type of data . structure…
Q: Write a program that creates a structure to store an of employee record with the following…
A: Use structure to represent Employee setw() method specifies the size of output
Q: Write a program that: Defines an enum named Classification. The enum Classification will have 2 data…
A: Please upvote me Please. I need it badly. Please. Please. I am providing the required code in…
Q: Write a program Declare a data structure marks_t, which contains the following type int members: …
A: Required: Write a program Declare a data structure marks_t, which contains the following type int…
Q: Write a program that reads a set of details for a group of employees and then can search based on…
A: n=int(input())l=[]for i in range(n): a=int(input("Employee no. :")) b=input("Employee name :")…
Q: A catalog listing for a textbook consists of the authors’ names, the title, the publisher, and the…
A: Dear Student, strcpy must be under the main function, even the declarations Corrected code is given…
Q: Write a C++ program to read the cus_name, cus_id of 5 Customers using array of structures and then…
A: C++ code for the given question :- #include <iostream>#include<algorithm>using…
Q: 1. Write a program "Projectile simulator". a. The program defined the following functions: initial…
A: Python Program: import mathimport numpy as npimport pandas as pd g = 9.81 def intial_values():…
Q: write a program in which Create a structure called time. Its three members, all type int, should be…
A: Introduction of Program: In this program, the User will enter hours, minutes, and seconds then the…
Q: c++
A: Answer: The below C++ program is used to print the collection of dresses for different brands and…
Q: C
A: Explanation: The seat matrix is represented by a 2-D character list, with the first column…
Q: The Manhattan distance between two points (x1,y1) and (x2, y2) is given as |x1-x2| + ly1-y2|, where…
A: Actually, python is a easiest programming language. It is a dynamically typed programming language.
Q: A. Write a program to keeps records and performs statistical analysis for a class of 50 students.…
A: #include <iostream> #include <fstream> #include <iomanip> #include…
Q: In Programming Exercise 13 (Chapter 8), you are asked to write a program to calculate students’…
A: In Programming Exercise 13 (Chapter 8), you are asked to write a program to calculate students’…
Q: Write a C++ program that is used by video game shop to update the information of some video games,…
A: In this question, it is mentioned to write a "read" function that reads the games information from…
Q: Q3/ write a program using the structures, records, reading, the data of seven oil-producing…
A: Per capita Income is the income generated per person Thus, per capita is calculated by dividing…
Q: A phone number, such as (212) 767-8900, can be thought of as having three parts: eg, the area code…
A: // iostream in C++ is the standard library which implement stream based input/output capabilities…
Q: This challenge is based on the classic videogame "Snake". Assume the game screen is an n * n square,…
A: Step-1: Start Step-2: function snakefill(n) Step-2.1: Declare variables sum=1, i=0 Step-2.2: Start a…
Q: ticket_price 이6 Complete the following function according to its docstring description. 1 bef…
A: I have given the completed code below.
Q: Analyze the following code and fill in the output. # Employee List name - ["Joe","Janice", "Ahmed",…
A: The output is : Joe worked 40 at 17.55 making 702 Janice worked 42 at 12.35 making 1683 Ahmed worked…
Q: You are required to write a program that creates a mini database of HairColor objects..... For this,…
A: The program is import java.util.Scanner; import java.util.ArrayList; enum type { highlight,…
Write a program that declares a structure of 114 employees of a company. Your program should accept the employee’s id, first name, last name, type of employee, hours worked. Store the data entered in a suitable defined structure. Your program should calculate and display each employee’s information along with their salary for that time period. The table for the rate per employee type is given below:
Type |
Rate |
1 |
1657.47 |
2 |
2493.26 |
3 |
3219.93 |
4 |
5467.28 |
Step by step
Solved in 2 steps with 1 images
- You are developing a Fraction structure for Teacher’s Pet Software. The structure contains three public data fields for whole number, numerator, and denominator. Using the same structure, write the functions described below: • An enterFractionValue()function that declares a local Fraction object and prompts the user to enter values for the Fraction. Do not allow the user to enter a value of 0 for the denominator of any Fraction; continue to prompt the user for a denominator value until a valid one is entered. The function returns a data-filled Fraction object to the calling function. • A reduceFraction()function that accepts a Fraction object and reduces it to proper form, returning the reduced Fraction. For example, a Fraction entering the function as 0 2/6 would be reduced to 0 1/3, and a Fraction entered as 4 18/4 would be reduced to 8 1/2. • A displayFraction()function that displays any Fraction object passed to it. This function displays a fraction with a slash between the…write a program in which Create a structure called time. Its three members, all type int, should be called hours, minutes, and seconds. Write a program that prompts the user to enter a time value in hours, minutes, and seconds. This can be in 12:59:59 format, or each number can be entered at a separate prompt (“Enter hours:”, and so forth). The program should then store the time in a variable of type struct time, and finally print out the total number of seconds represented by this time value: long totalsecs = t1.hours*3600 + t1.minutes*60 + t1.seconds. and write a function that obtains two time values from the user in 12:59:59 format, stores them in struct time variables, converts each one to seconds (type int), adds these quantities, converts the result back to hours minutes-seconds, stores the result in a time structure, and finally displays the result in 12:59:59 formatI need help in constructing the function (indicated in the bold and italics present in the end). Following are the given struct that can't be changed // name structure data type struct nameTag { String last; String first; }; typedef struct nameTag nameType; // vaccinee structure data type struct vaccineeTag { int ID; // ID number of the vaccinee, note that this number is system-generated (i.e., not a user input) nameType name; // name of vacinee int age; // age of vacinee int bool_frontliner; // 0 means not frontliner, 1 means frontliner int bool_comorbidity; // 0 means no comorbidity, 1 means with comorbiditity int priority; // 0 means priority not yet set, 1 to 4 means priority is set // where 1 is the highest priority and 4 is the lowest priority }; typedef struct vaccineeTag vaccineeType; Instructions void…
- You have been hired by Detroit Football team as an assistant of the main coach. You need to modify a program to take all the information (jersey number, name, height, accuracy and yearly salary) of each player and find the information of the best player who has best accuracy among them. You should consider the accuracy in a range [0-10]. Take all the information using a struct data type in C++. Like, struct teamDetroit { int jersey_num[10]; string name[10]; double height[10]; float accuracy[10]; int salary[10]; }; Moreover, take only 3 players information and put the player name as a single name (either first_name or last name). Sample input: Team of Detroit: Put the information of: 1 th player Enter the jersey_num: 2 Enter the name of player: Bob Enter the height of player in inch: 72 Accuracy is: 7.6 Enter the salary of player: ($)13000 Put the information of: 2 th player Enter the jersey_num: 4 Enter the name of player: John Enter the height of…This need to be written in c++ Write a program that: Defines an enum named Classification. The enum Classification will have 2 data values: undergraduate, graduate. Defines an enum named Status. The enum Stutus will have 2 data values: parttime, fulltime. Defines an enum named Residency. The enum Residency will have 2 data values: resident, international. Defines a student name variable. Creates a Classification, Status, and Residency, credit hour, cost per credit hour, and tuition variable. Reads the value of the Classification, Status, and Residency, student name and credit hour variable from the user. If the student is a fulltime undergraduate resident student, tuition is credit hour times 345.00 If the student is a fulltime undergraduate international student, tuition is credit hour times 685.00 If the student is a fulltime graduate resident student, tuition is credit hour times 545.00 If the student is a fulltime graduate international student , tuition is credit hour times…I need help in constructing the function. Following are the given struct that can't be changed // name structure data type struct nameTag { String last; String first; }; typedef struct nameTag nameType; // vaccinee structure data type struct vaccineeTag { int ID; // ID number of the vaccinee, note that this number is system-generated (i.e., not a user input) nameType name; // name of vacinee int age; // age of vacinee int bool_frontliner; // 0 means not frontliner, 1 means frontliner int bool_comorbidity; // 0 means no comorbidity, 1 means with comorbiditity int priority; // 0 means priority not yet set, 1 to 4 means priority is set // where 1 is the highest priority and 4 is the lowest priority }; typedef struct vaccineeTag vaccineeType; TO DO #1: Implement Search_by_Name() ( Implement a linear search algorithm to…
- I need help in constructing the function in bold at the bottom. Following are the given struct that can't be changed // name structure data type struct nameTag { String last; String first; }; typedef struct nameTag nameType; // vaccinee structure data type struct vaccineeTag { int ID; // ID number of the vaccinee, note that this number is system-generated (i.e., not a user input) nameType name; // name of vacinee int age; // age of vacinee int bool_frontliner; // 0 means not frontliner, 1 means frontliner int bool_comorbidity; // 0 means no comorbidity, 1 means with comorbiditity int priority; // 0 means priority not yet set, 1 to 4 means priority is set // where 1 is the highest priority and 4 is the lowest priority }; typedef struct vaccineeTag vaccineeType; 3. void Count_Per_Category(vaccineeType VACCINEE[], int n)…Question 1: Write a C function that declares a student structure that contains his name, his first name and his student number. Question 2: Write a C function that initializes the cell by taking the 3 parameters from the keyboard. Question 3: Write a function that displays the contents of the cell passed as a parameter.USING C A catalog listing for a textbook consists of the authors’ names, the title, the publisher, and the year ofpublication. Declare a structure type catalog_entry_t and a variable book , and write statements thatstore the relevant data for this textbook in book . I have this code so far but not sure where to go from here #include<stdio.h>#include<string.h> typedef struct{char author_name[50], title[50], publisher[50];int publication;} catalog_entry_t;catalog_entry_t book; strcpy(book.author_name,"Rhett Beeson");strcpy(book.title,"This class is hard");strcpy(book.publisher,"TTU");book.publication=2021
- Write a program, based on the sterling structure that has three members of pounds, shillings, and pence in integer type (There were 20 shillings to a pound, and 12 pence to a shilling.), that obtains from the user two money amounts in old-style British format (£9:19:11), adds them, and displays the result. Use three functions. The first should obtain a pounds-shillingspence value from the user and return the value as a structure of type sterling. The second should take two arguments of type sterling and return a value of the same type, which is the sum of the arguments. The third should take a sterling structure as its argument and display its value.create a prog that will compute the final grade for a certain student and will display the final grade and a remark if it is passed or failedPass = 75 aboveFailed = 74 belowCS= 60% quiz + 40 assignmentPG =[ 2(Pcs) + PE] / 3TMG = [2(Mcs) +ME] /3MG = [2(TMG) + PG] / 3TFG = Fcs +ME + SFEFG = [2(TFG) + MG ] / 3sample output:enter name of student: Cruzenter quiz Score: 75enter assignment Score: 75enter PE Score: 75PG of Cruz is : 75enter Mquiz Score: 75enter Massignment Score: 75enter ME Score: 75MG of Cruz is: 75enter Fquiz Score: 75enter Fassignment Score: 75enter SFE Score: 75enter FE Score: 75MG of Cruz is: 75FG of Cruz is : 75congrats you PASSWrite a program that: Defines an enum named Classification. The enum Classification will have 2 data values: undergraduate, graduate. Defines an enum named Status. The enum Stutus will have 2 data values: parttime, fulltime. Defines an enum named Residency. The enum Residency will have 2 data values: resident, international. Defines a student name variable. Creates a Classification, Status, and Residency, credit hour, cost per credit hour, and tuition variable. Reads the value of the Classification, Status, and Residency, student name and credit hour variable from the user. If the student is a fulltime undergraduate resident student, tuition is credit hour times 345.00 If the student is a fulltime undergraduate international student, tuition is credit hour times 685.00 If the student is a fulltime graduate resident student, tuition is credit hour times 545.00 If the student is a fulltime graduate international student , tuition is credit hour times 885.00 If the student is a parttime…