1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Fittoniya [83]
3 years ago
14

Write a method for the Customer class that that will return a string representing a bill notice when passed a double value repre

senting an amount due. For example, if the customer has name "Jeremiah", has account number 3, and has amount due 50.50, the method should return a string in the following format. Jeremiah, account number 3, please pay $50.50 Write the method below. Your implementation must conform to the example above.
Computers and Technology
1 answer:
Nesterboy [21]3 years ago
5 0

Answer:

Following are the method definition to this question:

public String notice_bill(double amount) //defining method

{

return this.name+", account number "+this.currAccNum+", please pay $"+amt;  //return value.

}

Explanation:

In the given question some information is missing, that is example So, method definition to this question can be described as follows:

  • In the above method definition a string method "notice_bill" is declared, which accepts a double value in its parameter, that is "amount".
  • Inside the method, this keyword is used, that hold values and return its value as a message.  
You might be interested in
Some attackers might create a peer-to-peer network that connects a wireless device directly to another wireless device, such as
julia-pushkina [17]

Answer:

ad-hoc network

Explanation:

Ad-hoc network is a type of network that is setup to allow computers to talk to each other without the use of a router or server. The computers communicate directly with each other. In windows operating system ad-hoc is implemented as a communication mode which can be turned on.

4 0
3 years ago
Compare Fibonacci (recursion vs. bottom up)
ipn [44]

Answer:

C++ code explained below

Explanation:

#include<bits/stdc++.h>

#include <iostream>

using namespace std;

int FiboNR(int n)

{

int max=n+1;

int F[max];

F[0]=0;F[1]=1;

for(int i=2;i<=n;i++)

{

F[i]=F[i-1]+F[i-2];

}

return (F[n]);

}

int FiboR(int n)

{

if(n==0||n==1)

return n;

else

return (FiboR(n-1)+FiboR(n-2));

}

int main()

{

long long int i,f;

double t1,t2;

int n[]={1,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75};

cout<<"Fibonacci time analysis ( recursive vs. non-recursive "<<endl;

cout<<"Integer FiboR(seconds) FiboNR(seconds) Fibo-value"<<endl;

for(i=0;i<16;i++)

{

clock_t begin = clock();

f=FiboR(n[i]);

clock_t end = clock();

t1=double(end-begin); // elapsed time in milli secons

begin = clock();

f=FiboNR(n[i]);

end = clock();

t2=double(end-begin);

cout<<n[i]<<" "<<t1*1.0/CLOCKS_PER_SEC <<" "<<t2*1.0/CLOCKS_PER_SEC <<" "<<f<<endl; //elapsed time in seconds

}

return 0;

}

7 0
3 years ago
(Game Design) A function that contains arithmetic symbols ( e.g. +, &lt;, =/) is an operator.
Sedbober [7]

True

Because operators are the symbols that show the action.Just like  

2 + 5.

'+' is the operator and 2,5 is the operand.

4 0
3 years ago
If no help file is available for a particular dialog box, then, when you press the F1 key, the ____ opens.
nadya68 [22]

B. main Help window. Try pressing F1 in google chrome. A google support link will show up.

6 0
3 years ago
Cloud computing
Lunna [17]

Answer:

TRUE

Explanation:

Cloud computing is the delivery of different services through the Internet in which an individual obtain computing power and software as service over a network. These resources include tools and applications like data storage, servers, databases, networking, and software. Rather than keeping files on a hard drive or local storage device, cloud-based storage makes it possible to save them to a remote database over a network in which someone can easily access it at anytime.

Cloud computing is a self-service Internet.

4 0
4 years ago
Read 2 more answers
Other questions:
  • Create an application for a library and name it FineForOverdueBooks. TheMain() method asks the user to input the number of books
    9·1 answer
  • Does the following program represent an algorithm in the strict sense? Why or why not? Count=0 while count (count ! =5): count =
    13·1 answer
  • A main document in a mail merge contains data, such as names and addresses.
    12·1 answer
  • A clock is reading 10:27:54.0 (hr:min:sec) when it is discovered to be 4 seconds fast. Explain why it is undesirable to set it b
    9·1 answer
  • Arrange the binary number in increasing order of their arithmetic output in the decimal number system ?
    9·1 answer
  • I’ll mark who ever is first or last Doesn’t matter JUST PLEASE HELP
    8·1 answer
  • Match the image to the view type in a presentation program. scroll bar tool bar status bar menu bar provides an array of buttons
    10·2 answers
  • Given that<br>f(x) = 5x +3.<br>Find f (4)​
    15·2 answers
  • ## Inputs
    15·1 answer
  • Its not letting me change my email, any way to fix this? Must include steps and how to fix this. (I am using a school email) ANS
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!