❓ 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
 
ahm ano ba topic to ts? wala kasi given. inexpress ko lang as formula

1569983042674.webp
 
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: 11
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
  • 291
    Views
  • 5
    Participants
Last reply from:
PHC-Angelo

Trending Topics

Online now

Members online
1,217
Guests online
1,530
Total visitors
2,747

Forum statistics

Threads
2,285,777
Posts
29,033,508
Members
1,218,602
Latest member
Kmppoy
Back
Top