including the pseudocode, what is the data file and variables list for this. no
ID: 3699005 • Letter: I
Question
including the pseudocode, what is the data file and variables list for this. no programming language was assigned to this. there wasnt a language given. intro to programming logic and design 9th edition, doesnt actually use a specific code at all.
a https://blackboard.sanjac.edu/webap ?? Students, Your fourth assignment is based on concepts for Modules, Case structures, and Logical Operators Submit steps #1(Problem, variable list, & data file) ( and #3-Psuedocode only The Problem: An applicant is applying for a job at Trackdata Computing Company. The company requires that all applicants must be a U.S. citizen, 21 years of age or older, pass a drug test, and have a BS degree in Computer Science, Networlk Security, or Mangement of Information Systems. Your program should check for these existing conditions and output an appropriate message(s) if anyone of those conditions are not met. If the applicant passes all requirements, output a message indicating that the applicant is hired.Explanation / Answer
In this problem, you have to tell three things
1. list of variables
2.data file
3. pseudo-code
List of variable
This is the list of all attributes associated with an applicant like its citizenship, age, degree, drug test result. So for each attribute we can have a variable that can tell us about the existence of that attribute for that applicant
like variables could be
age = any number
degree = any name/string/characters
drug_test = 1 or 0 (if 1, the applicant has passed the drug test, if 0 applicant hasn't passed the drug test)
citizen =name of the country of the applicant
DATA FILE
Data file is basically the file which will have all the data of all the applicants . So you have to create a sample data file where you should be having several applicant entries and their variables values .a probable structure of data file can be like this (tabular form)
Applicant age citizen degree drug_test
john 24 US BS_CS 0
will 21 UK BS_NS 1
Kate 23 US BS_MIS 1
and so on you can add as many entries as you want.
BS_CS = bachelor of science in computer science
BS_NS = bachelor of science in network security
BS_MIS = bachelor of science in management of imformation system
PSUEDO CODE
For psuedo code you dont need a programming language , you just need to write the logical structure of the code which can be a prottype for any coding language.
for each applicant in data file
{
if age < 21
then print - applicant doesnt meet the age criteria
else if citizen != US
then print - applicant doesnt meet the citizenship criteria (not a US citizen)
else if drug_test = 0
then print - applicant hasnt passed the drug test
else if degree = !BS_CS and degree = !BS_NS and degree != BS_MIS
then print applicant doesnt have the required BS degree
else
print - applicant is hired- meets all criteria
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.