❓ Help Patulong naman po C#

Status
Not open for further replies.

PHC-Angelo

Forum Veteran
Di ko po talaga magets to. Ito po yung question
Compute for the midterm grade of a student. The midterm grade is equal to one-third of the minor A exam and two-thirds of the midterm exam. Print the midterm grade
 
idagdag mo lang to after mo magdeclare ng variable:

Code:
System.Console.Write("Enter Minor Exam: ");
minE = Console.Readline();
System.Console.Write("Enter Midterm Exam: ");
midE = Console.Readline();

// Calculate Midterm Grade here
 
idagdag mo lang to after mo magdeclare ng variable:

Code:
System.Console.Write("Enter Minor Exam: ");
minE = Console.Readline();
System.Console.Write("Enter Midterm Exam: ");
midE = Console.Readline();

// Calculate Midterm Grade here
Ts ganto ba?
 

Attachments

  • image.webp
    image.webp
    326.7 KB · Views: 12
mali pati formula mo hindi 2/3 + mide. ang tama ay 2/3 * mide

try mo muna lagyan ng value yung mga variable mo katulad nito

double mine = 78, mide = 84, mg;

dapat ang lalabas na sagot dyan 82 ang final grade mo
 
Ts ganto ba?

Tama yung code structure, kaso declaration mo ng variable, mali.

Eto example:

Code:
// Declare and intialize variables
double minE = 0.0, midE = 0.0, mG = 0.0;

// Idagdag mo yung code kanina para may input ka

// Computation ng midterm grade
mG = (minE + (2 * midE) ) / 3

// Print value of mG
 
Tama yung code structure, kaso declaration mo ng variable, mali.

Eto example:

Code:
// Declare and intialize variables
double minE = 0.0, midE = 0.0, mG = 0.0;

// Idagdag mo yung code kanina para may input ka

// Computation ng midterm grade
mG = (minE + (2 * midE) ) / 3

// Print value of mG
Ts nasan po yung 1/3 at 2/3 jan ?
 
Status
Not open for further replies.

About this Thread

  • 18
    Replies
  • 296
    Views
  • 5
    Participants
Last reply from:
PHC-Angelo

Online now

Members online
859
Guests online
3,554
Total visitors
4,413

Forum statistics

Threads
2,307,536
Posts
29,179,528
Members
1,192,514
Latest member
lavi
Back
Top