In which we discuss how the course will work…
Your Objectives:
Why take this course?
Do I Need CS 225 or 374?
NB: Please do not copy-paste code from other sources. You are only hurting yourself if you do!
Course is Pass/Fail: Passing is 70%.
Extra Credit
There are opportunities for extra credit here too!
You have many opportunities to get involved!
GO TO 4
… or maybe even 3
) #include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
printf("%d\n", a + b);
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a+b << endl;
}
import java.io.*;
import java.util.*;
public class Main {
public static void main(String args[])
throws Exception{
Scanner cin=new Scanner(System.in);
int a=cin.nextInt(), b=cin.nextInt();
System.out.println(a+b);
}
}
#include<stdio.h>
int main() {
double sum = 0, buf;
for(int i = 0; i < 12; i++) {
scanf("%f", &buf);
sum += buf;
}
printf("$%.2f\n", sum / 12.0);
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
double sum = 0, buf;
for(int i = 0; i < 12; i++) {
cin >> buf;
sum += buf;
}
printf("$%.2f\n", sum / 12.0);
return 0;
}
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
double d = 0;
for (int i = 0; i < 12; ++i) {
d += in.nextDouble();
}
System.out.printf("$%.2f\n", d/12.0);
}
}