[solved] – Question 75828

Write a pseudocode algorithm to compute the product of the first n positive integers. How many multiplications does your algorithm perform?

Expert Answer


[solved] – Question 7587

i have a project in my Object Oriented Programming. It is about making a cash register
ALGORITHM
1. Enter the item name
2. enter how many item bought
3. enter price of item
4. compute (Total price = item price * number of item)
5. display if there are another item to be bought
6. if yes go back to 1
7. compute 9amount to pay = total price of 1st item + … total price of last item)
8. display total price to pay
9. Enter amount paid by the customer
10. display change (if Any)
11. Enter if there are another customer
it would mean a lot to me if you could help me. Thank you

Expert Answer


[solved] – Question 75913

In the main function, input one string and pass it to a function named cleanString. This function removes the non-alphabetic characters and writes the rest into a new character array (i.e. non-alphabetic characters are +, – ?, *, 1,2,3,…). After receiving a cleaned array, you should call another function named reverseWords. This function takes and returns the string as a parameter. String should be arranged in a reversed order for each word. All operations in this function should take place on the same string, you shouldn’t be using a temporary array for the reverse operation. Finally, print the result in the main function.

Sample run:

Enter first string: This-?=*is__12the**23%third?[]homework–_?().

Cleaned string: This is the third homework

Reversed string: sihT si eht driht krowemoh

Expert Answer


[solved] – Question 75924

Create an application that displays each record in the two files created in the
StudentsStanding application in Exercise 8a. Display a heading to introduce the list
produced from each file. For each record, display the ID number, first name, last
name, grade point average, and the amount by which the grade point average exceeds
or falls short of the 2.0 cutoff. Save the program as StudentsStanding2.java.

Expert Answer


[solved] – Question 75951

Create an application that displays each record in the two files created in the StudentStanding application. Display a heading to introduce the list produced from each file. For each record, display the ID number, first name, last name, grade point average, and the amount by which the grade point average exceeds or falls short of the 2.0 cutoff. Save the program as StudentStanding2.java.

Expert Answer


[solved] – Question 75989

This week we will be working with throwing our exceptions and using try and catch blocks.

———————————–

Throwing the Exceptions:

LotFullException: Adjust both of ParkingLot’s park() methods to throw this exception instead of returning false if the ParkingLot is full and your Auto/Bicycle cannot be parked.

VehicleMissingException: Adjust ParkingLot’s find() method to throw this exception instead of return null if the target vehicle is unable to be found inside the ParkingLot

Expert Answer


[solved] – Question 76076

Select all possible anomalies not present in a relation in 3rd Normal Form. (The correct answer may require multiple selections)

Insertion Anomaly

Addition Anomaly

Modification Anomaly

Deletion Anomaly

Expert Answer


[solved] – Question 76077

A EMPLOYEE relation has the following attributes: EmployeeID, EmployeeName, BirthDate, CourseID, CourseTitle, DateCompleted

There is one row for each Course completed by an employee. There is currently one employee that completed the Security course.

What type of anomaly would surface if that employee row were removed?

Addition Anomaly

Deletion Anomaly

Update Anomaly

Insertion Anomaly

Expert Answer


[solved] – Question 76078

Which one below is the accepted level of Normalization?

5NF

4NF

3NF

2NF

Expert Answer


[solved] – Question 76079

A _______________________ dependency is a functional dependency on non-primary key attributes.

Transitive

Adjacent

Partial

Functional

Expert Answer