60 475
Assignments Done
98,1%
Successfully Done
In April 2018

Answer to Question #11975 in C# for Cherry blossom

Question #11975
To avail a college scholarship,an applicant must provide three figures:his NCEE score,monthly salary of his parents,and entrance examination score.The college may either decided to accept,rejected,or further study his application base on the ff:
Rejected if any of the ff. exists:
1.parent's salary is above 10,000
2.NCEE score is below 95
3.entrance exam score is below 90

Accepted if all of the ff. are met:
1.parent's salary is at most 3,500
2.average of NCEE and entrance exam is at least 96

Any application w/c is neither accepted nor rejected will be subjected for further study.Make a program that would input the NCEE score,parent's salary and entrance exam score and then output twhether the applicant is accepted,rejected or for further study.
Expert's answer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace College_scholarship
{
class Program
{
static void Main(string[] args)
{
double average = 0;
double parentssalary = 0;
double NCEEscore = 0;
double entranceexamscore = 0;
Console.Write("Enter parents salary: ");
parentssalary = double.Parse(Console.ReadLine());
Console.Write("Enter NCEE score: ");
NCEEscore = double.Parse(Console.ReadLine());
Console.Write("Enter entrance exam score: ");
entranceexamscore = double.Parse(Console.ReadLine());
average = (NCEEscore + entranceexamscore) / 2;
if (parentssalary >= 10000 && NCEEscore <= 95 && entranceexamscore < 90) {
Console.Write("Reject!!!");
}
if (parentssalary < 3500 &&
average>=96)
{
Console.Write("Accept!!!");
}
Console.ReadLine();
}
}
}


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions