You will need to design an application that will receive


Exercises & iLabs Logic and Design

Exercise

- Given a simple business problem that requires one or more decisions, create a solution algorithm that uses decisions with logical and relational expressions.

- Given a program with logic errors that is intended as a solution to a simple business problem, employ debugging diagnostics to remove and correct the errors.

Assignment: You will need to design an application that will receive the weight of a parcel and calculate and display the cost per kg and the delivery charge for that parcel. Calculate the charges using the following data:

Parcel Weight (kg) Cost per kg ($)
< 2.5="" kg="" $3.50="" per="" kg="">
2.5 to 5 kg $2.85 per kg
> 5kg $2.45 per kg

Make sure that the weight entered is a positive number, otherwise your program should display an error message and end. Test your algorithm with the following THREE sets of data:

Test case 1: package weight of 2 kg
Test case 2: package weight of 5 kg
Test case 3: package weight of 6 kg

Lab Grade Calendar (Devry)

You have been asked to design a program that will allow a teacher to calculate the percentage and the final grade for students in a class. The program will prompt the teacher to enter the student's first and last name and the number of points the student received. The program shall only accept scores between 0 and 1,000 points (including 0 and 1,000), with 1,000 points being the maximum number of points. If the input value is within the valid range, the program will display a "good score" message; otherwise, the program will display an error message and then terminate the program. The program shall then calculate the score percentage, and then determine the grade based on the percentage using the following grade criteria:

The program will then display the student's first name, last name, number of points, calculated percentage, and the final grade.

The program shall have an initial prompt informing the user of the program's purpose, and a program termination message.

Be sure to THINK about the logic and design first (IPO chart and pseudocode), then code the Visual Logic command line processing.

Solution Preview :

Prepared by a verified Expert
Computer Engineering: You will need to design an application that will receive
Reference No:- TGS01693318

Now Priced at $40 (50% Discount)

Recommended (96%)

Rated (4.8/5)