Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

I need help in coding the following problems using the fundamentals of C. ( No using arrays, booleans, the more complicated aspects of the c

I need help in coding the following problems using the fundamentals of C. ( No using arrays, booleans, the more complicated aspects of the c language)

image text in transcribed

image text in transcribed

1) A circular racetrack is composed of four portions: concrete, mud, sand, and asphalt. bA car takes 30 seconds to cross the concrete, 55 seconds to cross the mud, 47 seconds to cross the sand, and 38 seconds to cross the asphalt. Write a program that asks for a positive TIME value in seconds and displays WHERE in the track the car is based on the given time. Assume that the race starts at the beginning of the concrete portion. Hint: Where is his car after 50 seconds? After 200 seconds? After 1634 seconds? 2)Write a program that accepts a number from 1 to 999 and displays the equivalent Roman numeral for the given number. Roman Digit I is 1, V is 5, X is 10, L is 50, C is 100 and D is 500. When a symbol appears after a larger or equal symbol, that symbol is added. Example: VI = 5 + 1 = 6. When a symbol appears before a larger symbol, that symbol is subtracted. Example: IX = 10 - 1 = 9. Symbols I, X, C can be used consecutively at most three times. Examples: III, XXX, CC 3) Write a program that displays the grade point equivalent of a given score. Use the following table for the conversion:) Complete years of service 1 2 to 3 Bonus 1% of salary 2% of salary 5% of salary 10% of salary 4 to 10 more than 10 4) A company gives year-end bonus to its employees based on their completed years of service and their current salary using the following Complete years of service Bonus 1 2 to 3 4 to 10 more than 10 1% of salary 2% of salary 5% of salary 10% of salary Write a program that displays the employee's year-end bonus

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions