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

Read this story and calculate/print the x total eggs collected between Monday and Wednesday:



Mang Jose’s chickens always lay eggsPerChicken eggs precisely at noon, which he collects that day.



• On Monday, Mang Jose has chickenCount chickens.



• On Tuesday morning, Mang Jose gains 1 chicken.



• On Wednesday morning, a wild beast eats half the chickens!



For Example:



• If Mang Jose starts with eggsPerChicken = 5 and chickenCount = 3, he must then collect a total of 45



eggs



• If Mang Jose starts with eggsPerChicken = 4 and chickenCount = 8, he must then collect a total of 84



eggs



Develop a C++ program that calculates how many eggs will Mang Jose collects based on user input.

You’ve been asked to write a small menu driven inventory management system for a small convenient store. Item ID – unsigned long Item name – string Item cost – float Quantity - int

Following are the list of administrative functionalities your application shall support:

1.Add new item to the inventory. This function will be used to add a single new item into the inventory management system.

2.Print all item information in the store - This function will be used to display all items in the inventory. When this option is selected system shall print Item ID, Item name, Item cost and quantity. 3.Find item by ID – This function will be used to search item using an ID. If item exist print item information. If not display an error indicating item not found.

4.Find item by name – This function will be used to search item using name. If item exist print item information. If not display an error indicating item not found.

Write a menu driven application in

C++.


Preserving the Gene Pool

by CodeChum Admin

In order to make sure that the future generations will grow into great beings, we must make sure that the gene pool consists of the best genes. In order to do that, we must compare genes from each other and find out which one is the best!


Instructions:

  1. In the code editor, you are provided with a main() function that asks the user for 4 integer inputs and passes these to the getBest() function call.
  2. Your task is to declare and define this getBest() function which has the following details:
  3. Return type - int
  4. Name - getBest
  5. Parameters - 4 integers
  6. Description - returns the highest integer passed
  7. DO NOT EDIT ANYTHING IN THE MAIN

Input


1. First integer

2. Second integer

3. Third integer

4. Fourth integer


a. Each object of the class BookType can hold the following information about a book: title, up to four authors, publisher, ISBN, price, and number of copies in stock. To keep track of the number of authors, add another member variable.

b. Include the member functions to perform the various operations on objects of type BookType. For example, the usual operations that can be performed on the title are to show the title, set the title, and check whether a title is the same as the actual title of the book. Similarly, the typical operations that can be performed on the number of copies in stock are to show the number of copies in stock, set the number of copies in stock, update the number of copies in stock, and return the number of copies in stock. Add similar operations for the publisher, ISBN, book price, and authors. Add the appropriate constructors and a destructor (if one is needed). Also add the necessary preconditions and postconditions.


Write C++ program using pointers in which An amateur meteorologist wants to keep track of weather conditions during the past year’s three-month summer season and has designated each day as either rainy (‘R’), cloudy (‘C’), or sunny (‘S’). Write a program that stores this information in a 3 × 10 array of characters, where the row indicates the month (0 = June, 1 = July, 2 = August) and the column indicates the day of the month. Note that data are not being collected for the date greater than 10th f any month. The program should begin by reading the weather data from user. Then it should create a report that displays, for each month and for the whole three-month period, how many days were rainy, how many were cloudy, and how many were sunny. It should also report which of the three months had the largest number of rainy days.


def mystery1(x):
    return x + 2

def mystery2(a, b = 7):
    return a + b

#MAIN
n = int(input("Enter a number:"))
ans = mystery1(n) * 2 + mystery2 (n * 3)
print(ans)

What is output when the user enters -4?





Tournament Training:

To prepare for the upcoming marthon.Ramesh trains one long distancerun each saturday .He considers a saturday to be a progress day if he runs more kilometers thsn the previous saturday Ramesh wants to track the no.of progress day

Given the no.of kilometer run by rsmesh on each aturday print the total no.of progress days

The 1st line of input contains space-seperated integers

i/p:

12 11 10 12 11 13

o/p:2

i/p:1 2 1 1 1

o/p:1


Create a new project, and copy your code from Task 1 to the new project (copy the contents of the Main() method and the displayDetails() method) Adapt your Main() method to capture and display the details for 4 different people. The displayDetails() method should remain unchanged.


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. 


Write a program that prompts the user for the following values: nickname and favourite movie/series. Write a user defined method named displayDetails() that accepts two string values as input, and then displays these values. Add the required instructions to your Main() program to allow it to display the text Hello World and then calls the displayDetails() method to display your information. 


LATEST TUTORIALS
APPROVED BY CLIENTS