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

Sales. Bonus rate%





Above 50001. 15



Between 25001 and 50000. 10



Between 1 and 25000. 5



Draw a flow chart for a program that prompts a user to enter the employees basic salary and sales. The program then calculates the gross salary and outputs employees basic salry, gross salary and bonus

Make an octave code to find the root of cos(x) – x * e x = 0 by using bisection method. The answer should be corrected up to four decimal places.




Submit your Python script file in the posting of your assignment. Your Python script should be either a .txt file or a .py file.




You must execute your script and paste the output produced into a document that you will submit along with your Python script.




It is very helpful if you print a placeholder between the printing of 9 lines and the printing of 25 lines. It will make your output easier to read for your peer assessors. A placeholder can be output such as “Printing nine lines” or “Calling clearScreen()”.




The following items will be used in the grading rubric for this assignment. Make sure that you have addressed each item in your assignment.





Does the assignment implement new_line, three_lines, nine_lines, and clear_screen functions, as well as a main section of the program which calls the functions?





Write a function in this file called nine_lines that uses the function three_lines (provided below) to print a total of nine lines.








Now add a function named clear_screen that uses a combination of the functions nine_lines, three_lines, and new_line (provided below) to print a total of twenty-five lines. The last line of your program should call first nine_lines and then the clear_screen function.








The function three_lines and new_line are defined below so that you can see nested function calls. Also, to make counting “blank” lines visually easier, the print command inside new_line will print a dot at the beginning of the line:








def new_line():








print('.')








def three_lines():









new_line()








new_line()









































A teacher divides her class in different group (gr) sizes according to the

activity they have to do. Write a program to determine the number (nr) of groups as well as the nr of pupils (p) who are left to form a smaller gr. They're 56 in the class.

Program structure:

• Declare 3 int variables nrPupils, nrGroups, and nrLeft. nrPupils is the

nr of ps in a class, nrGroups is the nr of grs the class is divided into, and nrLeft is the nr of ps who're in the remaining smaller gr.

• Assign the value 56 to nrPupils.

• Declare an int variable groupSize that's used by a cin statement to input a value from the keyboard and store the size of the grs the teacher requested. Display a message. E.g. Please enter the size of each gr?

• Write the statement to calculate the nr of grs of size groupSize.

• Write the statement to calculate the nr of ps who're in the remaining smaller gr.

The output of the program must be displayed as follows:

There are 9 grs consisting of 6

pupils There are 3 remaining pupils



Find a good cookbook. Read the instructions for your favourite dish. Write a program to display the recipe on the screen but with a difference. The quantity of each ingredient must be multiplied by a value entered from the keyboard. For example, if the recipe needs 2 cups of flour the output displayed will be something like this Please enter the factor to multiply the ingredients with : 4 Recipe name Ingredients // other ingredients 8 cups flour Method The program has the following structure: • Declare an int variable named mFactor to store the value with which the quantity of each ingredient must be multiplied. • The program must make use of a cin statement to input a value from the keyboard and store it in mFactor. Submit both your program and output.


Write a program in C++ to read a number n and find out the sum of the integers from 1 to



then from 1 to 3, then 1 to 4, and so on and to display the sum of the integers from 1 to



n.



For example, from



1 to 2 = 1



1 to 3 = 3



1 to 4 = 6



1 to 5 = 10



1 to 6 = 18




Develop a small application in C++ that should allow the user of application to enter the receipt number, sender name, sender address, receiver name, receiver address, shipment fee and parcel weight. After getting required information, generate a shipment receipt and show as summary on screen.

Write a program to determine the entered character is an alphabet or number or special character using if – else-if – else.


Instruction: This program read a character value from the user and displays whether it is an alphabet or number or special character, with a suitable message.



Write a program to implement the Date class which has three data members named day, month and year.

 

1.  Provide a constructor, which takes arguments (you may set values of data members to 0).

 

2.  Write getter and setter functions (input and show functions) for the Date class.

3.  Also write a member function void CompareDates(Date d1, Date d2) which tells which date comes first.


LATEST TUTORIALS
APPROVED BY CLIENTS