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
Marina86 [1]
3 years ago
5

I am getting two expected errors on this code for the bottom two “public static void” lines. Can someone tell me how I can fix i

t? Thanks

Computers and Technology
1 answer:
AVprozaik [17]3 years ago
7 0

Answer:

Declare variable b in both lines

i.e. int b

Explanation:

In the given code, the parameters of both functions were not properly declared.

When listing the parameters, the data type must be clearly stated for all parameters (individually)

In the declaration of both functions, only variable a is declared as integer while b is undeclared.

So, the correction is to declare b as integer

You might be interested in
True or False? In C++, the expression (a + b / c) / 2 is implicitly parenthesized as ((a + b) / c) / 2.
ddd [48]

Answer:

False

Explanation:

The two statements are NOT equivalent since the first statement follows the rule of operator precedence in C++ which assigns highest precendence to values in parenthesis, then division, multiplication, additions and subtraction in that order. In other verify their difference consider this code snippet

      int a =2;

       int b =3;

       int c =5;

       cout( (a + b / c) / 2); // outputs 1

       cout(((a + b) / c) / 2); // outputs 0 because a+b is evaluated first

4 0
3 years ago
Which of the following files should be multiplexed, for safety? (Choose all correct answers.)
Delicious77 [7]

Answer:B)Control File

              D)Archive Log-files

Explanation:

Control file is a file which holds the status of the databases elements such as names, location,online redo files, etc in binary form. This requires the multiplexing by collecting all these database elements into one encapsulated unit.

Archive log-files are those file which holds the redo files in the offline ports which contain the elements.The also form a single group for the safety by multiplexing method.

3 0
4 years ago
Write the DML statement to query the database for the following: Output the fname, lname, total_amount_owed of the student with
Serggg [28]

Answer:

SET IDENTITY_INSERT jobs ON

INSERT INTO jobs  (job_id, job_desc, min_lvl, max_lvl)

VALUES (19, ’DBA2’, 100, 175)

SET IDENTITY_INSERT jobs OFF

Explanation:

7 0
3 years ago
You have imported a library with the birthMonth() function. Based on the API, how many strings are inputed to calculate the birt
Kruka [31]

Answer: Only 1 string is entered

str(dayWeek) is the only string entered into the function.

str(return) is outputted, not inputted.

Numbers are not strings.

// calculate birth month based on the day of the month, day of the week, and the birth year

// dayMonth {number} - a day of a month from 1 to 31

// dayWeek {string} - the name of the day of the week

// year {number} - the birth year

// return {string} - the month you were born

BirthdayLibrary.birthMonth(dayMonth, dayWeek, year);

8 0
3 years ago
expand and explain HTML and css. mention the role of each one in web pages imagine how a page without css will look like​
topjm [15]

Answer:

True html is computer language that have make up

css w

Explanation:

html is computer language that have sterger

css is computer language that have makeup

8 0
3 years ago
Other questions:
  • My 2 in 1 laptop/tablet
    13·1 answer
  • Write a short java method that takes an integer n and returns the sum of all the odd positive integers less than or equal to n.
    5·1 answer
  • What is one course of action available in every problem solving process?
    9·2 answers
  • which software is used to mimic intricate hand drawings into digital paintings? _____ is used to replicate hand drawings into di
    7·1 answer
  • Caroline’s personal laptop was attacked by malware. When she got it fixed from the service center, the computer technician advis
    10·1 answer
  • Sam plans to use this image in artwork for a brochure about airplanes. Which principles of page layout is Sam planning to use in
    11·1 answer
  • What type of data would a RDBMS store in a linked list, two-way linked list, or B-trees? What are the advantages and disadvantag
    5·1 answer
  • What is the most important person and why
    10·1 answer
  • Using the _____, you can direct the browser to retrieve specific information about the URL, to reload the current page, or to lo
    8·1 answer
  • Why do we need to use a VPN service?
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!