answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
daser333 [38]
1 year ago
13

there is a structure called employee that holds information like employee code, name, date of joining. Write a program to create

an array of the structure and enter some data into it. Then ask the user to enter current date. Display the names of those employees whose service is 15 or more than 15 years according to the given current date.
Computers and Technology
1 answer:
Sever21 [200]1 year ago
3 0

Answer:

The program in C is as follows:

#include<stdio.h>

#include<conio.h>

struct employee{

char empname[50]; int empcode, day,mon,yr;

}employees[30];

int main(){

int total;

printf("Numbers of Employees : "); scanf("%d",&total);

for(int kt=0;kt<total;kt++){

printf("Employee Code : "); scanf("%d",&employees[kt].empcode);

printf("Name: "); scanf("%s",employees[kt].empname);

printf("Date of Joining [dd mm yyyy]: "); scanf("%d%d%d",&employees[kt].day,&employees[kt].mon,&employees[kt].yr); }

int year;

printf("\nCurrent Date [Year only]: "); scanf("%d", &year);

printf("Code\t\t\t Name\t\t\t Date of Joining\n");

for(int kt=0;kt<total;kt++)

if((year - employees[kt].yr) >= 15)

printf("%d\t\t\t %s\t\t\t %d/%d/%d\n",employees[kt].empcode,employees[kt].empname, employees[kt].day,employees[kt].mon,employees[kt].yr);

}

Explanation:

See attachment for explanation where comments were used to explain some lines

Download txt
You might be interested in
1. Create a view named customer_addresses that shows the shipping and billing addresses for each customer.
Verdich [7]

Answer:

Answer given below

Explanation:

1.

CREATE VIEW CustomerAddresses AS

SELECT custo. CustomerID, EmailAddress , LastName ,FirstName,

bill.Line1 AS BillLine1, bill.Line2 AS BillLine2, bill.City AS BillCity, bill.State AS BillState, bill.ZipCode AS BillZip,

ship.Line1 AS ShipLine1, ship.Line2 AS ShipLine2, ship.City AS ShipCity, ship.State AS ShipState, ship.ZipCode AS ShipZip

FROM Customers custo , Addresses ship , Addresses bill

WHERE custo. BillingAddressID= bill.AddressID AND custo.ShippingAddressID= ship. AddressID;

2.

SELECT CustomerID, LastName, FirstName, BillLine1 FROM CustomerAddresses;

3.

CREATE VIEW OrderItemProducts

AS

SELECT Orders.OrderID, OrderDate, TaxAmount, ShipDate,

ItemPrice, DiscountAmount, (ItemPrice- DiscountAmount) AS FinalPrice,

Quantity, and (Quantity * (ItemPrice-DiscountAmount)) AS ItemTotal,

ProductName FROM

Orders, OrderItems, Products

WHERE

Orders.OrderID = OrderItems.OrderID AND

OrderItems.ProductID = Products. ProductID;

4.

CREATE VIEW ProductSummary

AS

SELECT distinct

ProductName, COUNT(OrderID) AS OrderCount, SUM(ItemTotal) AS OrderTotal

FROM

OrderItemProducts

GROUP BY ProductName;

5.

SELECT ProductName, OrderTotal

FROM ProductSummary P

WHERE 5> (select count(*) FROM ProductSummary S

WHERE P.OrderTotal<S.OrderTotal)

ORDER BY OrderTotal;

5 0
2 years ago
A feature on a new computer with Windows preinstalled. When you take it out of the box and turn it on, you will be greeted with
BlackZzzverrR [31]

Answer:

Explanation:

In the newer versions of windows, there are a variety of sign-in methods, these include facial recognition, fingerprint scanner, username & password, or Microsoft email sign in. The choice is yours at the end of the Out-of-box experience which is the entire setup experience that the consumer has when first preparing the new windows installation on the computer that they have. Some of the options may require additional hardware on your PC such as a fingerprint scanner or a webcam for facial recognition.

6 0
2 years ago
Joe wants to use an engaging image as a hook in his presentation , but he’s afraid of violating any copyright law. What should h
vivado [14]

Answer:

he should cite the websites of where he got his information.

Explanation:

6 0
2 years ago
Which one of the following provides an authentication mechanism that would be appropriate for pairing with a password to achieve
vodka [1.7K]

Answer:

Option d is the correct answer for the above question.

Explanation:

  • Authentication is a process that enables the user to enter the system. This process helps to secure the data. It is because with the help of this only valid users can enter the system. In this process, the system asks some unique information from the user which can only be known to the valid user.
  • Some systems put two types of authentications one is some information about the valid user and the other is a fingerprint scan that takes the data of the user finger and matches with their user name and password. If it matches then only he can enter into the system.
  • The above question asks about the mechanism which is used for multifactor authentication. This authentication is known as a fingerprint scan. So the option D is the correct answer while the other is not because:-
  1. Option 'a' states about the username which is used in the first authentication.
  2. Option b states about pin which can be used in the place of username.
  3. Option c states about the security question which is used when the user forgets the password.
4 0
1 year ago
1. Jesse wants a recommendation about creating an SCR help desk. She said that I can find lots of information about help desks o
OLEGan [10]

Answer:

The recommendations for Jesse about creating an SCR help desk are, the user interface, sending of data request to servers, sending data files back to the server, receiving  data files from the server, running an application programs locally to process data.

File server handles several jobs which includes, sending data files to client, storing of data files, and generating traffic on the internet.

The client/server tiers  allows user interface on the client and data can be stored on the server. it's elements includes the following: output, input, processes, performance, control and security

Explanation:

Given that:

(1)The recommendations is stated as follows:

A file sharing architecture is recommended where the clients can handle the following:

  • The user interface
  • Sends data request to servers
  • Sends data files back to the server
  • Receives data files from the server
  • Runs application programs locally to process data

The file server handles the following tasks or jobs which is stated below:

  • Receives data request from clients
  • Sends data files to client
  • Stores data files
  • Manage multi-user access
  • Generate LAN traffic

The Client design:

  • Lower  network traffic
  • Faster performance
  • Lower initial cost
  • Lower maintenance cost

The disadvantage of this, is that it is more difficult to design

Note: Kindly find an attached copy of part of the solution to this given question below

4 0
2 years ago
Other questions:
  • Jefferson is interested in starting his own business. He plans to borrow money from the local bank in order to finance the busin
    9·2 answers
  • A two-dimensional array can have elements of ________ data type(s).
    7·1 answer
  • Which social network made the mistake of alienating its early adopters by deleting suspicious accounts?​?
    5·1 answer
  • What technique creates different hashes for the same password? ccna routing protocols final answers?
    7·1 answer
  • In a system containing CPU 1 and Disk Drive A, the system is instructed to access Track 1, Track 9, Track 1, and then Track 9 of
    12·1 answer
  • There are no breakpoints in the "Access Customer Account" subpage however there is an error. What will happen if you choose to s
    11·1 answer
  • The code selection above is taken from the Color Sleuth activity you just completed. This selection would count as an abstractio
    12·1 answer
  • int decode2(int x, int y, int z); is compiled into 32bit x86 assembly code. The body of the code is as follows: NOTE: x at %ebp+
    5·1 answer
  • A bank in your town updates its customers’ accounts at the end of each month. The bank offers two types of accounts: savings and
    8·1 answer
  • In cell M2, enter a formula using a nested IF function as follows to determine first if a student has already been elected to of
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!