A method signature for a method consists of all elements of the method except the body. That is, a method signature consists of the privacy, (non-)static, return datatype, method name, and formal parameters. Consider the ceiling method as an example.
public static int ceiling (double num)
{
return num <= 0 ? (int) num: (int) num + 1;
}
The method signature of the ceiling method is the first line of the method: public static int ceiling (double num). In this example, we note that ceiling is static because it is a standalone method and does not require an object to invoke (since we are not acting on an instance of a class).
For parts a - d, give the method signature described by the scenario.
a) A method in class String that returns the reversed version of the current String.
b) A method that returns the maximum of two given integers.
c) A method that returns true or false if the input integer is an even number.
d) A default constructor for class Table.

Answers

Answer 1
To be honest I feel like it’s B that’s looks and seems the most correct to me

Related Questions

Consider the key success factors of B2C. Is it only IT? What is most important?​

Answers

Jsjfu zzer jsusuc888 kksss

8. What's the output of this code?
1
def sum(x, y):
return(x+y)
print(sum (sum(1,2), sum(3,4)))

Answers

Answer:

10

Explanation:

[tex]sum(1,2) = 3\\sum(3,4) = 7\\sum(3,7) = 10\\[/tex]

Basically, sum((1+2) + (3+4)) = sum(3,7) = (3+7) = 10

Name 4 components of a components system​

Answers

The four main components are main memory, arithmetic and logic unit, control unit, and input/output (I/O). :)

Describe a problem you’ve solved or a problem you’d like to solve. It can be an intellectual challenge, a research query, an ethical dilemma — anything of personal importance, no matter the scale. Explain its significance to you and what steps you took or could be taken to identify a solution.

Answers

Answer:

Explanation:

I run an online e-commerce store and lately its been very difficult keeping track of customer detail, incoming orders, keyword generation etc. One solution that I thought about would be an application that controls all of that for me. In order to accomplish this I would first need to design and create a GUI that contains all of the necessary buttons and displays for the information. Then I would need to code a webscraper using Python to grab all of the data from e-commerce store as soon as it becomes available, organize it, and display it within the GUI.

Mathilda’s computer has been running slow the past few months. She observed that the system unit becomes too hot. What does she need to do to fix this issue?
A.
She needs to make sure that the keyboard and mouse are properly connected.
B.
She needs to install antivirus software.
C.
She needs to delete unwanted files from her hard disk.
D.
She needs to clean the dust from the system unit fan.

Answers

It is D it may cause your computer to get hot because of the dust from the unit fan :/

Answer:

The answer is D

Explanation:

Consider the following incomplete method. Method findNext is intended to return the index of the first occurrence of the value val beyond the position start in array arr. I returns index of first occurrence of val in arr /! after position start; // returns arr.length if val is not found public int findNext (int[] arr, int val, int start) int pos = start + 1; while condition '/ ) pos++ return pos; For example, consider the following code segment. int [ ] arr {11, 22, 100, 33, 100, 11, 44, 100); System.out.println(findNext (arr, 100, 2)) The execution of the code segment should result in the value 4 being printed Which of the following expressions could be used to replace /* condition */ so that findNext will work as intended?
(A) (posarr.length) &&(arr [pos]- val)
(B) (arr [pos] != val) && (pos < arr. Îength)
(C) (pos (D) (arr [pos} == val) && (pos < arr. length)
(E) (pos

Answers

Answer:

B)

Explanation:

The while loop runs as long as two conditions are satisfied, as indicated by the && logical operator.

The first condition- arr[pos] != val

checks to see if the value in the array index, pos, is equal to the given value and while it is not equal to it, the second condition is checked.

The second condition(pos < are.length), checks to see if the index(pos) is less than the length of the array. If both conditions are true, the program execution enters the while loop.

The while loop is only terminated once arr[pos] == Val or pos == arr.length.

what is file system manipulation​

Answers

Answer:

Program requires to read a file or write a file. Operating system gives the permission to the program for operation on file. ... The Operating System provides an interface to the user to create/delete files and directories. The Operating System provides an interface to create the backup of file system.

what is this....... Iam booking train to patna. ​

Answers

i agree w the person above

Iconic designs are inspirational and are often copied.

True

False

Answers

This is absolutely true. A shining example of this is with smartphones. Before Apple introduced the world to the iPhone, most smartphones had actual keyboards, zero touchscreen capabilities, could barely browse the internet, and had very small displays. After the iPhone was released in 2007, companies immediately scrambled to come out with phones that looked uncannily similar to Apple's. Why? Because Apple's phone was designed well. It's pretty amazing how immediate the shift was. In fact, I recomend you look up "Smartphones before and after iPhone" online. It's pretty cool. Here's an image example: https://www.redmondpie.com/image-showing-phones-before-and-after-iphone-x-revisits-how-android-market-still-tends-to-copy-iphone/

Hope this helps!

10.11 LAB: Pet information (derived classes) The base class Pet has private data members petName, and petAge. The derived class Dog extends the Pet class and includes a private data member for dogBreed. Complete main() to: create a generic pet and print information using PrintInfo(). create a Dog pet, use PrintInfo() to print information, and add a statement to print the dog's breed using the GetBreed() function.

Answers

Answer:

Answered below.

Explanation:

//Program in Java

Class Test{

public static void main (String[] args){

//create a pet object

Pet pet = new Pet();

//call pet object's printInfo method

pet.printInfo();

//create a new Dog object

Dog dog = new Dog();

//dog can access the printInfo method of the Pet class because it derives from it

dog.printInfo();

//dog can also call it's private method.

dog.getBreed();

}

}

Calculate The Average of Grades Instructions:
Please read the following problem carefully. You will then logon on to https://www.draw.io/to create a professional diagram. You will put all titles, labels, and save your work using the information below. Please follow the directions:
Destini would like to get a better understanding of her grades in all of her college courses before Spring Break. Instead of using a calculator and paper to calculate her grade, she decided to design a program. She will design a program that will ask her to enter her course name and the number of grades in her grade book. The program will then Read the number of Grades based on what was entered by her, Add up all the Grades, Calculate the Average, and Display Course Name and the Average to Screen. It is important to consider that the number of grades will be different for each course. Using Repetition Control, please design this program.
1. Please Create Flowchart using Draw.10 and Simple Flowchart symbols only (Draw.IO)
2. Pseudocode.
Your unique Flowchart must have the following (See Example Here):
A. Name, Date, and class Name [Top Left of Flowchart)
B. A Title of the Flowchart in Bold [Centered at the top of your flowchart)
C. A Brief Summary of your Flowchart (2 to 3 short sentences describing your flowchart) [Left of Flowchart]

Answers

Answer:

The pseudocode is as follows:

Input coursename, numgrades

count = 1; totalgrades = 0

while count <= numgrades:

   input grade

   totalgrade+=grade

   count++

average = totalgrade/count

print(coursename)

print(average)

Explanation:

The solution is as follows:

(1) See attachment for flowchart

(2) See answer section for pseudocode

Explanation

Input coursename and number of grades

Input coursename, numgrades

Initialize count of grades input by the user to 1 and the sum of all grades to 0

count = 1; totalgrades = 0

This loop is repeated while count of grades input by the user is less than or equal to the numgrades

while count <= numgrades:

Input grade

   input grade

Add grades

   totalgrade+=grade

Increase count by 1

   count++

End of loop

Calculate average

average = totalgrade/count

Print coursename

print(coursename)

Print average

print(average)

C. Summary of the flowchart

The flowchart gets coursename and the number of grades from the user. Then it gets the score of each grade, add them up t calculate the average of grades.

Lastly, the course name and the average grades is printed

HW3: Write a program in C language by using if statement for a lift control
system, for your information
nation the maximum weight is 240kg and for five floors.

Answers

160kg Is your answer

A program spends 30% of its time performing I/O operations, 25% of its time doing encryptions, and the remaining 45% of its time doing general computations. The user is considering purchasing one of three possible enhancements, all of which are of equal cost: (a) a new I/O module which will speed up I/O operations by a factor of 2, (b) adding encryption hardware which will cut the encryption time by 70%, and (c) a faster processor which will reduce the processing time for both general computations and encryptions by 40%. Which of these three enhancements will provide the best speedup? Hint: This is an application of Amdahl’s Law.

Answers

Answer:

a

Explanation:

. Which responsibility belongs to the marketing function?

Answers

Answer:

The marketing functions involves various responsibilities of the business organization, these functions are responsible for the growth of company. The key roles and responsibilities of marketing functions are market research, finance, product development, communication, distribution, planning, promotion, selling etc.

Best monitor cofficiant modern warfare

Answers

Answer: Monitor coefficient only determines your vertical sens with respect to your horizontal. It should be your horizontal pixels divided by your vertical. E.g. for a 1920 x 1080 monitor it should be 1.33. For a 2560 x 1440 it should be 1.78.

Explanation:

Answer:

1920 x 1080 monitor or 2560 x 1440

if your looking for a smooth gaming experience also depends on the graphic card and processer you use

Explanation:

When the Credit Card Number box and the CSC box receive the focus, a transition effect should appear that slowly adds a glowing brown shadow around the boxes. The glowing brown shadow appears but without a transition effect. Return to the code8-4_debug.css file and study the code that applies a transition effect to both the input#cardBox and input#CSC objects, and the input#csc:invalid style. Correct any mistakes you find in the code. Verify that when the Credit Card Number and CSC boxes receive the focus a transition effect appears that adds the glowing brown shadow to the boxes.

Answers

Answer:

dire ako maaram hito because dire ako baltok

medyo la

Software that is downloaded from the internet fits into four categories what are they

Answers

Answer:

Application Software

Driver Software.

System Software

Programming Software

Answer:

application, system,driver and programming software

What was software for modems that connected through phone lines called?


virtual-emulation software

terminal-emulation software

bulletin-board software

baud modem software

Answers

Answer:

Best Regards to all of the people who have met you in the class

Name any four areas where computers are used​

Answers

Answer:

Computers are used for Business

Computers are used for Education

Computers are used for Science

Computers are used for Communication.

A sql-6-5.sql file has been opened for you. Write each of the following tasks as a SQL statement in a new line (remember that you can source the file to compare the output reference): Use the e_store database Select the total stock of all products in the products table. Alias the column name as total_stock. The resulting table should look like this:

Answers

Answer:

The query is as follows:

select sum(stock) as total_stock from products

Explanation:

Required

Return total stock using the alias total_stock from the product table.

The explanation of the query is as follows:

select ----> This implies that data is to be selected from the table

sum(stock) ----> This adds up entries in stock column

as total_stock ---> This represents the alias used for sum(stock)column where

from products  ----> The table being queried

Take for instance, the content of the table is:

SN  Product Stock

1      Apple     5

2     Orange   3

3      Banana   8

The query will return the following table:

total_stock

16

You will use conditionals, loops, and functions to implement a trigonometric functions calculator.
THE PROBLEM
You must complete the provided Python program to calculate three trigonometric functions based on the user's input. The user can select the following trigonometric functions: 1. Sine, 2. Cosine, and 3. Tangent. The user will input option 4 to exit the program. If the user inputs a number different than 1, 2, 3, or 4, your program must print into the display the following message: Invalid option. Your program will keep asking the user for an option until the user choice is 4 (exit).
Trigonometric functions:
Sine: to calculate the sine of an angle (in radians), you must use the following Maclaurin series (Wikipedia):
sin(x) = ∑[infinity]n=0(−1)nx2n+1(2n+1)!∑n=0[infinity](−1)nx2n+1(2n+1)!
Where x is the value of the angle in radians.
Cosine: to calculate the cosine of an angle (in radians), you must use the following Maclaurin series (Wikipedia):
cos(x) = ∑[infinity]n=0(−1)nx2n(2n)!∑n=0[infinity](−1)nx2n(2n)!
Tangent: For the value of an angle different than 90 or 270 (in degrees), the tangent is:
tan(x) = sin(x)cos(x)sin(x)cos(x)
Where x is the value of the angle in radians.
User-defined Functions:
You must write the definition of the following functions:
factorial: this function receives as a parameter an integer value and returns the factorial of the received value. For a parameter equal to 5, the function returns 120 (5 * 4 * 3 * 2 * 1).
sin: this function receives two parameters (a float representing the value of the angle in radians and an integer value representing the number of terms of the Maclaurin series to be calculated). The function returns the value of the sine of the first parameter calculated with the first n terms of the Maclaurin series for the sine (where n is the second parameter received by the function).
cos: this function receives two parameters (a float representing the value of the angle in radians and an integer value representing the number of terms of the Maclaurin series to be calculated). The function returns the value of the cosine of the first parameter calculated with the first n terms of the Maclaurin series for the cosine (where n is the second parameter received by the function).
degTorad (provided): this function receives as a parameter an integer value representing an angle in degrees and returns the value of the received angle in radians.
printMenu (provided): this function does not receive parameters and does not return a value. The function prints the to STDOUT (display) the menu to be used by the user.
Main program:
The main program is provided in the template file. Please use the comments in the template file to complete your solution.
Input:
Your program takes as initial input one integer value representing the menu option. If the initial input value is a trigonometric function (1, 2, or 3), the program will request two additional inputs (an integer value representing an angle in degrees and the number of terms used in the Maclaurin series). The input statements are provided in the template file.
Output:
The print statements are provided in the template file (do not modify the output messages).
Note:
You can safely assume that the input will always be valid.
Example :
THE TRIGONOMETRIC CALCULATOR
1 - Calculate the sine of a value
2 - Calculate the cosine of a value
3 - Calculate the tangent of a value
4 - Exit
Enter your option: 1
Enter the value (in degrees): 45
Enter the number of terms: 10
The sine of 45 is 0.7071
THE TRIGONOMETRIC CALCULATOR
1 - Calculate the sine of a value
2 - Calculate the cosine of a value
3 - Calculate the tangent of a value
4 - Exit
Enter your option: 2
Enter the value (in degrees): 45
Enter the number of terms: 10
The cosine of 45 is 0.7071
THE TRIGONOMETRIC CALCULATOR
1 - Calculate the sine of a value
2 - Calculate the cosine of a value
3 - Calculate the tangent of a value
4 - Exit
Enter your option: 3
Enter the value (in degrees): 45
Enter the number of terms: 10
The tangent of 45 is 1.0000
THE TRIGONOMETRIC CALCULATOR
1 - Calculate the sine of a value
2 - Calculate the cosine of a value
3 - Calculate the tangent of a value
4 - Exit
Enter your option: 4

Answers

Answer:THE TRIGONOMETRIC CALCULATOR

1 - Calculate the sine of a value

2 - Calculate the cosine of a value

3 - Calculate the tangent of a value

4 - Exit

Enter your option: 4

When adding delegates to his mailbox, which role should Joel use if he would like the user to be able to read and create items in a particular folder?
- editor
- publishing editor
- author
- manager

Answers

Answer:

publishing editor

Explanation:

In this scenario, the role that he should choose for the delegates would be publishing editor. This role will allow them to create, read, modify, and delete all items within a given folder, and create subfolders. The other options listed either do not give access to create/modify existing files or simply only give all these rights with files that the user creates but not files that already existed in the folder. Therefore, this would be the best role for what Joel wants to accomplish.

HLOOKUP is used for Horizontal Data look ups while VLOOKUP is for Vertical Data look ups
Select one:
True
False​

Answers

Answer:

True

Explanation:

Both HLOOKUP and VLOOKUP are excel functions used for searching through tables for a specified lookup value to either get an exact or approximate match. The VLOOK and HLOOKUP functions have identical syntax which only differs with the HLOOKUP requiring the row index number to search through the rows while, VLOOKUP requires the column index number to search through the columns. Other than this difference, the other syntax values are the same.

VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On a standard telephone, the alphabetic letters are mapped to numbers in the following fashion: A, B, and C = 2 D, E, and F = 3 G, H, and I = 4 J, K, and L = 5 M, N, and O = 6 P, Q, R, and S = 7 T, U, and V = 8 W, X, Y, and Z = 9 Write a program that asks the user to enter a 12-character telephone number in the format: XXX-XXX-XXXX. Acceptable characters (X's) are A-Z and a-z. Your program should check for: The length of the phone number is correct. The dashes are included and are in the correct positions. There are no characters in the illegal characters in the string. The application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. If the input string is not entirely correct then you should print an error message. For example, if the user enters 555-GET-FOOD the program should display 555-438-3663. If the user enters 123-456-7890, the program should display 123-456-7890. Rules: You must have one function (in addition to main()) that converts an alphabetic character to a digit. Or you can have one function that coverts all characters to digits. You can make your own function or use a built-in function if one exists.

Answers

Answer:

The program in Python is as follows:

def convertt(phone):

splitnum = phone.split ('-')

valid = True  

count = 0  

err = ""  

numphone = ""

if len(phone) != 12:

 err = "Invalid Length"  

 valid = False  

elif phone[3] != '-' or phone[7] != '-':

 err = "Invalid dash [-] location"  

 valid = False  

while valid== True and count < 3:

 for ch in splitnum[count]:

  if ch.isdigit():

   numphone += ch  

  elif ch.upper()in 'ABC':

   numphone += '2'  

  elif ch.upper()in 'DEF':

   numphone += '3'  

  elif ch.upper()in 'GHI':

   numphone += '4'  

  elif ch.upper() in 'JKL':

   numphone += '5'  

  elif ch.upper()in 'MNO':

   numphone += '6'  

  elif ch.upper()in 'PQRS':

   numphone += '7'  

  elif ch.upper()in 'TUV':

   numphone += '8'  

  elif ch.upper()in 'WXYZ':

   numphone += '9'

  else:

   valid = False

   err = "Illegal character in phone number"  

 if count!=2:

  numphone += '-'  

 count += 1  

if valid == False:

 print (err)

else:

 print ("Phone Number", numphone)

phone = input("Phone number: ")

convertt(phone)

Explanation:

See attachment for complete source code where comments are used for explanation

As of Spring 2020, in otder to get into the CS major, you must have a 3.0 GPA or better in cs120, cs210, and cs245. In this problem, you should write one function named get_gpa, which will calculate this GPA. This function should have one parameter, which will be a dictionary of grades in computer science courses. You can assume that the dictionary will always have the keys 'cs120', 'cs210', and 'cs245', but it also might contain some names of other courses too. The values associated with each key will be a float representeing the GPA-style grade for that class. For instance, the parameter dictionary might look like: {'cs120':4.0 'cs245':3.0, 'cs210':2.0}. Some examples:

get_gpa({'cs110': 4.0, 'cs245':3.0, 'cs335':4.0, 'cs120':3.0, 'cs210':3.0}) should return 3.0.
get_gpa({'cs110': 4.0, 'cs120':3.0, 'cs245':2.0, 'cs210':1.0}) should return 2.0.
get_gpa({'cs245':4.0, 'cs120':3.0, 'cs245':2.0}) should return 3.0.

Make sure to include only the one function in your file.

Answers

Answer:

The function is as follows:

def get_gpa(mydict):

   gpa = 0

   kount = 0

   for course_code, gp in mydict.items():

       if course_code == 'cs120' or course_code == 'cs210' or course_code == 'cs245':

           gpa += float(gp)

           kount+=1

   

   return (gpa/kount)

Explanation:

This defines the function

def get_gpa(mydict):

This initializes gpa to 0

   gpa = 0

This initializes kount to 0

   kount = 0

This iterates through the courses

   for course_code, gp in mydict.items():

If course code is cs120 or cs210 or cs245

       if course_code == 'cs120' or course_code == 'cs210' or course_code == 'cs245':

The gpa is added

           gpa += float(gp)

And the number of courses is increased by 1

           kount+=1

This returns the gpa    

   return (gpa/kount)

Which of these skills are used in game design?
Writing, Project Management, Drawing and artistic visualization, all of the above

Answers

Answer:

I think the answer is Writing but am not sure

The keyboard shortcut to enter the current date in a field is
Ctrl+semicolon (;)
Ctrl+ampersand (&)
Ctrl+asterisk (*)
Spacebar

Answers

Answer:

oh cool I'm gonna try that

Suppose we define a WaitlistEntry as follows:

typedef struct{
int iPriority; /* Priority of the student to be enrolled */
int iStudentID; /* ID of the student */
}
WaitlistEntry;

Below are different implements of a function to create a WaitlistEntry from given iPriority and iStudentID data. Some of these implementations are flawed. Identify them and describe what is wrong with them briefly:

WaitlistEntry createWL( int iPriority, int iStudentlD )
WaitlistEntry w,
w.iPriority iPriority;
w.iStudentlD iStudentlD;
return w;

a. correct
b. incorrect, leaks memory
c. incorrect, syntax error
d. incorrect, data will be overwritten by next function call

Answers

Answer:

You have syntax errors, but I don't know if it happened when you posted this question, nevertheless

Explanation:

Correct code:

WaitlistEntry createWL( int iPriority, int iStudentID ) { // Opening Brace

WaitlistEntry w; // Should be ; not ,

w.iPriority = iPriority;   // Assign Missing

w.iStudentID = iStudentID; // Assign Missing

return w;

} // Closing Brace

// Also note: iStudentID this actually has an 'l' which is LD. Not ID, this is why I assume these errors happened when posting the question.

What is a typical use for a MAN?

A.
to connect devices in five offices adjacent to each other
B.
to connect computers across a university campus
C.
to connect corporate offices across three continents
D.
to connect the computers in a private library

Answers

A.to connect devices in five offices adjacent to each other

Answer:

B. to connect computers across a university campus

Explanation:

Plato correct!

Which of these are examples of a bug?
A. Feedback telling you the game is boring. B. Players can get to the river, but nothing they click gets them over the river. C. The game crashes during game play. D. B & C

Answers

The answer is b and c
Other Questions
DcrivezWrite a complete sentence about each person's relatives using descriptive adjectiveYohan et son frre sont blonds. Ils ont une nice.Ava est grande. Elle a un fils.Odette est fire. Elle a des petits-fils.Hlne est nave. Elle a un frre et une sur.Gisle est rousse. Elle a deux tantes. plss help ill give brainliest thank you! In ABC with the right angle at vertex C, sin(b)= (26)/8. What is sin(a)? Solve for x2 (x + 1) = -200 x= 662x + (-3) = = (-23) x= X - 3 = (-9) x=(-3x) - 5 = 16 x=-4 (y - 2) = 12 x=4x = (-28) x=2x + 9 = (-15) x=X + 5 = 183 (x+ 5) = 183x + 5 = 182 (x + 5) = 163 (y + 200) = 300020.8 = 4 (z + 1.1)3 (x + 4.5) = 369 = 3 (x + 2)2x + 16 = 50 14 = 2 (x + 3) 5x + 2 = 17 9x+10y =1 9x-6y=-15 solve using elimination multimeter and the LCD is showing Hz. What's she measuring?A. ResistanceB. AmplitudeC. VoltageD. Frequency What is the expression resulting from the following diagram?3x)Drop Down 1]-2x-5[Drop Down 2]-4/11[Drop Down 3][Drop Down 1)Select a ValueDrop Down 2]Select a ValueDrop Down 3]Select a Value Look at this graph: What is the equation of the axis of symmetry? Anyone have any song suggestions?? A scale drawing of a house uses a scale of 0.5 inches = 2 feet what is the length in inches of a line on the scale drawing that represents an actual length of 5 feet. what do molecules and elements have in common Why was the outcome of the Cuban missile crisis viewed as a failure for krushchev I NEED THE ANSWER ASAP Which of the following was a consequence of the Corrupt Bargain?John C. Calhoun became President by winning the popular vote.J.T. Harlan was appointed Secretary of State under Calhoun.Andrew Jackson was selected as John Quincy Adams Secretary of State.John Quincy Adams was chosen President by the House of Representatives. In circle A as shown below, segment DC is tangent to circle A at D. Also, DC = 4 and BC = 2Find the length of the radius of circle AA. 3B. 5C. 6D. 12please help!!! The graph below shows the number of tickets that a movie theater sold over a four week period.If the theater continues selling tickets at the same rate, how many tickets do you predict they will sell during the 6th week? A. 520 tickets B. 590 tickets C. 660 tickets D. 730 tickets Please help me Ill mark as brainliest You have been offered an investment that will pay you a lump sum of $30,000 25 years from today, along with a payment of $1,000 per year for 25 years starting one year from today. How much are you willing to invest today to have this investment in your portfolio assuming you wish to earn a rate of 6 percent compounded annually Anybody know this. Need help please!!!! Suppose you have just paid a nonrefundable fee of $1,000 for your meal plan for this academic term. This allows you to eat dinner in the cafeteria every evening.A. You are offered a part-time job in a restaurant where you can eat for free each evening. Your parents say that you should eat dinner at the cafeteria anyway since you have already paid for those meals. Are your parents right? Explain why or why not.B. You are offered a part-time job in a different restaurant where, rather than being able to eat for free, you receive only a large discount on your meals. Each meal there will cost you $2; if you eat there each evening this semester, it will add up to $200. Your roommate says that you should eat in the restaurant since it costs less than the $1,000 that you paid for the meal plan. Is your roommate right? Explain why or why not. Please help this is due tomorrow