Questions   a) A bank wants to keep track of their account holder’s details for this they required account holder name, account name, account type and amount in account. As a computer programmer you are supposed to take this information for three account holders and after taking input print which account holder has greater amount in his account. (Make another program but you can use code from example discuss in class) With all previous inputs take another from user that is “Gear” that is must in range of 0 – 5, where Geer 0 means “Reverse Gear” and 1 – 4 are normal forward gears: You have to check as per following criteria user has correct speed with respect to gear.   Gear Speed Comment 0 Below 10 Static Speed … “OK” Above 10 “Dangerous speed on reverse gear” 1 10 – 40 Normal Speed … “OK” 41 or above Normal Speed … “Please put next gear” 2 41 – 65 Average Speed … “OK” 66 or above Average Speed … “Please put next gear” 3 66 – 90 High Speed … “OK” 91 and above Hi Speed … “Please be careful” 4 What ever speed is “This car doesn’t has 4th gear”   Write a program that will take salary of 5 employees as an input and print sum of all salaries and average of salaries inputted (using for loop)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

PF

Questions

 

  1. a) A bank wants to keep track of their account holder’s details for this they required account holder name, account name, account type and amount in account. As a computer programmer you are supposed to take this information for three account holders and after taking input print which account holder has greater amount in his account.
  2. (Make another program but you can use code from example discuss in class) With all previous inputs take another from user that is “Gear” that is must in range of 0 – 5, where Geer 0 means “Reverse Gear” and 1 – 4 are normal forward gears:

You have to check as per following criteria user has correct speed with respect to gear.

 

Gear

Speed

Comment

0

Below 10

Static Speed … “OK”

Above 10

“Dangerous speed on reverse gear”

1

10 – 40

Normal Speed … “OK”

41 or above

Normal Speed … “Please put next gear”

2

41 – 65

Average Speed … “OK”

66 or above

Average Speed … “Please put next gear”

3

66 – 90

High Speed … “OK”

91 and above

Hi Speed … “Please be careful”

4

What ever speed is

“This car doesn’t has 4th gear”

 

  1. Write a program that will take salary of 5 employees as an input and print sum of all salaries and average of salaries inputted (using for loop)
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education