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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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