Description
how come my php code doesn't show the xml data?
<?php
$request_url = "http://alexishoustonmusic.tumblr.com/api/read?start=0&num=1&type=text";$xml = simplexml_load_file($request_url);$post = $xml->posts->post->{‘regular-body’};
echo '<h1>'.$post.'</h1>';?>
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
Hey, it looks like you are loading an empty feed source. What kind of feed are you trying to get? Did you get these codes online? Are you trying to print out the Trumblr feed? I can write some new codes for you.
Completion Status:
100%
Review
Review
Anonymous
Great content here. Definitely a returning customer.
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
CPT 200 Ashford University Number Analysis Program using Python Code Project
For this interactive assignment, you will design a program that asks the user to enter a series of 20 numbers. The program ...
CPT 200 Ashford University Number Analysis Program using Python Code Project
For this interactive assignment, you will design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in a list and then display the following data:The lowest number in the list.The highest number in the list.The sum of the numbers in the list.Once you have completed the program, take a screen shot of the completed functionality (including the input and the output) and save it in a Word document, along with the script.In your initial post,Attach your Word document.Describe your process in developing the program.
Zip Code Entity Business Rule Zip Code and EntityStudent Schema ERD HW
Instructions are attached. They should be everything that is needed. If there any questions please do not hesitate to ask
Zip Code Entity Business Rule Zip Code and EntityStudent Schema ERD HW
Instructions are attached. They should be everything that is needed. If there any questions please do not hesitate to ask
CMPSC 211 assignment 6 room scheduler
The assignment discription is in the uploaded files underneath are some supporting materials. There are multiple videos th ...
CMPSC 211 assignment 6 room scheduler
The assignment discription is in the uploaded files underneath are some supporting materials. There are multiple videos that I can't upload through studypool, you can give me a email address so that I can send you all the Programming Assignment 6 Test ScriptThis is a scenario that you can use to test Programming Assignment 6. It is not an exhaustive test, but tests almost all of the conditions your program should handle.When you submit your PA 6, all the tables in the database should be empty except the Rooms Table and the Dates Table. The Rooms table should contain three rooms, such as 101 with 60 seats, 102 with 40 seats, and 201 with 20 seats, which will be used in this script. The Dates table should contain two dates, which will be expressed as date1 and date2 in this script.This scenario assumes that is the case.The faculty names will be a, b, c, d, etc. to simplify input and this script.The dates will be real dates but will be represented in this script by the symbolic names date1 and date2.Script:-Add faculty aNote: after adding a faculty, the faculty should appear in the drop down list on the Reserve panel.-Add faculty b-Add faculty c-Add faculty d-Add faculty e-Reserve a, date1, 20a reserves room 201-Reserve b, date1, 50b reserves room 101-Reserve c, date1, 50c gets waitlisted-Reserve d, date1, 40d reserves room 102-Reserve e, date1, 20e gets waitlisted-Reserve c, date2, 20c reserves room 201-Status date1 a reserved 201 b reserved 101 d reserved 102-Status date2 c reserved 201-Status Waitlist c date1 50 e date1 20General conditions of testing:the results of any action are displayed to the user immediately after the action is performed without the user needing to check Status.All affected combo boxes are updated immediately after each action is performed.Creating a timestamp field in JavaThe following is sample code to insert a Timestamp field into a table column:// declare a timestamp field. java.sql.Timestamp currentTimestamp = new java.sql.Timestamp(Calendar.getInstance().getTime().getTime());// use the timestamp in an insert to the wait list. getWaitList = dbConnection.prepareStatement("insert into waitlist (flight, day, customerName, timeStamp) values (?, ?, ?)"); getWaitList.setString(1, entry.getFlightName()); getWaitList.setString(2, entry.getDay()); getWaitList.setString(3, entry.getCustomerName()); getWaitList.setTimestamp(4, currentTimestamp); count = getWaitList.executeUpdate(); Make sure the column in the database table is specified as Timestamp and not Time.
Module 4 Assignment 2: Pseudocode & Python with Lists
OverviewModule 4 Assignment 2 features designing a program using pseudocode
and then completing the program in Python us ...
Module 4 Assignment 2: Pseudocode & Python with Lists
OverviewModule 4 Assignment 2 features designing a program using pseudocode
and then completing the program in Python using a list. M4Lab2 asks you
to write a Drag to Draw Pygame program using a list for the colors. Open
the M4Lab2ii.py program in IDLE and save it as M4Lab2ii.py with your
initials instead of ii. Each lab asks you to write pseudocode that plans the program's logic
before you write the program in Python and to turn in three things: 1)
the pseudocode, 2) a screenshot of the output, and 3) the Python
program.InstructionsPseudocode and Python Program with StringsM4Lab2.txt has some of the code provided for a Mortgage Loan
Calculator. In your lab, write the rest of the code to perform the
following tasks:Open the file called M4Lab2ii.py linked below these instructions in your M4 Content module in IDLE.Save as M4Lab2ii.py. Replace ii with your initials. [example for someone with the initials cc: M3Lab1cc.py]Complete Steps 1-6 within the M4Lab2 code’s comments.Run your program and draw using the left and right cursor buttons.If available, also draw with the center cursor buttons, also called the scroll wheel.Test your program with different colors and take a screenshot of your drawing.Save your pseudocode as M4Lab2ii.docx. Replace ii with your initials. Insert a screenshot of your program output in the pseudocode’s Word file.How to Complete Your M4 Assignment 2 Pseudocode & Python Program with StringsWrite your pseudocode and save it as M4Lab2ii.docx. Replace ii with your initials. Write your program and save it as M4Lab2ii.py. Replace ii with your initials. Take a screenshot of your program’s output and Insert it in M4Lab2ii.docxUpload both M4 Lab documents (Word and Python) to Upload to M4
Assignment 2 Pseudocode & Python Program 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.
Track of the customer’s information program
Part 1
You are tasked with writing a new program for your company that keeps track of the customer’s information and his ...
Track of the customer’s information program
Part 1
You are tasked with writing a new program for your company that keeps track of the customer’s information and his or her current bill. The company wants the name, address, phone number, and balance to be stored for each customer.
This program will demonstrate the following:
How to use a class to organize data
How to use methods to access the data of a class
How to create objects from a class
Solving the Problem
Step 1
The first step in designing a class to organize data is to determine what data you want to store in the class and what methods you want to use to modify the data. You have been given the required data items, but what methods do you want to include? It is common to create accessor methods for each data item in the class.
Step 2
The next step is to create the accessor methods of the class. These methods can be used to simply set the values of the data items or even mold how the data look. In the phone number’s accessor method, a specific layout of the number is required to be set, and the balance accessor does not allow a negative balance to be entered.
Step 3
The next step is to create a list of customers in the program. A loop is used to add 5 customers. If bad input is entered into the phone or balance, then the program will continue to ask for those data.
Step 4
You can now write code to find the customer information for all of the customers or individual customers in the list.
Documentation Guidelines:
Use good programming style (e.g., indentation for readability) and document each of your program parts with the following items (the items shown between the '<' and '>' angle brackets are only placeholders. You should replace the placeholders and the comments between them with your specific information). Your cover sheet should have some of the same information, but what follows should be at the top of each program's sheet of source code. Some lines of code should have an explanation of what is to be accomplished, this will allow someone supporting your code years later to comprehend your purpose. Be brief and to the point. Start your design by writing comment lines of pseudocode. Once that is complete, begin adding executable lines. Finally run and test your program.
Deliverable(s):
Your deliverable should be a Word document with screenshots showing the source code and running results, and discuss the issues that you had for this project related to AWS and/or Python IDE and how you solved them for all of the programs listed above as well as the inputs and outputs from running them. Submit a cover sheet with the hardcopy of your work.
Part 2
You work for a dealership that deals in all kinds of vehicles. Cars, Trucks, Boats, and so forth need to be inventoried in the system. The inventory must be detailed so that it could be searched based on number of doors, engine type, color, and so on.
This program will demonstrate the following:
How to create a base class
How to extend a based class to create new classes
How to use derived classes
Solving the Problem
Step 1
The first thing you have to do is decide what attributes and aspects of all vehicle types will be shared. Once this decision is made, a base class can be created to be shared by the child classes later in the program. In this case, the color, horsepower, engine type, and price will be attributes shared by all vehicles. Included is a method that will be shared by all children to set the attributes that are common to them all.
Step 2
Given the base class, there are some aspects that need to be included for each vehicle type. Some have doors, and some do not. Some have length that matters, while most do not care. Some might have more or fewer wheels than others. These more specific classes take advantage of the common attributes while adding their own.
Step 3
After defining the classes, it is necessary to create objects of each type to add data to them. Although an object of type vehicle can be created, it is so generic that you really could not say what type of vehicle it was. The more specific objects will have the attributes that make them different from the other child classes.
Documentation Guidelines:
Use good programming style (e.g., indentation for readability) and document each of your program parts with the following items (the items shown between the '<' and '>' angle brackets are only placeholders. You should replace the placeholders and the comments between them with your specific information). Your cover sheet should have some of the same information, but what follows should be at the top of each program's sheet of source code. Some lines of code should have an explanation of what is to be accomplished, this will allow someone supporting your code years later to comprehend your purpose. Be brief and to the point. Start your design by writing comment lines of pseudocode. Once that is complete, begin adding executable lines. Finally run and test your program.
Deliverable(s):
Your deliverable should be a Word document with screenshots showing the source code and running results, and discuss the issues that you had for this project related to AWS and/or Python IDE and how you solved them for all of the programs listed above as well as the inputs and outputs from running them. Submit a cover sheet with the hardcopy of your work.
part 3
Problem
You are writing software for a company’s human resources department. As part of the requirements, it would like to have a function that calculates the salary of an individual based on the position he or she holds, years of service, and hours worked.
This program will demonstrate the following:
How to create an abstract class,
How to overload a method,
How to use polymorphism to call functions on similar objects.
Solving the Problem
Step 1
The first thing that you must determine is what attributes are common to all employees and what methods they can share. Can salary be easily calculated by the same method without some additional input from the user? By using polymorphism, you can make one method that calculates salaries for different groups. First, determine the base class and what method needs to be implemented by the child classes. By making the calcSalary() method abstract, it will be a required method of the child classes.
Step 2
You can then define the child classes that inherit the shared attributes from the base Employee class but also inherit the requirement that they implement from the calcSalary() method. Each employee type will have a different set of attributes and a different method of calculating the salary, but the same method call will be used to calculate it.
Step 3
You can now create a list to hold all employee types and populate it.
Step 4
Because you used polymorphism in the classes, you can now use one loop to calculate and output the salaries of the employees.
Documentation Guidelines:
Use good programming style (e.g., indentation for readability) and document each of your program parts with the following items (the items shown between the '<' and '>' angle brackets are only placeholders. You should replace the placeholders and the comments between them with your specific information). Your cover sheet should have some of the same information, but what follows should be at the top of each program's sheet of source code. Some lines of code should have an explanation of what is to be accomplished, this will allow someone supporting your code years later to comprehend your purpose. Be brief and to the point. Start your design by writing comment lines of pseudocode. Once that is complete, begin adding executable lines. Finally run and test your program.
Deliverable(s):
Your deliverable should be a Word document with screenshots showing the source code and running results, and discuss the issues that you had for this project related to AWS and/or Python IDE and how you solved them for all of the programs listed above as well as the inputs and outputs from running them. Submit a cover sheet with the hardcopy of your work.
Similar Content
Brookhaven College Day of Week Java Program Project
This is two separated program. I have attached.Here is the link for "Currency Code Lookup":https://s3.amazonaws.com/blackb...
Short Game Programming Project
Using Twine or Bitsy, create a short game that should be able to be played in 5 minutes or less....
Anne Arundel Community College Quadrilateral Java Class Program
The first document will be your UML class diagram of the class Quadrilateral.The second document will be your Quadrilat...
The U Substitution Method Questions
Lab 04 - The u-Substitution Method
Table of contents
Overview
Important Commands Introduced in this Lab
Related Course Mat...
Domain Issue
I want to move my WordPress site from the subdomain to the root domain but I am having some difficulties. How can I go abo...
PHP And HTML Language A Data Analytics Project Help
I have a shopping websites made with PHP and HTML language and have Database working in XAMPP server I need to Create a d...
Dataset Analysis Homework Done
The success of a company is determined by how well the employees are dedicated t work and how effective and efficient the ...
Problems Using Combinations Probability
Each of the following problems assumes that a state's license plates consist of a certain 1) How many different plates can...
My Vec.document
I modified the existing My_vec class. In order to work you have to put My_vec.h and My_vec.cpp in...
Related Tags
Book Guides
Girl Stop Apologizing
by Rachel Hollis
The Sixth Extinction An Unnatural History
by Elizabeth Kolbert
Don Quixote
by Miguel de Cervantes
Macbeth
by William Shakespeare
White Fang
by Jack London
Dr Jekyll And Mr Hyde
by Robert Louis Stevenson
Les Miserables
by Victor Hugo
The Good Earth
by Pearl S. Buck
The Rhythm Section
by Mark Burnell
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
CPT 200 Ashford University Number Analysis Program using Python Code Project
For this interactive assignment, you will design a program that asks the user to enter a series of 20 numbers. The program ...
CPT 200 Ashford University Number Analysis Program using Python Code Project
For this interactive assignment, you will design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in a list and then display the following data:The lowest number in the list.The highest number in the list.The sum of the numbers in the list.Once you have completed the program, take a screen shot of the completed functionality (including the input and the output) and save it in a Word document, along with the script.In your initial post,Attach your Word document.Describe your process in developing the program.
Zip Code Entity Business Rule Zip Code and EntityStudent Schema ERD HW
Instructions are attached. They should be everything that is needed. If there any questions please do not hesitate to ask
Zip Code Entity Business Rule Zip Code and EntityStudent Schema ERD HW
Instructions are attached. They should be everything that is needed. If there any questions please do not hesitate to ask
CMPSC 211 assignment 6 room scheduler
The assignment discription is in the uploaded files underneath are some supporting materials. There are multiple videos th ...
CMPSC 211 assignment 6 room scheduler
The assignment discription is in the uploaded files underneath are some supporting materials. There are multiple videos that I can't upload through studypool, you can give me a email address so that I can send you all the Programming Assignment 6 Test ScriptThis is a scenario that you can use to test Programming Assignment 6. It is not an exhaustive test, but tests almost all of the conditions your program should handle.When you submit your PA 6, all the tables in the database should be empty except the Rooms Table and the Dates Table. The Rooms table should contain three rooms, such as 101 with 60 seats, 102 with 40 seats, and 201 with 20 seats, which will be used in this script. The Dates table should contain two dates, which will be expressed as date1 and date2 in this script.This scenario assumes that is the case.The faculty names will be a, b, c, d, etc. to simplify input and this script.The dates will be real dates but will be represented in this script by the symbolic names date1 and date2.Script:-Add faculty aNote: after adding a faculty, the faculty should appear in the drop down list on the Reserve panel.-Add faculty b-Add faculty c-Add faculty d-Add faculty e-Reserve a, date1, 20a reserves room 201-Reserve b, date1, 50b reserves room 101-Reserve c, date1, 50c gets waitlisted-Reserve d, date1, 40d reserves room 102-Reserve e, date1, 20e gets waitlisted-Reserve c, date2, 20c reserves room 201-Status date1 a reserved 201 b reserved 101 d reserved 102-Status date2 c reserved 201-Status Waitlist c date1 50 e date1 20General conditions of testing:the results of any action are displayed to the user immediately after the action is performed without the user needing to check Status.All affected combo boxes are updated immediately after each action is performed.Creating a timestamp field in JavaThe following is sample code to insert a Timestamp field into a table column:// declare a timestamp field. java.sql.Timestamp currentTimestamp = new java.sql.Timestamp(Calendar.getInstance().getTime().getTime());// use the timestamp in an insert to the wait list. getWaitList = dbConnection.prepareStatement("insert into waitlist (flight, day, customerName, timeStamp) values (?, ?, ?)"); getWaitList.setString(1, entry.getFlightName()); getWaitList.setString(2, entry.getDay()); getWaitList.setString(3, entry.getCustomerName()); getWaitList.setTimestamp(4, currentTimestamp); count = getWaitList.executeUpdate(); Make sure the column in the database table is specified as Timestamp and not Time.
Module 4 Assignment 2: Pseudocode & Python with Lists
OverviewModule 4 Assignment 2 features designing a program using pseudocode
and then completing the program in Python us ...
Module 4 Assignment 2: Pseudocode & Python with Lists
OverviewModule 4 Assignment 2 features designing a program using pseudocode
and then completing the program in Python using a list. M4Lab2 asks you
to write a Drag to Draw Pygame program using a list for the colors. Open
the M4Lab2ii.py program in IDLE and save it as M4Lab2ii.py with your
initials instead of ii. Each lab asks you to write pseudocode that plans the program's logic
before you write the program in Python and to turn in three things: 1)
the pseudocode, 2) a screenshot of the output, and 3) the Python
program.InstructionsPseudocode and Python Program with StringsM4Lab2.txt has some of the code provided for a Mortgage Loan
Calculator. In your lab, write the rest of the code to perform the
following tasks:Open the file called M4Lab2ii.py linked below these instructions in your M4 Content module in IDLE.Save as M4Lab2ii.py. Replace ii with your initials. [example for someone with the initials cc: M3Lab1cc.py]Complete Steps 1-6 within the M4Lab2 code’s comments.Run your program and draw using the left and right cursor buttons.If available, also draw with the center cursor buttons, also called the scroll wheel.Test your program with different colors and take a screenshot of your drawing.Save your pseudocode as M4Lab2ii.docx. Replace ii with your initials. Insert a screenshot of your program output in the pseudocode’s Word file.How to Complete Your M4 Assignment 2 Pseudocode & Python Program with StringsWrite your pseudocode and save it as M4Lab2ii.docx. Replace ii with your initials. Write your program and save it as M4Lab2ii.py. Replace ii with your initials. Take a screenshot of your program’s output and Insert it in M4Lab2ii.docxUpload both M4 Lab documents (Word and Python) to Upload to M4
Assignment 2 Pseudocode & Python Program 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.
Track of the customer’s information program
Part 1
You are tasked with writing a new program for your company that keeps track of the customer’s information and his ...
Track of the customer’s information program
Part 1
You are tasked with writing a new program for your company that keeps track of the customer’s information and his or her current bill. The company wants the name, address, phone number, and balance to be stored for each customer.
This program will demonstrate the following:
How to use a class to organize data
How to use methods to access the data of a class
How to create objects from a class
Solving the Problem
Step 1
The first step in designing a class to organize data is to determine what data you want to store in the class and what methods you want to use to modify the data. You have been given the required data items, but what methods do you want to include? It is common to create accessor methods for each data item in the class.
Step 2
The next step is to create the accessor methods of the class. These methods can be used to simply set the values of the data items or even mold how the data look. In the phone number’s accessor method, a specific layout of the number is required to be set, and the balance accessor does not allow a negative balance to be entered.
Step 3
The next step is to create a list of customers in the program. A loop is used to add 5 customers. If bad input is entered into the phone or balance, then the program will continue to ask for those data.
Step 4
You can now write code to find the customer information for all of the customers or individual customers in the list.
Documentation Guidelines:
Use good programming style (e.g., indentation for readability) and document each of your program parts with the following items (the items shown between the '<' and '>' angle brackets are only placeholders. You should replace the placeholders and the comments between them with your specific information). Your cover sheet should have some of the same information, but what follows should be at the top of each program's sheet of source code. Some lines of code should have an explanation of what is to be accomplished, this will allow someone supporting your code years later to comprehend your purpose. Be brief and to the point. Start your design by writing comment lines of pseudocode. Once that is complete, begin adding executable lines. Finally run and test your program.
Deliverable(s):
Your deliverable should be a Word document with screenshots showing the source code and running results, and discuss the issues that you had for this project related to AWS and/or Python IDE and how you solved them for all of the programs listed above as well as the inputs and outputs from running them. Submit a cover sheet with the hardcopy of your work.
Part 2
You work for a dealership that deals in all kinds of vehicles. Cars, Trucks, Boats, and so forth need to be inventoried in the system. The inventory must be detailed so that it could be searched based on number of doors, engine type, color, and so on.
This program will demonstrate the following:
How to create a base class
How to extend a based class to create new classes
How to use derived classes
Solving the Problem
Step 1
The first thing you have to do is decide what attributes and aspects of all vehicle types will be shared. Once this decision is made, a base class can be created to be shared by the child classes later in the program. In this case, the color, horsepower, engine type, and price will be attributes shared by all vehicles. Included is a method that will be shared by all children to set the attributes that are common to them all.
Step 2
Given the base class, there are some aspects that need to be included for each vehicle type. Some have doors, and some do not. Some have length that matters, while most do not care. Some might have more or fewer wheels than others. These more specific classes take advantage of the common attributes while adding their own.
Step 3
After defining the classes, it is necessary to create objects of each type to add data to them. Although an object of type vehicle can be created, it is so generic that you really could not say what type of vehicle it was. The more specific objects will have the attributes that make them different from the other child classes.
Documentation Guidelines:
Use good programming style (e.g., indentation for readability) and document each of your program parts with the following items (the items shown between the '<' and '>' angle brackets are only placeholders. You should replace the placeholders and the comments between them with your specific information). Your cover sheet should have some of the same information, but what follows should be at the top of each program's sheet of source code. Some lines of code should have an explanation of what is to be accomplished, this will allow someone supporting your code years later to comprehend your purpose. Be brief and to the point. Start your design by writing comment lines of pseudocode. Once that is complete, begin adding executable lines. Finally run and test your program.
Deliverable(s):
Your deliverable should be a Word document with screenshots showing the source code and running results, and discuss the issues that you had for this project related to AWS and/or Python IDE and how you solved them for all of the programs listed above as well as the inputs and outputs from running them. Submit a cover sheet with the hardcopy of your work.
part 3
Problem
You are writing software for a company’s human resources department. As part of the requirements, it would like to have a function that calculates the salary of an individual based on the position he or she holds, years of service, and hours worked.
This program will demonstrate the following:
How to create an abstract class,
How to overload a method,
How to use polymorphism to call functions on similar objects.
Solving the Problem
Step 1
The first thing that you must determine is what attributes are common to all employees and what methods they can share. Can salary be easily calculated by the same method without some additional input from the user? By using polymorphism, you can make one method that calculates salaries for different groups. First, determine the base class and what method needs to be implemented by the child classes. By making the calcSalary() method abstract, it will be a required method of the child classes.
Step 2
You can then define the child classes that inherit the shared attributes from the base Employee class but also inherit the requirement that they implement from the calcSalary() method. Each employee type will have a different set of attributes and a different method of calculating the salary, but the same method call will be used to calculate it.
Step 3
You can now create a list to hold all employee types and populate it.
Step 4
Because you used polymorphism in the classes, you can now use one loop to calculate and output the salaries of the employees.
Documentation Guidelines:
Use good programming style (e.g., indentation for readability) and document each of your program parts with the following items (the items shown between the '<' and '>' angle brackets are only placeholders. You should replace the placeholders and the comments between them with your specific information). Your cover sheet should have some of the same information, but what follows should be at the top of each program's sheet of source code. Some lines of code should have an explanation of what is to be accomplished, this will allow someone supporting your code years later to comprehend your purpose. Be brief and to the point. Start your design by writing comment lines of pseudocode. Once that is complete, begin adding executable lines. Finally run and test your program.
Deliverable(s):
Your deliverable should be a Word document with screenshots showing the source code and running results, and discuss the issues that you had for this project related to AWS and/or Python IDE and how you solved them for all of the programs listed above as well as the inputs and outputs from running them. Submit a cover sheet with the hardcopy of your work.
Earn money selling
your Study Documents