Java Homework Assignment
Arrays and reading from a file and writing to a file
Creating a batch file:
Write a program that reads a file that is set up with at least ten users, by the user's first name, last name and usersname. The following is an example of how two users should be set up:
Elaine Grant egrant
Bob Smith bsmith
The dsadd user command is a command line utility for Active Directory domains it is used to create a single user in active directory but can be written in a batch file (.bat) to add multiple users at a time.
The following is an example to use dsadd user to add a single user to the domain UISAD'AT symbol'[login to view URL] with a description and default password that must be changed at the first logon:
dsadd user "cn= Elaine Grant, dc=UISAD, dc=uis, dc=edu" -samid EGrant -upn EGrant -fn Elaine -ln Grant -desc "Human Resources" -pwd password -mustchpwd yes
Your job is to write a text file that contains at least ten users by first name, last name and usersname. Write a program that will read that file and tokenize the information for each user and write to a batch file (A batch file is a text file that has a .bat extension instead of .txt)
include comments.
I have like 70% of this program done because I copied it down as the teacher went over it on the projector. I'm just missing chunks of it here and there because he scrolled through too fast. I will attach what I got copied If someone wants to fill in the blanks and fix the errors. Might be easier to start from scratch, I don't know. I'm a business major and I'm required to take this programming class. I have no idea how to do this stuff. Thus, I have no beef with paying someone to do it for me. Let me know if you need more information to do this program.