Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

* use any name and other info 1. Write a program that will enter the name, course, school, age and address of a user and

image text in transcribed

* use any name and other info

1. Write a program that will enter the name, course, school, age and address of a user and display in the order: Name: Course: School: Age: Address: 2. Write a program that accepts as inputs the mass in grams, and density in grams per cubic centimeters and outputs the volume of the subject using formula: density = mass / volume. Format the output of decimal numbers two decimal places. 3. Write a program that calculates the distance between two points whose coordinates are (7,12) and (3,9). Use the fact that the distance between two points having coordinates(X1,Y1) and (X2,Y2) is: Distance = sqrt(X1-x2)^2 + (Y1-Y2)^2] 4. Write a octave script to that read an employee name (NAME), overtime hours worked (OVERTIME), hours absent (ABSENT) and determine the bonus payment (PAYMENT) with below condition Bonus Schedule OVERTIME - (2/3)*ABSENT Bonus Paid >40 hours >30 but 20 but 10 but

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions