Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

 A local zoo wants to keep track of how many pounds of food each of its three monkeys eats each day during a typical week. Write a program that stores this information in a two dimensional 3 × 7 array, where each row represents a different monkey and each column represents a different day of the week. The program should first have the user input the data for each monkey. Then it should create a report that includes the following information: I. Average amount of food eaten per day by the whole family of monkeys. II. The least amount of food eaten during the week by any one monkey. III. The greatest amount of food eaten during the week by any one monkey. Input Validation: Do not accept negative numbers for pounds of food eaten. 


 Write a program that will predict the size of a population of red ants. The program should ask the user for the starting number of red ants e.g. 2,000,000, their average daily population increase as a percentage of current population e.g., 5%, and the number of days they will multiply e.g. 10 days. Use a do while to display the size of the population for each day. Draw a flow chart and write down a pseudo code before attempting this number. Input Validation: Do not accept a number less than two for the starting size of the population. Do not accept a negative number for average daily population increase. Do not accept a number less than one for the number of days they will multiply. 


, defined a class Account to implement basic bank account functionalities. Redefine the Account class to update the deposit, withdraw and display Account information operations.  Overload the + and - operators to perform the deposit and withdraw operations, respectively.  Overload the + and - operators such that the value that will be used to increase (or decrease) the Account balance can be on the left or right of the operator. Example: savings + 123.45 (or 123.45 + savings), savings – 123.45 (or 123.45 – savings) where savings is an Account object.  Overload the insertion operator to display Account information.  Overload < and == operators. An Account is considered lower than another when the balance is lower, and equal when Accounts have the same account number. Write a main() method instantiating two Account objects and test (demonstrate) that all the overloaded operators work correctly. The withdrawal operation should be tested at least two times for a successful and unsuccessful withdrawal.


Create a user defined method named calcCost() that accepts two double values as input (length

and width), and then computes the estimated cost of painting a room (walls only, not ceiling),

assuming the room is rectangular and has four full walls and the walls are 2.6 meter high. The rate

for the painting job is R20 per square meter. Your method should return the estimated cost to the

calling method.

Create a program whose Main() method prompts a user for the length and the width of a room in

meter, then calls calcCost to calculate the estimated cost. Once calculated, you should display

the estimated cost.


the goal of this coding exam is to quickly get you off the ground with the array method filter(). given vowels List in the prefilled code and ward List as an input, write a js program to, filter the words from wordsList with at least one vowel in it. log the array containing the filtered words in the console


"use strict";

process.stdin.resume();

process.stdin.setEncoding("utf-8");

let inputString = "";

let currentLine = 0;

process.stdin.on("data", (inputStdin) => {

 inputString += inputStdin;

});

process.stdin.on("end", (_) => {

 inputString = inputString.trim().split("\n").map((str) => str.trim());

 main();

});

function readLine() {

 return inputString[currentLine++];

}

function main() {

 const wordsList = JSON.parse(readLine().replace(/'/g, '"'));

 const vowelsList = ["a", "e", "i", "o", "u"]

 // Write your code here

}


Write a program to find the table of numbers using a while loop. Your program should ask the

size of the table. That size defines the rows and columns. Sample output:

Enter size: 6

1 2 3 4 5 6

------------------------------------------

1* 1 2 3 4 5 6

2* 2 4 6 8 10 12

3* 3 6 9 12 15 18

4* 4 8 12 16 20 24

5* 5 10 15 20 25 30

6* 6 12 18 24 30 36


Write a C++ program that converts a decimal number to a binary, octal, and

hexadecimal equivalents. First, the program will ask to fix a range for the lower and

upper limit in which the conversion is required. The lower limit should not be less than

0 and greater than the upper limit. For example, if you enter a negative number or

greater than the upper limit, then the program should print a message for the invalid

input and will ask you again to enter a decimal number within the range. If you

correctly specify the upper and lower limits, then the program will print a table of the

binary, octal and hexadecimal equivalents of the decimal numbers in the range of

lower limit through upper limit.

Specific grading criteria: In this program you should use all the loops (e.g., while,

do-while and for loop) each of them only one time. The output mentioned below is just

an example; more clear and well- presented output will improve your points.




Program that receives the current temperature as input. If the temperature is 80 degrees or more, output a message telling the user to go swimming, otherwise, if the temperature is 50 degrees or more, output a message to go running, otherwise stay inside.


Write a C++ program that asks the user to enter a number N .After that, print N lines using asterisk (*) in a


triangle shape as shown below;


By using nested loop

Write a function which will take 2 arguments. They are:

• Sentence

• Position

Your first task is to take these arguments as user input and pass these values to the function

parameters.

Your second task is to implement the function and remove the characters at the index number

which is divisible by the position (Avoid the index number 0 as it will always be divisible by the

position, so no need to remove the index 0 character). Finally, add the removed characters at

the end of the new string.

Return the value and then finally, print the new string at the function call.

[Cannot use remove() or removed() for this task]


Input:

"I love programming."

3

Function call:

function_name("I love programming.", 3)

Output:

I lveprgrmmngo oai.

===================================================================

Input:

"Python is easy to learn. I love python."

6

Function call:

function_name("Python is easy to learn. I love python.", 6)

Output:

Pythonis eay to earn.I lov pythn. sl eo


LATEST TUTORIALS
APPROVED BY CLIENTS