Design and implement a program that reads from the user

Assignment Help C/C++ Programming
Reference no: EM132369272

Programming & Problem Solving - Lab Assignment - Selection Structures

Exercise 1: Design and implement a program (name it Youth) that reads from the user an integer values repressing age (say, age). The program prints out the entered values followed by a message as follows: If age is less or equal to 21, the message is "Youth is a wonderful thing. Enjoy.". Finally, the program always prints out the message "Age is a state of mind."

Exercise 2: The weekly pay for an employee is determined based on the following parameters:

  • Standard work hours by week is 40 hours.
  • Hourly pay rate is $10.00 per hour
  • Overtime hours are paid at time and a half the rate (that is $15.00 per hour).

Design and implement a program (name it WeeklyPay) that read number of hours worked per week (as integer value), prints out the entered hours, and then prints out the gross earning.

Exercise 3: Design and implement a program (name it GradeReport) that uses a switch statement to print out a message that reflect the student grade on a test. The messages are as follows:

For a grade of 100 or higher, the message is ("That grade is a perfect score. Well done.")

For a grade 90 to 99, the message is ("That grade is well above average. Excellent work.")

For a grade 80 to 89, the message is ("That grade is above average. Nice job.")

For a grade 70 to 79, the message is ("That grade is average work.")

For a grade 60 to 69, the message is ("That grade is not good, you should seek help!")

For a grade below 60, the message is ("That grade is not passing.")

Instructions -

1. Programs must be working correctly.

2. Programs must be completed and checked before working the assignment.

3. Programs must be checked by the end of the designated lab session.

Note - Please this should be done in C# programming not C++, Thank You.

Attachment:- Programming & Problem Solving Lab Assignment File.rar

Verified Expert

The task of the assignment is to develop 3 C# programs.The first program is to develop Youth program, it involves receiving age from the user and display the message according to age.The second program is to determine the weekly pay of the employee based on the working hour and hourly pay rate.The third program is to determine the grade report of the student based on the grade.

Reference no: EM132369272

Questions Cloud

Are current legal remedies for bad faith bargaining adequate : Are current legal remedies for bad faith bargaining adequate to promote compliance with the LMRA's goal of good faith bargaining? Why or why not?
Calculate the gravitational force : Calculate the gravitational force between the earth and the sun - calculate the speed at which the runner leaves the block
Define what is meant by outsourcing : Define what is meant by outsourcing. Summarize the outsourcing risks concerning control, long-term costs, and exit strategy.
What might have caused the problems and potential solutions : We all had the unfortunate experience of seeing how computers can, at times, make life's journey about more difficult. This is especially true in knowledge.
Design and implement a program that reads from the user : CSE 1321 & CSE 1321L Programming & Problem Solving - Lab Assignment - Selection Structures, Kennesaw State University, Georgia
ERM in Practice at University of California Health System : ERM in Practice at the University of California Health System. EVALUATION: Apply the concepts from the appropriate chapter.
Difference between privacy and infosec : Definition of Privacy. Difference between Privacy and InfoSec, Threats to Privacy
Discuss which human safeguards should be implemented : Recently, a terminated employee used his mobile device to log in to the company network and steal sensitive data. As the manager of the information technology.
Phases of decision making : Identify the decision: We recently had an issue with the access to the reports to all the users from different teams.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program that performs a simple n-body simulation

Write a program that performs a simple n-body simulation, called "Jumping Leprechauns." This simulation involves n leprechauns, numbered 1 to n.

  Write a program that tells what coins to give out

Write a program that tells what coins to give out for any amount of change from 1 to 99 cents.

  Calculate the distance in nautical miles using given formula

In this assignment, you will ask the user to enter two coordinates (Lat1, Long1, Lat2, Long2) and you will calculate the distance in nautical miles using the formula above.

  Determine how many data values to process for each

Determines if the integer is abundant, deficient, perfect or neither and displays a message that includes the integer and which of the 4 categories.

  Describe the most fun aspect of the given assignment

Describe most fun aspect of the assignment. Describe the most challenging aspect of the assignment. Describe the most difficult aspect of the assignment to understand. Provide any suggestions for improving the assignment in the future.

  Implement a time class that represent a specific time of day

Implement a Time class. Each object of this class will represent a specific time of day, storing the hours, minutes, and seconds as integers.

  Member data for faculty number

Create a class Student_info, which inherits class Person, in which member data for faculty number, group and faculty are added. The class contains a constructor, member functions for accessing the data, for change of ID and for displaying the data..

  Define a structure to store marks of a student

Define a structure to store roll no, name and marks of a student - using the structure of Q2. a), above write a 'C' program to create a file "student.dat". There must be one record for every student in the file.

  Use at least two programmer defined functions

C++ Using an input file similar to the one below, write a program to determine the highest concentration recorded and the number of days the photochemical oxidant concentration exceeded the standard; display number of days and percentage (based on th..

  Write a program that calculates tension

Write a program using Cygwin or C that calculates tension. You can put any values for mass and velocity. T = mg + mv^2 T is tension.

  Number of a balance the number

One way to test if a word w belong to this language is to use a stack to check if the number of a's balance the number of b's. Use the provided header

  Cpp program display overtime or regular time pay calculation

Display overtime or regular time pay calculations. See the sample output. Implement object calculations by summarizing your employee objects and display the summary information in the example.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd