First: Design a class named Employee with private fields for that person’s: (1) name, (2) ID number, and (3) hire date. The ID number should be in the format ###–C, where # is a digit, 0–9, and C is a character, an uppercase letter, A–M. Write no-arg, 1-arg (name), 2-arg (name & ID), and 3-arg constructors; and a public mutator and accessor method for each of the 3 fields. Test & demonstrate Employee works. Next: Design a class named ProductionWorker which extends the Employee class. ProductionWorker class should have 2 additional private fields: (1) Shift (an integer, 1, 2 or …

Member Avatar
Member Avatar
+0 forum 1

Hello, I am very new to programming as I am only a few weeks into my C# class. I have a project and after reading and reading my book, sadly I am stuck. Here is what the project calls for: I need to create a program that converts inches as an input to feet, yards and miles as an out put. I need to set all of the values to two points after the decimal and use constants, variables and separate methods to accomplish this task. I have an idea as how to start the program and how to use …

Member Avatar
Member Avatar
+1 forum 5

I have a string representing a date time, and a datetime local variable property. The string representing the datetime could be null or an empty string. To check for this, I thought I could check for a null or whitespace value and assign the appropriate value using this code: ReturnValue.ArrivalDate = string.IsNullOrWhiteSpace(Screenings.ArrivalDate) ? null : DateTime.Parse(Screenings.ArrivalDate); Pretty simple. The property `ReturnValue.ArrivalDate` is of the type `DateTime?`. So if the `Screenings.ArrivalDate` string is null or white space, it would assign the value `null` to the nullable `ReturnValue.ArrivalDate` property and if it's not null or whitespace, it would parse the string and …

Member Avatar
Member Avatar
+0 forum 1

Need help to edit this code to allow user to find words in the grid that are touching horizontally, vertically, and diagonally adjacent. For example, the board: Q W E R T A S D F G Z X C V B Y U A O P G H J K L contains the magic words WAS, WAXY, JOB. # include <stdio.h> # include <math.h> # include <stdlib.h> int lx; int ly; char grid [10] [10]; int z; int j; int main() { // declare array with alphabet char alphabet[26] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', …

Member Avatar
Member Avatar
+0 forum 1

hey, i'd like to know if there is a java program that transformate 2D dicom images to 3D dicom images?

Member Avatar
Member Avatar
+0 forum 1

write a program that: asks the user to enter a grade (integer between 0 and 100) if the grade is above a 90, display good job if the grade is below a 70: --- ask for a second grade --- if the second grade is 70 or above, display you passed --- if the second grade is below 70, display you failed

Member Avatar
Member Avatar
-2 forum 2

Hi all, I need to create a program on python that: At the start a 4 sided dice is thrown and a 12 sided dice is thrown to calculate two values for strength and skill the following method is used for each player: - Each attribute is originally set to 10. - The score on the 12 sided dice is divided by the score on the 4 sided dice and rounded down. - This value is added to the initial value. This process is repeated twice for two characters Bob and James. I also need the pseudo.

Member Avatar
Member Avatar
+0 forum 2

//With this method, I input a string and return an array that contains a sorted list of characters as per the frequency. Eg: If i input "apple", the out put should be p,a,l,e, How do I do this? public static ArrayList<Character> characterFreqDist(String statement) { char[] Array = statement.toCharArray(); int length = Array.length; int most_frequent_count = 0; char most_freq_character = '\0'; char[] Final_Array = new char[length]; ArrayList<Character> Sorted_Array = new ArrayList<Character>(); for(int loop = 0 ; loop<length ; loop++) { most_freq_character = '\0'; most_frequent_count = 0; for(int i = 0; i<length ; i++) { char single_character = Array[i] ; int counter …

Member Avatar
Member Avatar
+0 forum 5

<table> <?php if(count($members)) $j=1; foreach($members as $key => $member) <tr> <td><label><?php echo $j.". "."  ".$member->member_id."  ".$member->name;?></label></td> <td><input type="radio" id="attendance_<?php echo $key?>" name="attendance[<?php echo $key?>]" value="present" required >Present <input type="radio" id="attendance_<?php echo $key?>" name="attendance[<?php echo $key?>]" value="absent" required >Absent</label></td> <td><select name="reason" id="reason" required style="display:none"> <option value="Work">Work</option> <option value="India">India</option> <option value="Sick">Sick</option> <option value="Personal/Family Issues">Personal/Family Issues</option> <option value="Overseas">Overseas</option> <option value="No reason/No response">No reason/No response</option> </select></td> <td><input type="text" name="remarks1" id="remarks1" placeholder="Remarks." required style="display:none"></td> </tr> <?php $j++; </table>

Member Avatar
Member Avatar
-1 forum 1

hi i'm working with joomla and virtuemart component button in virtueMart don't have value : <input type="button" class="quantity-controls quantity-plus"> actually i want to add : value="+" in button but i have a problem . when i click inspect on browser , i can't find path address for code in my host how can i find address for code ?

Member Avatar
Member Avatar
+0 forum 1

/** This code is supposed to take the user input of the length and breadth of the room in one class, get the user input of the material and cost from the other class and calculate the total cost.*/ import java.util.Scanner; //My first class class RoomFlooring { private String FloorMaterial; private double material_cost = 0; public void setFloorMaterial(String FloorMaterial) { System.out.print('\u000C'); // Choosing the floor material Scanner Floor = new Scanner(System.in); System.out.println("Choose your floor material: FancyTile or NormalTile: "); FloorMaterial = Floor.nextLine(); } public String getFloorMaterial() { return FloorMaterial; } // determining the cost according to the floor materials public …

Member Avatar
Member Avatar
+0 forum 4

import java.util.Scanner; class Room_Dimension { private double length; private double width; public Room_Dimension(double length, double width) { this.length = length; this.width = width; } public void setLength(double length) { this.length = length; } public void setWidth(double width) { this.width = width; } public double getLength() { return length; } public double getWidth() { return width; } public Room_Dimension(Room_Dimension roomDimensions) { this.length = roomDimensions.getLength(); this.width = roomDimensions.getWidth(); } public double getArea() { return length * width; } } class Room_Flooring { private String floorMaterial; private Room_Dimension roomDimensions; private double cost_of_material; public Room_Flooring(Room_Dimension roomDimensions, String floorMaterial) { this.roomDimensions = roomDimensions; this.floorMaterial = …

Member Avatar
Member Avatar
+0 forum 1

Hello, I don't know too many things of programming, I've barely started with some online courses, but am at the very beginning. This is what I need to do: 1. From a folder that contains multiple files I need to copy a particular file. 2. Paste that particular file in multiple directories. Note: These folders / files are on Google Drive. Is there a way I can do this task using Python? Or is there another way I could do this (not necessarily only with Python)? Thank you!

Member Avatar
Member Avatar
+0 forum 1

Plz Help Me to Solve this Error.. I am coding this to build a Calcuator in Vb.net....i have declared "b" as a Button.. how to resolve this error.. plz help.. ![error.jpg](/attachments/large/4/bc99a90be607e68a81a81b5b7eed68b2.jpg)

Member Avatar
Member Avatar
+0 forum 2

Please I'm trying a simple connetivity with VB.Net to Microsoft Access Database and it keeps giving this erro message.... Please i need help Thisis the error it gives The 'Microsft,ACE.OLEBD.12.0' provider is not registered on the local host

Member Avatar
Member Avatar
+1 forum 3

Hi guys, I was trying to solve my problem about polynomials in C. By multiplying by repeated addition. I hope someone can help me thanks so much.

Member Avatar
Member Avatar
+0 forum 1

why we used return0 in C++? shell we use retrun1 or retrun -1 in C++?

Member Avatar
Member Avatar
+0 forum 2

I do the class but there are some codes I need to help me please : -Write a number of member functions that do the following: •Calculate the student GPA •Search for the highest mark taken in a particular course •Print the ID, first name, and last name of all the students who have already taken a particular course •Print the course code, course title, course mark, course grade of all courses taken by a particular student -Write a main program that does the following: •Define an array of objects of each one of the above three classes •Assign data …

Member Avatar
Member Avatar
+1 forum 3

Implement an abstract class Shape with methods: getType() returns a string denoting type of a shape (point, line, polygon ..) area() returns area of the object, or -1 if the shape is concave, intersecting, or does not have an area circumreference() returns circumreference of the object position() returns center coordinates of the object isConvex() returns true if shape is convex distance(Shape s) returns distance to the center of another shape Extend the Object classe into Point, Line, Triangle, and Polygon. Overload the inherited methods. Constructors of these classes take vertices coordinates as an input. I need help to write this …

Member Avatar
Member Avatar
-3 forum 2

I trying to write a code that reads a set of integers and then finds and prints the sum of the even and odd integers. The numbers will be read in from the user via the cin statement. You do not know how many numbers the user may enter. When the user enters a 0 (zero), then the user is done entering numbers. I have most of the code finished, but i can't seem to get it to accuretly display when I enter the zero. This is what i have so far. #include <iostream> #include <cmath> using namespace std; int …

Member Avatar
Member Avatar
+0 forum 3

java language (ArrayList) The Registrar Office at the university has asked you to help them write a Student Information System (SIS). The system can be used to store information about students, courses, and students' transcripts (courses already taken by a student). · Define a class called StudentType that holds information about a student (student ID, first name, last name, major). · Implement each member function (set, get, print, constructor, etc) in the class. · Define a class called CourseType that holds information about a course (course code, course title, number of credits). · Implement each member function (set, get, print, …

Member Avatar
Member Avatar
+0 forum 3

I need API (Java) to connect to Google Playstore to be able to download apps. Just as [www.apkpure.com](http://www.apkpure.com) and others, but l need to connect from my application. Can somebody help me. Thanks

Member Avatar
Member Avatar
-1 forum 1

Hello All, I am working on a python project that helps pull random names from a list in excel and saves them to a new excel file. The input file shows all of the names of the people who can work on that task. I am able to run the code below and get a random list for each task but I end up with duplicates down my lists. I am trying to create restraints to not allow duplication down the rows also but cant seem to get it to work. import random import xlrd import openpyxl as pyxl inputFilename …

Member Avatar
+0 forum 0

I want to create a php function that i can use to get a particular user details and display the info gotten in my ProfileActivity when a user profile is been clicked in my app. so i wrote this php code to get user details from my database but when i run the code nothing is returned in my browser. please what could be causing this? <?php require("config.php"); function getdetails($id) { $array = array(); $q = mysql_query("SELECT * FROM 'users' WHERE 'id'=".$id); while($r = mysql_fetch_assoc($q)) { $array['id'] = $r['id']; $array['name'] = $r['name']; } return $array; } function getId($name) { $q …

Member Avatar
Member Avatar
+0 forum 2

//How to change cin and cout to printf and scanf??? #include <iostream> using namespace std; char square[10] = {'o','1','2','3','4','5','6','7','8','9'}; int checkwin(); void board(); int main() { int player = 1,i,choice; char mark; do { board(); player=(player%2)?1:2; cout << "Player " << player << ", enter a number: "; cin >> choice; mark=(player == 1) ? 'X' : 'O'; if (choice == 1 && square[1] == '1') square[1] = mark; else if (choice == 2 && square[2] == '2') square[2] = mark; else if (choice == 3 && square[3] == '3') square[3] = mark; else if (choice == 4 && square[4] …

Member Avatar
Member Avatar
+0 forum 1

I read several forums questions related to SQL database corruption. As we all know, backup is the best way to repair SQL database. What a user will do when backup copy is also corrupted or updated bacjup is not available? Is DBCC CHECKDB Repair option (Repair_Allow_Data_Loss) safe?

Member Avatar
Member Avatar
+0 forum 1

Im not sure what code to use as I am not that experienced with VBA. No matter what i try i cannot get this macros to stop once it reaches a blank cell in E column. Here is the code: Option Explicit Sub PDFTemplate() Dim PDFFldr As FileDialog Set PDFFldr = Application.FileDialog(msoFileDialogFilePicker) With PDFFldr .Title = "Select PDF file to attach" .Filters.Add "PDF Type Files", "*.pdf", 1 If .Show <> -1 Then GoTo NoSelection Sheet1.Range("G53").Value = .SelectedItems(1) End With NoSelection: End Sub Sub SavePDFFolder() Dim PDFFldr As FileDialog Set PDFFldr = Application.FileDialog(msoFileDialogFolderPicker) With PDFFldr .Title = "Select a Folder" If …

Member Avatar
Member Avatar
+0 forum 1

HI everyone, I recently inherited a project that has been in production for a number of years. They want a new field added. Easy peasy - or so you would think..... The solution is checked into Team Foundation (back in 2012), so I was able to get the code there (and did). Another programmer here had to add a report to the program back in 2015, she did. HOWEVER she didn't check the code into Team Foundation (still showing as checked out). We got the code she had off the network location she had it out to. Here is where …

Member Avatar
Member Avatar
+0 forum 2

Hi guys! I have a problem with login into the system. Everything seem to be fine but it passes an error when i click the login button. Pls help Thank you in advance ////////login.php////// <? /* *********************************************************** **********# Name : Shambhu Prasad Patnaik #***** **********# Company : Aynsoft #********** **********# Copyright (c) www.aynsoft.com 2004 #********** *********************************************************** */ include_once("include_files.php"); include_once("general_functions/password_funcs.php"); include_once(PATH_TO_MAIN_PHYSICAL_LANGUAGE.$language.'/'.FILENAME_JOBSEEKER_LOGIN); include_once(FILENAME_BODY); $jscript_file=PATH_TO_LANGUAGE.$language."/jscript/".'jobseeker_login.js'; $template->set_filenames(array('jobseeker_login' => 'jobseeker_login.htm')); //// Jobseeker auto login starts //////[[Click Here](http://talentwiz.net/jobseeker_login.php)](null) $checked1=false; $encoded_login1=$_COOKIE["autologin1"]; //echo $encoded_login1; if(tep_not_null($encoded_login1)) { $checked1=true; $explode_array=explode("|",decode_string($encoded_login1)); $TREF_email_address1=$explode_array[0]; $TR_password1=$explode_array[1]; } else { $TREF_email_address1=""; $TR_password1=''; } //// Jobseeker auto login ends ////// $action = (isset($_POST['action']) ? $_POST['action'] : …

Member Avatar
+1 forum 0

Hi, below is my code for binary search algorithm. My question is, what if I enter more than 1 same numbers in the array? How should i modify my code to print out all the locations where that same number is found? For example, if I entered the number 2 at three different locations, let's say, array[3], array[6] and array[17], how should I ask my compiler to return all the three locations instead of one? P.S. the below code returns only 1 position even if the number is entered multiple times. Thanks in Advance :) // Binary Search Algorithm ... …

Member Avatar
Member Avatar
+0 forum 4

The End.