Questions: 9 913

Answers by our Experts: 9 913

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

Write a function which takes as parameter 3 points and tell whether these



points are the coordinates of isosceles or equilateral or right angled or scalene



triangle. NOTE “Make separate functions as isEquilateral, isRightAngled and



so on... ”.



Sample Input: P1 0 0



P2 1 0



P3 1 1



Sample Output: Right Angle Triangle

Write a c++ program that computes the monthly net pay of the employee for a steel factory. The input for this program is the hourly rate of pay, the number of regular and the overtime hour work. The tax-deductible rate is 20%. You need first to calculate the gross pay, which is the sum of the wages earned from regular hours and overtime hours, the overtime is paid at 1.5 times the regular rate. Then you subtract the tax from the gross pay to get the net pay of the employee.


You are living off-campus and drive your car to ODU campus everyday of a week. You wonder how many mileages you travel in a week (just to campus and back home) and how much you need to pay for the gas. You log your travel mileage every day during a week (just to campus and back home). This information has been saved in an input file called “mileage.txt”.

Design an algorithm and write a C++ program to do the following:

  • Output the mileage for each day.
  • Prompt user to enter the price for one-gallon gas.
  • Calculate and output the total cost of your travel in the week. Your car's Miles per Gallon (MPG) is 35.
  • Save the output in a file named “cost.txt”.

4)Mr Caleb the Hoc of 200 level computer science in Caleb university bought the following goods in one of the warehouse in Lagos where prices of these goods or products are displayed exclusive


*One bag of rice @ 30,000.00 naira


*A 25 litre of groundnut oil @15,000 naira each


*50kg of beef @5,000 naira each


a)Write a C++ program to find the total amount paid by Caleb HOC if VAT was charged @17.5%


b)What is the total Expenditure of HOC is transportation

A batch of concrete is made using the following materials *cement=30,000kg *Sand=50,000kg *Gravel=17,500kg *Water=3000kg a)Write a C++ program code to calculate and display the amount of sand in a real number and a percentage of the total mass of concrete. b)The amount of water in real number,and a percentage of the amount of cement.​

create a program that accept integer and determine if the integer value is odd or even number


Design a flowchart and pseucode for question


A bank in your town updates its customers’ accounts at the end of each month. The bank offers two types of accounts: savings and checking. Every customer must maintain a minimum balance. If a customer’s balance falls below the minimum balance, there is a service charge of $10.00 for savings accounts and $25.00 for checking accounts. If the balance at the end of the month is at least the minimum balance, the account receives interest as follows: * Savings accounts receive 4% interest. * Checking accounts with balances of up to $5,000 more than the minimum balance receive 3% interest; otherwise, the interest is 5%. Write a program that reads a customer’s account number (int type), account type (char) s for savings, c for checking, minimum balance that the account should maintain, and current balance.


Write a C program that follows these guidelines:

  1. Include the header file named tools.h. It will include all other headers you need.
  2. In main(), declare a character array that is 26 slots long.
  3. Print a title on the first line of the output: “Program 1: A List Of Letters Used”. Print your name or names on the second line of the output and leave a blank line after that.
  4. Write an input loop, and repeat it until the sentinel character (#) appears:
  5. (a) Read a character from the keyboard.
  6. (b) Terminate the input loop when the user types a #.
  7. (c) Otherwise, if the letter is not alphabetic, reject it and continue at the top of the loop.
  8. (d) If the letter is upper-case, change it to lower case.
  9. (e) Now you have a lower-case letter; find out if it has already been entered by comparing it to each of the letters you have saved in your array. If it is a duplicate, reject it and continue at the top of the loop.
  10. (f) Now you have a NEW lower-case letter. Store it in the first unused slot in your char array

design a program analysis , pseucode and flowchart for question A bank in your town updates its customers’ accounts at the end of each month. The bank offers two types of accounts: savings and checking. Every customer must maintain a minimum balance. If a customer’s balance falls below the minimum balance, there is a service charge of $10.00 for savings accounts and $25.00 for checking accounts. If the balance at the end of the month is at least the minimum balance, the account receives interest as follows: * Savings accounts receive 4% interest. * Checking accounts with balances of up to $5,000 more than the minimum balance receive 3% interest; otherwise, the interest is 5%.


Number of registrants Fee per person


1 through 4 R100.00


5 through 10 R 80.00


11 or more R 60.00


Complete the program below.


#include <iostream> using namespace std; int main()


{


// Question 4.1 (2)


// Declare a variable to hold the number of registrants and a


// variable to hold the amount a company owes for a seminar

LATEST TUTORIALS
APPROVED BY CLIENTS