Entries by Student

write my assignment 14386

outprint was not what I expected.  * Name: Octavia L. Wynn

 * Date: 18 February 2019

 *Purpose: The purpose of this program is to create a simple class to represent any household item 

*/

import java.util.Scanner;

public class Electronics {

 static Scanner sc= new Scanner (System.in);

 public Electronics(String string, boolean b) {

  // TODO Auto-generated constructor stub

 }

 public static void main(String[]args){

//create class Electronics with item name

//boolean to set the position of item

Electronics item1=new Electronics(“TV”,true);

System.out.println(item1.toString());

Electronics item2=new Electronics(“Surroundsoundspeakers”, true);

System.out.println(item2.toString());

Electronics item3=new Electronics(“Ipod”, false);

System.out.println(item3.toString());

 }

}

once you run it it comes out as

[email protected]

[email protected]

[email protected]

 

"Not answered?"


Get the Answer

write my assignment 27201

-Focusing on Intermediate Programming

1. When two or more functions have the same name, how does the compiler determine which one to use for a particular function call?

2. Write a void function called Order that takes two integer reference parameters a and b, and sets their values such that a is the smaller and b is the larger. Write another Order function that takes two double arguments. Write a short main function that calls both functions and demonstrates that they work. Cout statements should only appear in function main.

3. Rewrite your answer for the previous question, using a single Order template instead of two Order functions. If done correctly, the main() function should not change.

4. What value is returned by the call F(4) where F is the recursive function given by the following code? Explain how you arrived at your answer.

int F (int N)

{

     if (N == 0)

         return 1;

     else

         return (3 * F(N – 1));

}

5. Consider the following function:

int mystery(int number) {

        if (number == 1)

              return 1;

        else

              return number * mystery(number -1 );

}

a. What value does function mystery return when called with a value of 5?

b. What is the base case for function mystery?

6. Write an iterative (non-recursive) function that takes a number of years and a compound interest rate (as a percentage) and computes what a $1000 investment would have grown to in that many years at that interest. For example, given 3 for years and .1 (representing 10%) as the rate, the result would be $1331. Use a loop to calculate the result (don’t use the pow function).

7. a. Rewrite your function for the previous question as a recursive function.

b. Which function do you think is easier to read?

c. Which function do you find easier to write?

8. What does it mean to modularize a program? What are the benefits? Are there any penalties for modularization?

9. Consider a program that reads two whole numbers from the user, computes the greatest common divisor, and displays the results to the user. Write a program for this task where all code is within the main function.

10. a. Rewrite your solution to the previous question as a modular program, using additional functions as much as possible.

    b. Which version of the program is shortest? Which version is easiest to read–and why?

-Focusing on Intermediate Programming 1. When two or more functions have the same name, how does the compiler determine which one to use for a particular function call? Ans. Depending on the no. of…

 

"Not answered?"


Get the Answer

write my assignment 5537

Unit 7 Discussion – Audience – Discourse Communities

Discussion: Unit 7, 

Audience – Discourse Communities

Instructions:

Please complete the following steps for your discussion post and response.

Now that you are working of revising and polishing your rough draft, return to the idea of a discourse community.

Share the following information in your post

  • Topic
  • Thesis Statement
  • Identify three discourse communities that would be the audience for your research paper.
  • In your research, you are suggesting a change to an existing situation or providing a solution.
  • What are you proposing to change or solve?
  • Where could you go to get feedback on the proposed change or solution?

 

"Not answered?"


Get the Answer

write my assignment 25085

Write 6 page essay on the topic Why is there a demand for maritime transport What is a maritime transport system and who are the actors in maritime transport business.

All business documents and transactions recorded require a carefully done analysis and accounting for appropriate recognition. This is especially so since the business can be affected by the global recession of yester years. A documented life history of the maritime business transaction needs to be evaluated. The design of the ship plays a critical role as part of an acquisition arrangement (Pallis, 2007).

There are many objectives attained through sea trade. Issues of freight rates have to be determined in the maritime transport. The market return of this kind of transport must be determined. This ought to be achieved so that a critical cost benefit program can be instituted (Pallis, 2007). Sea mode of transport is common in many nations across the world. Bulk goods dominate this market. With the emergence of aviation, passengers are not common in the mode of transport. Its considerable advantage over the air is that it is a cheap mode of transport. It is used over the sea, canals, lakes and even across the river but it is slow compared to other modes hence it is not friendly to perishable goods (Force, 2006).

The reliance on water has been directly unpractical for nations that are land locked. Being land locked means that the country connection to territorial waters is minimal. The European colonial powers were among the first nations to establish connections in the marine trade. This achievement dates back since 1450 AD with the opening up of the Atlantic, Pacific and the Indian Ocean that brought about the expansive sea trade. This brought about the element of voyages for discovery by that time.

The trend has continued in a progressive way. This positive movement in the trend shows a realized economic gain because of this trade. A survey carried out in the year 2006 showed that 86% in terms of volume and 70.1% in terms of value of the global trade was water born. The capital outlay in the investment forms the greatest challenge with the maintenance cost

 

"Not answered?"


Get the Answer