Description
Create a class that has a main() method. This class will be your virtual world application that will test the MyClone, ShoutBox, and class you decided to create in Module Seven.
Here is the code for all 3 of my classes, but I'm not sure how Unit Test these classes with a main class method. The code is below.
Homework (MyCloneScreenshots and CD) 7-2.docx
Unformatted Attachment Preview
HERE IS SOME CODE FOR SECOND CLASS BELOW!
package telguard;
/**
*
* @author philip.johnson1
*/
public class Telguard
{
private String TG1;
private String TG4;
private String TG7;
public static void main(String[] args)
{
//Creates a new object called radio1 from the MyClone class.
Telguard radio1 = new Telguard ();
//Creates a new object called radio4 from the MyClone class.
Telguard radio4 = new Telguard ();
//Creates a new object called radio7 from the MyClone class.
Telguard radio7 = new Telguard ();
}
/*Creates a MyClone constructor that returns a null value if the TG1,
TG4, or TG7 functions are left blank.
*/
public Telguard ()
{
this.TG1 = null;
this.TG4 = null;
this.TG7 = null;
}
}
HERE IS SOME CODE FOR SECOND CLASS BELOW!
package telguard;
/**
*
* @author philip.johnson1
*/
public class Telguard
{
private String TG1;
private String TG4;
private String TG7;
public static void main(String[] args)
{
//Creates a new object called radio1 from the MyClone class.
Telguard radio1 = new Telguard ();
//Creates a new object called radio4 from the MyClone class.
Telguard radio4 = new Telguard ();
//Creates a new object called radio7 from the MyClone class.
Telguard radio7 = new Telguard ();
}
/*Creates a MyClone constructor that returns a null value if the TG1,
TG4, or TG7 functions are left blank.
*/
public Telguard ()
{
this.TG1 = null;
this.TG4 = null;
this.TG7 = null;
}
}
Purchase answer to see full attachment
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Explanation & Answer
Review
Review
Anonymous
I was having a hard time with this subject, and this was a great help.
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Most Popular Content
ARSD India Module 5 Pseudocode for Python Program Integration Project
OverviewModule 5 Assignment 1 features the design of pseudocode to support a
Python program that requires coordination b ...
ARSD India Module 5 Pseudocode for Python Program Integration Project
OverviewModule 5 Assignment 1 features the design of pseudocode to support a
Python program that requires coordination between the control structures
and modules of two programs. This lab asks you to write pseudocode that
plans the program’s logic before you write the program in Python in the
next assignment. You will turn in only the pseudocode for the two
modules for M5 Assignment 1.InstructionsWrite pseudocode for a Python program that makes 100 dice rolls with a
single 6-sided die and displays the number of times each side appeared.
Turn in the two modules for the pseudocode for the following
instructions. The following steps describe what we want our two program
modules to do.Before proceding, download the files dice.py, dog.py, dog_new.py and
M5Lab2dice_hist.py, as all will be referenced in your assignments this
week. To find these files, reference the folder Module
5>Assignments>Exercises. These files were also in the zip file you
downloaded in Module 1.Requirements for Your M5 Assignment 1 Pseudocode for Program IntegrationFor the first module, write the pseudocode to process these tasks: (Note: lines beginning with # are comments with tips for you)From the random module import randint to roll each die randomly
# in pseudocode, import a random function# the name is helpful for the next M5-2 assignment
Define a class called Dice
In Python, the syntax has a colon after it: class Dice():In pseudocode, you can specify it generally or be specific
Under the class declaration, list the attributes. Here are some tips:
# attributes are what we know about a single die (dice is plural)# self is the first attribute in Python and must always appear first# add a num_sides attribute and to set it to 6 for the 6 sides on the dice
Define a method for roll(self)
# it describes what happens when we roll a single die# in the code, it will look like this example
def __init__(self, dice_sides=6):# in pseudocode, we do not worry about the punctuation# just list it as part of your logic
Under roll(self), return a random int value between 1 and self.dice_sidesSave this file as M5Lab1ii - you can save it as MS Word or a text file.For the second module, write the pseudocode to complete these tasks:In the same M5Lab1ii file, start a second module below the first module.From a new dice module, import our Dice classCreate a 6-sided die by using assignment # for example: dice = Dice()Create an empty results listWrite a for statement that takes each roll_num in range() and rolls it 100 timesSet the value of result to dice.roll()For each roll and append it to the results list using your list’s
name and .append() with the variable for each dice roll inside the
parameters for append(). For example:
# yourlistname.append(result)
Refer to the name of your list within the print() parameter to print the results.100 dice rolls for the values 1-6 appear in a list on the Python shell.Save the two modules in M5Lab1ii - you can save it as MS Word or a text file.How to Complete Your M5 Assignment 1 Pseudocode for Program IntegrationSave your M5Lab1ii (ii= your initials). [example for someone with the initials cc: M5Lab1cc.py]Upload the M5Lab1ii document with two modules to M5 Assignment 1
Pseudocode for Python Program Integration Assignment Submission Folder.
See the Schedule in the Syllabus Module for due dates. Review the Rubric attached to the Assignment Submission Folder for grading information.
PHP Programming, computer science homework help
Create a Web site for tracking and documenting the process of weekly beehive inspections at the Happy Bee Apiary. Every so ...
PHP Programming, computer science homework help
Create a Web site for tracking and documenting the process of weekly beehive inspections at the Happy Bee Apiary. Every so often beekeepers open the bee hives to document the state of the hive and note any existing problems. On the main page, include a form with fields to record the information. The fields can only accept the data in the format indicated in the parenthesis.Inspector’s name (string)date of inspection (date)hive number (integers from 1 to 10)Queen (Y or N)Eggs (Y or N)Larva (Small or Large)Capped Brood (Y or N)Hive mood (Aggressive, Calm, Lethargic)Capped Queen Cells (Swarm, Supercedure, None)Empty Queen Cells (accept any integers)Infestations (hive beetles, wax moth, varroa mites)Problems (this is a comment field)Needs (OAT, QE, HS, BB)Clicking the Submit button should save the data in a the database created by your program. Include a link or a button for opening a document that displays inspection information in some nice organized manner. You can decide how you want to display that, as long as it looks professional.Create Using Notepad++ And Using Xampp
ENTD 261 AMU Week 2 Redirection Operator & Code Documentation Problems
Create a VBScript script (w2_james_shaw.vbs) that takes 3 parameters (numbers)1) Print the sum of three numbers2) Prin ...
ENTD 261 AMU Week 2 Redirection Operator & Code Documentation Problems
Create a VBScript script (w2_james_shaw.vbs) that takes 3 parameters (numbers)1) Print the sum of three numbers2) Print the average of the three numbersOptionally, you can save the results into a file “Results.txt” using the redirection operator or by creating the file in the script.4) Make sure to include comment block (flowerbox) in your code.5) Sample run:- C:\entd261>cscript.exe w2_sammy_abaza.vbs 2 3 5 > results.txtSubmit your week 2 work in w2_james_shaw.txt (Please save the file as a text file and upload the text file here for final review.) RequirementsPointsComment block (flowerbox) with Instructions on how to run the code with examples.20Code documentation and comments. 10Assignment code including creating command line parameter 70TOTAL POINTS100
ITCO 630 AIU Unit 3 Individual Project Advanced Queries Programming SQL
Create the following queries on the ITCO630_A database used in Unit 3 and save them all in a file called ITCO630_P5.SQL. P ...
ITCO 630 AIU Unit 3 Individual Project Advanced Queries Programming SQL
Create the following queries on the ITCO630_A database used in Unit 3 and save them all in a file called ITCO630_P5.SQL. Please note that you can execute individual queries in a query file by highlighting the lines that you want to execute before running the script. Remember to define what database to use with a USE statement. Complete the following:Using a join, get the full details of all the students who work on the mid-term exam assignment.Get the assignment names (duplicates eliminated) being worked on by students at Central University.Get the last names of all the students who are working on assignment A1.Get the student numbers and start dates of all the students with start dates equal to the earliest date.Insert yourself into the student table using the last five digits of your phone number as the student number and show yourself as attending Central University. Then show all the records in the student table.Delete yourself from the student table by matching your student number, and then show all the records in the student table.You should create a zip file called ITCO630_P5.ZIP with your query file (ITCO630_P5.SQL) included.Please submit your assignment.For assistance with your assignment, please use your text, Web resources, and all course materials.Grading CriteriaProject CriteriaExceeds: 90%–100%Very Good: 80%–89%Meets: 70%–79%Needs Improvement: Below 70%Content(75%)Response covers all topics indicated in the assignment and adds additional content.Response covers most topics indicated in the assignment.Response covers many of the topics indicated in the assignment.Response covers none to some of the topics indicated in the assignment.Effective Communication(10%)Demonstrates outstanding or exemplary application of written, visual, or oral skills. Demonstrates outstanding expression of topic, main idea, and purpose. Audience is addressed appropriately. Language clearly and effectively communicates ideas and content relevant to the assignment. Errors in grammar, spelling, and sentence structure are minimal. Organization is clear. Format is consistently appropriate to assignment. Presentation and delivery are confident and persuasive (where applicable). The writing was of collegiate level with no errors in spelling or grammar.Demonstrates very good written, visual, or oral skills. Demonstrates sound expression of topic, main idea, and purpose. Audience is usually addressed appropriately. Language does not interfere with the communication of ideas and content relevant to the assignment. Errors in grammar, spelling, and sentence structure are present, but do not distract from the message. Organization is apparent and mostly clear. Format is appropriate to assignment, but not entirely consistent. The writing was of collegiate level with two or less errors in spelling or grammar.Demonstrates acceptable written, visual, or oral skills. Demonstrates reasonable expression of topic, main idea, and purpose. Sometimes, audience is addressed appropriately. Language does not interfere with the communication of ideas and content relevant to the assignment. Errors in grammar, spelling, and sentence structure are present and may distract from the message. Organization is a bit unclear. Format is inconsistent. The writing was of collegiate level with several errors in spelling or grammar.Demonstrates inadequate or partially proficient application of written, visual, or oral skills. Demonstrates inadequate or partial expression of topic, main idea, and purpose. Audience is often not addressed appropriately. Language often impedes the communication of ideas and content relevant to the assignment. Errors in grammar, spelling, and sentence structure are frequent and often distract from meaning or presentation. Organization is inadequate, confusing, and distracting. The format is inadequate and obscures meaning. The writing was less than collegiate level with numerous errors in spelling or grammar.Supporting Analysis(15%)Analysis exceeds minimum requirements. Sources are used to support analysis, are appropriate, and are properly referenced.Basic analysis provided to support assertions. Sources are cited, appropriate, and properly referenced.Limited analysis provided to support assertions. Some sources are cited, appropriate, and properly referenced.No or inaccurate analysis, no sources are cited when needed, analysis and/or sources are not appropriate. When sources are used, they are not properly referenced.
ITS410 Changing A MYSQL Table Structure
Option #1: Changing a MySQL Table StructureUsing the world_x database you installed in Module 1 and your MySQL Workbench, ...
ITS410 Changing A MYSQL Table Structure
Option #1: Changing a MySQL Table StructureUsing the world_x database you installed in Module 1 and your MySQL Workbench, create a new table named “independence” with the following attributes (columns):A field named “id” which has data type auto_increment,A field named “country_name” which has data type varchar(50), andA field named “independence_date” which has type “date.”After you create the table, run the following SQL command:INSERT INTO independence(country_name, independence_date)
VALUE (‘United States’,’1776-07-04’)Submit a 1-page Microsoft Word document that shows the following:The SQL command you used to create the “independence” table and a list of the rows in the “independence” table.Explain the purpose of the field named “id.” Why do you not have to include it in an insert statements? How would change the incrementing value to a number greater than one?
Similar Content
OSU Graph Implementation Data Structures & Algorithm Analysis Programming Exercise
In the assignment, you will develop a graph implementation and then use it to implement at least one graph algorithm. In p...
The Bitsgrace Institute Create a Simple Calorie Tracker in HTML Computer Coding Task
Design a website with basic HTML/CSS to calculate calories. There must be 2 files (I) index.html in which users can enter ...
Fisher College Data Analysis Life Expectancy Questions
Problem 6: Dataset: Life Expectancy
Dataset: Life Expectancy
Introduction: The above dataset gives life expectancy relat...
shop-online
You need to create a web application as your mini project. You have to go through all the stages of the development of su...
Create an HTML Code Web Designing Task
Please read section 1.1 this chapter, Chapter 1. HTML5: from documents to applications. We'll be referring back to this co...
GMU Model with Functional Dependencies and Database Program
In a text/word file, write out the “Model” of your tables in the following format:
TABLE_NAME(Key, otherElements, etc....
Algorithm Analysis
Q-1, Explain the differences between java.util.Vector and The main difference between java.util.Vector and java.util.Array...
Php Website Explanation 1
1. Create the database. This is attached in the folder. It is called the mycompany.sql file. The database name is called ...
Java Assignment 1
You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the a...
Related Tags
Book Guides
Frankenstein
by Mary Shelley
Becoming
by Michelle Obama
Fences
by August Wilson
Bridge to Terabithia
by Katherine Paterson
Narrative of the Life of Frederick Douglass
by Frederick Douglass
The Sixth Extinction An Unnatural History
by Elizabeth Kolbert
100 Side Hustles
by Chris Guillebeau
The Awakening
by Kate Chopin
Dune
by Frank Herbert
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
ARSD India Module 5 Pseudocode for Python Program Integration Project
OverviewModule 5 Assignment 1 features the design of pseudocode to support a
Python program that requires coordination b ...
ARSD India Module 5 Pseudocode for Python Program Integration Project
OverviewModule 5 Assignment 1 features the design of pseudocode to support a
Python program that requires coordination between the control structures
and modules of two programs. This lab asks you to write pseudocode that
plans the program’s logic before you write the program in Python in the
next assignment. You will turn in only the pseudocode for the two
modules for M5 Assignment 1.InstructionsWrite pseudocode for a Python program that makes 100 dice rolls with a
single 6-sided die and displays the number of times each side appeared.
Turn in the two modules for the pseudocode for the following
instructions. The following steps describe what we want our two program
modules to do.Before proceding, download the files dice.py, dog.py, dog_new.py and
M5Lab2dice_hist.py, as all will be referenced in your assignments this
week. To find these files, reference the folder Module
5>Assignments>Exercises. These files were also in the zip file you
downloaded in Module 1.Requirements for Your M5 Assignment 1 Pseudocode for Program IntegrationFor the first module, write the pseudocode to process these tasks: (Note: lines beginning with # are comments with tips for you)From the random module import randint to roll each die randomly
# in pseudocode, import a random function# the name is helpful for the next M5-2 assignment
Define a class called Dice
In Python, the syntax has a colon after it: class Dice():In pseudocode, you can specify it generally or be specific
Under the class declaration, list the attributes. Here are some tips:
# attributes are what we know about a single die (dice is plural)# self is the first attribute in Python and must always appear first# add a num_sides attribute and to set it to 6 for the 6 sides on the dice
Define a method for roll(self)
# it describes what happens when we roll a single die# in the code, it will look like this example
def __init__(self, dice_sides=6):# in pseudocode, we do not worry about the punctuation# just list it as part of your logic
Under roll(self), return a random int value between 1 and self.dice_sidesSave this file as M5Lab1ii - you can save it as MS Word or a text file.For the second module, write the pseudocode to complete these tasks:In the same M5Lab1ii file, start a second module below the first module.From a new dice module, import our Dice classCreate a 6-sided die by using assignment # for example: dice = Dice()Create an empty results listWrite a for statement that takes each roll_num in range() and rolls it 100 timesSet the value of result to dice.roll()For each roll and append it to the results list using your list’s
name and .append() with the variable for each dice roll inside the
parameters for append(). For example:
# yourlistname.append(result)
Refer to the name of your list within the print() parameter to print the results.100 dice rolls for the values 1-6 appear in a list on the Python shell.Save the two modules in M5Lab1ii - you can save it as MS Word or a text file.How to Complete Your M5 Assignment 1 Pseudocode for Program IntegrationSave your M5Lab1ii (ii= your initials). [example for someone with the initials cc: M5Lab1cc.py]Upload the M5Lab1ii document with two modules to M5 Assignment 1
Pseudocode for Python Program Integration Assignment Submission Folder.
See the Schedule in the Syllabus Module for due dates. Review the Rubric attached to the Assignment Submission Folder for grading information.
PHP Programming, computer science homework help
Create a Web site for tracking and documenting the process of weekly beehive inspections at the Happy Bee Apiary. Every so ...
PHP Programming, computer science homework help
Create a Web site for tracking and documenting the process of weekly beehive inspections at the Happy Bee Apiary. Every so often beekeepers open the bee hives to document the state of the hive and note any existing problems. On the main page, include a form with fields to record the information. The fields can only accept the data in the format indicated in the parenthesis.Inspector’s name (string)date of inspection (date)hive number (integers from 1 to 10)Queen (Y or N)Eggs (Y or N)Larva (Small or Large)Capped Brood (Y or N)Hive mood (Aggressive, Calm, Lethargic)Capped Queen Cells (Swarm, Supercedure, None)Empty Queen Cells (accept any integers)Infestations (hive beetles, wax moth, varroa mites)Problems (this is a comment field)Needs (OAT, QE, HS, BB)Clicking the Submit button should save the data in a the database created by your program. Include a link or a button for opening a document that displays inspection information in some nice organized manner. You can decide how you want to display that, as long as it looks professional.Create Using Notepad++ And Using Xampp
ENTD 261 AMU Week 2 Redirection Operator & Code Documentation Problems
Create a VBScript script (w2_james_shaw.vbs) that takes 3 parameters (numbers)1) Print the sum of three numbers2) Prin ...
ENTD 261 AMU Week 2 Redirection Operator & Code Documentation Problems
Create a VBScript script (w2_james_shaw.vbs) that takes 3 parameters (numbers)1) Print the sum of three numbers2) Print the average of the three numbersOptionally, you can save the results into a file “Results.txt” using the redirection operator or by creating the file in the script.4) Make sure to include comment block (flowerbox) in your code.5) Sample run:- C:\entd261>cscript.exe w2_sammy_abaza.vbs 2 3 5 > results.txtSubmit your week 2 work in w2_james_shaw.txt (Please save the file as a text file and upload the text file here for final review.) RequirementsPointsComment block (flowerbox) with Instructions on how to run the code with examples.20Code documentation and comments. 10Assignment code including creating command line parameter 70TOTAL POINTS100
ITCO 630 AIU Unit 3 Individual Project Advanced Queries Programming SQL
Create the following queries on the ITCO630_A database used in Unit 3 and save them all in a file called ITCO630_P5.SQL. P ...
ITCO 630 AIU Unit 3 Individual Project Advanced Queries Programming SQL
Create the following queries on the ITCO630_A database used in Unit 3 and save them all in a file called ITCO630_P5.SQL. Please note that you can execute individual queries in a query file by highlighting the lines that you want to execute before running the script. Remember to define what database to use with a USE statement. Complete the following:Using a join, get the full details of all the students who work on the mid-term exam assignment.Get the assignment names (duplicates eliminated) being worked on by students at Central University.Get the last names of all the students who are working on assignment A1.Get the student numbers and start dates of all the students with start dates equal to the earliest date.Insert yourself into the student table using the last five digits of your phone number as the student number and show yourself as attending Central University. Then show all the records in the student table.Delete yourself from the student table by matching your student number, and then show all the records in the student table.You should create a zip file called ITCO630_P5.ZIP with your query file (ITCO630_P5.SQL) included.Please submit your assignment.For assistance with your assignment, please use your text, Web resources, and all course materials.Grading CriteriaProject CriteriaExceeds: 90%–100%Very Good: 80%–89%Meets: 70%–79%Needs Improvement: Below 70%Content(75%)Response covers all topics indicated in the assignment and adds additional content.Response covers most topics indicated in the assignment.Response covers many of the topics indicated in the assignment.Response covers none to some of the topics indicated in the assignment.Effective Communication(10%)Demonstrates outstanding or exemplary application of written, visual, or oral skills. Demonstrates outstanding expression of topic, main idea, and purpose. Audience is addressed appropriately. Language clearly and effectively communicates ideas and content relevant to the assignment. Errors in grammar, spelling, and sentence structure are minimal. Organization is clear. Format is consistently appropriate to assignment. Presentation and delivery are confident and persuasive (where applicable). The writing was of collegiate level with no errors in spelling or grammar.Demonstrates very good written, visual, or oral skills. Demonstrates sound expression of topic, main idea, and purpose. Audience is usually addressed appropriately. Language does not interfere with the communication of ideas and content relevant to the assignment. Errors in grammar, spelling, and sentence structure are present, but do not distract from the message. Organization is apparent and mostly clear. Format is appropriate to assignment, but not entirely consistent. The writing was of collegiate level with two or less errors in spelling or grammar.Demonstrates acceptable written, visual, or oral skills. Demonstrates reasonable expression of topic, main idea, and purpose. Sometimes, audience is addressed appropriately. Language does not interfere with the communication of ideas and content relevant to the assignment. Errors in grammar, spelling, and sentence structure are present and may distract from the message. Organization is a bit unclear. Format is inconsistent. The writing was of collegiate level with several errors in spelling or grammar.Demonstrates inadequate or partially proficient application of written, visual, or oral skills. Demonstrates inadequate or partial expression of topic, main idea, and purpose. Audience is often not addressed appropriately. Language often impedes the communication of ideas and content relevant to the assignment. Errors in grammar, spelling, and sentence structure are frequent and often distract from meaning or presentation. Organization is inadequate, confusing, and distracting. The format is inadequate and obscures meaning. The writing was less than collegiate level with numerous errors in spelling or grammar.Supporting Analysis(15%)Analysis exceeds minimum requirements. Sources are used to support analysis, are appropriate, and are properly referenced.Basic analysis provided to support assertions. Sources are cited, appropriate, and properly referenced.Limited analysis provided to support assertions. Some sources are cited, appropriate, and properly referenced.No or inaccurate analysis, no sources are cited when needed, analysis and/or sources are not appropriate. When sources are used, they are not properly referenced.
ITS410 Changing A MYSQL Table Structure
Option #1: Changing a MySQL Table StructureUsing the world_x database you installed in Module 1 and your MySQL Workbench, ...
ITS410 Changing A MYSQL Table Structure
Option #1: Changing a MySQL Table StructureUsing the world_x database you installed in Module 1 and your MySQL Workbench, create a new table named “independence” with the following attributes (columns):A field named “id” which has data type auto_increment,A field named “country_name” which has data type varchar(50), andA field named “independence_date” which has type “date.”After you create the table, run the following SQL command:INSERT INTO independence(country_name, independence_date)
VALUE (‘United States’,’1776-07-04’)Submit a 1-page Microsoft Word document that shows the following:The SQL command you used to create the “independence” table and a list of the rows in the “independence” table.Explain the purpose of the field named “id.” Why do you not have to include it in an insert statements? How would change the incrementing value to a number greater than one?
Earn money selling
your Study Documents